remove MAX_INITS
This commit is contained in:
parent
b0965f60b5
commit
8761a4c05c
7
C/init.c
7
C/init.c
@ -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
|
||||||
|
Reference in New Issue
Block a user