remove MAX_INITS

This commit is contained in:
Joao 2011-03-24 16:17:18 +00:00
parent b0965f60b5
commit 8761a4c05c

View File

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