fix initialization of non-backtrackable module.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1698 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
53b412d1a8
commit
168bef9531
2
C/init.c
2
C/init.c
@ -875,7 +875,7 @@ InitCodes(void)
|
||||
Yap_heap_regs->terms_module = MkAtomTerm(Yap_LookupAtom("terms"));
|
||||
Yap_heap_regs->system_module = MkAtomTerm(Yap_LookupAtom("system"));
|
||||
Yap_heap_regs->readutil_module = MkAtomTerm(Yap_LookupAtom("readutil"));
|
||||
Yap_heap_regs->readutil_module = MkAtomTerm(Yap_LookupAtom("nb"));
|
||||
Yap_heap_regs->globals_module = MkAtomTerm(Yap_LookupAtom("nb"));
|
||||
Yap_InitModules();
|
||||
#ifdef BEAM
|
||||
Yap_heap_regs->beam_retry_code.opc = Yap_opcode(_retry_eam);
|
||||
|
12
pl/setof.yap
12
pl/setof.yap
@ -43,13 +43,13 @@ findall(Template, Generator, Answers, SoFar) :-
|
||||
% starts by calling the generator,
|
||||
% and recording the answers
|
||||
'$findall'(Template, Generator, SoFar, Answers) :-
|
||||
nb_queue(Ref),
|
||||
nb:nb_queue(Ref),
|
||||
(
|
||||
'$execute'(Generator),
|
||||
nb_queue_enqueue(Ref, Template),
|
||||
nb:nb_queue_enqueue(Ref, Template),
|
||||
fail
|
||||
;
|
||||
nb_queue_close(Ref, Answers, SoFar)
|
||||
nb:nb_queue_close(Ref, Answers, SoFar)
|
||||
).
|
||||
|
||||
|
||||
@ -58,13 +58,13 @@ findall(Template, Generator, Answers, SoFar) :-
|
||||
% algorithm to guarantee that variables will have the same names.
|
||||
%
|
||||
'$findall_with_common_vars'(Template, Generator, Answers) :-
|
||||
nb_queue(Ref),
|
||||
nb:nb_queue(Ref),
|
||||
(
|
||||
'$execute'(Generator),
|
||||
nb_queue_enqueue(Ref, Template),
|
||||
nb:nb_queue_enqueue(Ref, Template),
|
||||
fail
|
||||
;
|
||||
nb_queue_close(Ref, Answers, []),
|
||||
nb:nb_queue_close(Ref, Answers, []),
|
||||
'$collect_with_common_vars'(Answers, _)
|
||||
).
|
||||
|
||||
|
Reference in New Issue
Block a user