remove MAX_INITS

This commit is contained in:
Joao 2011-03-24 16:17:18 +00:00
parent b0965f60b5
commit 8761a4c05c
1 changed files with 1 additions and 6 deletions

View File

@ -1235,11 +1235,6 @@ Yap_CloseScratchPad(void)
#include "iglobals.h"
#include "ilocals.h"
#if defined(YAPOR) || defined(THREADS)
#define MAX_INITS MAX_AGENTS
#else
#define MAX_INITS 1
#endif
#if defined(YAPOR) && !defined(THREADS)
struct worker_shared *Yap_global;
@ -1261,7 +1256,7 @@ InitCodes(void)
CACHE_REGS
#if THREADS
int wid;
for (wid = 1; wid < MAX_INITS; wid++) {
for (wid = 1; wid < MAX_THREADS; wid++) {
Yap_WLocal[wid] = NULL;
}
#endif