Merge branch 'master' of ssh://git.code.sf.net/p/yap/yap-6.3
This commit is contained in:
commit
84c1803102
@ -2265,8 +2265,8 @@ PL_discard_foreign_frame(fid_t f)
|
|||||||
LOCAL_execution = env->old;
|
LOCAL_execution = env->old;
|
||||||
ASP = LCL0-CurSlot;
|
ASP = LCL0-CurSlot;
|
||||||
B = B->cp_b;
|
B = B->cp_b;
|
||||||
EX = NULL;
|
//LOCAL_BallTerm = EX;
|
||||||
LOCAL_BallTerm = EX;
|
//EX = NULL;
|
||||||
free(env);
|
free(env);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2331,7 +2331,7 @@ X_API void PL_close_query(qid_t qi)
|
|||||||
{
|
{
|
||||||
CACHE_REGS
|
CACHE_REGS
|
||||||
EX = NULL;
|
EX = NULL;
|
||||||
if (EX && !(qi->flags & (PL_Q_CATCH_EXCEPTION|PL_Q_PASS_EXCEPTION))) {
|
if (EX && !(qi->flags & (PL_Q_CATCH_EXCEPTION))) {
|
||||||
EX = NULL;
|
EX = NULL;
|
||||||
}
|
}
|
||||||
/* need to implement backtracking here */
|
/* need to implement backtracking here */
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
/* $Id$
|
/* Part of SWI-Prolog
|
||||||
|
|
||||||
Part of SWI-Prolog
|
|
||||||
|
|
||||||
Author: Jan Wielemaker
|
Author: Jan Wielemaker
|
||||||
E-mail: wielemak@science.uva.nl
|
E-mail: J.Wielemaker@vu.nl
|
||||||
WWW: http://www.swi-prolog.org
|
WWW: http://www.swi-prolog.org
|
||||||
Copyright (C): 1985-2007, University of Amsterdam
|
Copyright (C): 1985-2013, University of Amsterdam
|
||||||
|
VU University Amsterdam
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This library is free software; you can redistribute it and/or
|
||||||
modify it under the terms of the GNU Lesser General Public
|
modify it under the terms of the GNU Lesser General Public
|
||||||
|
@ -179,9 +179,13 @@ bind_varnames(term_t varnames ARG_LD)
|
|||||||
Term tv, t2, t1;
|
Term tv, t2, t1;
|
||||||
|
|
||||||
if (!IsApplTerm(tl)) return FALSE;
|
if (!IsApplTerm(tl)) return FALSE;
|
||||||
if ((f = FunctorOfTerm(tl)) != FunctorEq)
|
if ((f = FunctorOfTerm(tl)) != FunctorEq) {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
}
|
||||||
t1 = ArgOfTerm(1, tl);
|
t1 = ArgOfTerm(1, tl);
|
||||||
|
if (IsVarTerm(t1)) {
|
||||||
|
return PL_error(NULL, 0, "variable_names", ERR_INSTANTIATION, 0, t1);
|
||||||
|
}
|
||||||
t2 = ArgOfTerm(2, tl);
|
t2 = ArgOfTerm(2, tl);
|
||||||
tv = Yap_MkApplTerm(LOCAL_FunctorVar, 1, &t1);
|
tv = Yap_MkApplTerm(LOCAL_FunctorVar, 1, &t1);
|
||||||
if (IsVarTerm(t2)) {
|
if (IsVarTerm(t2)) {
|
||||||
|
Reference in New Issue
Block a user