Fix some possible errors in name/2 and friends, and cleanup code a bit

YAP_Error changed.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1256 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc
2005-03-02 19:48:03 +00:00
parent 8a03474632
commit 81b4413a33
2 changed files with 75 additions and 88 deletions

View File

@@ -1105,7 +1105,7 @@ X_API qid_t PL_open_query(module_t ctx, int flags, predicate_t p, term_t t0)
/* ignore flags and module for now */
if (execution.open != 0) {
YAP_Error("only one query at a time allowed\n");
YAP_Error(0, 0L, "only one query at a time allowed\n");
}
execution.open=1;
execution.state=0;