fix c_interface not to crash when people try to recover slots that are

not there.
fix try_logical and friends to handle case where predicate has arity 0.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2278 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc
2008-06-17 13:37:51 +00:00
parent e90f744e5e
commit 39c4a2e67f
8 changed files with 39 additions and 27 deletions

View File

@@ -381,7 +381,7 @@ extern X_API YAP_Term *PROTO(YAP_AddressFromSlot,(long int));
extern X_API void PROTO(YAP_PutInSlot,(long int, YAP_Term));
/* void YAP_RecoverSlots() */
extern X_API void PROTO(YAP_RecoverSlots,(int));
extern X_API int PROTO(YAP_RecoverSlots,(int));
/* void YAP_Throw() */
extern X_API void PROTO(YAP_Throw,(YAP_Term));