initialise initial ENV fully.
This commit is contained in:
parent
442e5e0b81
commit
7a78d5c200
3
C/exec.c
3
C/exec.c
@ -1018,6 +1018,9 @@ init_stack(int arity, CELL *pt, int top, choiceptr saved_b USES_REGS)
|
|||||||
YENV[E_CP] = (CELL)P;
|
YENV[E_CP] = (CELL)P;
|
||||||
YENV[E_CB] = (CELL)B;
|
YENV[E_CB] = (CELL)B;
|
||||||
YENV[E_E] = (CELL)ENV;
|
YENV[E_E] = (CELL)ENV;
|
||||||
|
#ifdef TABLING
|
||||||
|
YENV[E_B] = (CELL)B;
|
||||||
|
#endif
|
||||||
#ifdef DEPTH_LIMIT
|
#ifdef DEPTH_LIMIT
|
||||||
YENV[E_DEPTH] = DEPTH;
|
YENV[E_DEPTH] = DEPTH;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user