fix tabling declaration.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@181 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
f084a042bf
commit
c85d9ee978
@ -79,7 +79,7 @@ void init_optyap_preds(void) {
|
||||
InitCPred("$parallel_yes_answer", 0, p_parallel_yes_answer, SafePredFlag);
|
||||
#endif /* YAPOR */
|
||||
#ifdef TABLING
|
||||
InitCPred("$table", 2, p_table, SafePredFlag);
|
||||
InitCPred("$do_table", 2, p_table, SafePredFlag);
|
||||
InitCPred("$do_abolish_trie", 2, p_abolish_trie, SafePredFlag);
|
||||
InitCPred("$show_trie", 3, p_show_trie, SafePredFlag);
|
||||
#endif /* TABLING */
|
||||
|
@ -34,7 +34,7 @@ table(X) :-
|
||||
write(user_error, ' is already declared as table ]'),
|
||||
nl(user_error)
|
||||
;
|
||||
X is F /\ 8'170000, X =:= 0, !, '$table'(T)
|
||||
X is F /\ 8'170000, X =:= 0, !, '$do_table'(T, M)
|
||||
;
|
||||
write(user_error, '[ Error: '),
|
||||
write(user_error, M:A/N),
|
||||
|
Reference in New Issue
Block a user