YAP would break when gc was called from portray:
always save arguments before calling plwrite with possible portray only do it for portray because plwrite may be called from unsafe environments make Slot machinery mainstream. git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@637 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
10
H/Yapproto.h
10
H/Yapproto.h
@@ -10,7 +10,7 @@
|
||||
* File: Yap.proto *
|
||||
* mods: *
|
||||
* comments: Function declarations for YAP *
|
||||
* version: $Id: Yapproto.h,v 1.23 2002-10-03 17:29:46 stasinos Exp $ *
|
||||
* version: $Id: Yapproto.h,v 1.24 2002-10-17 00:05:29 vsc Exp $ *
|
||||
*************************************************************************/
|
||||
|
||||
/* prototype file for Yap */
|
||||
@@ -49,6 +49,14 @@ void STD_PROTO(ReleaseAtom,(Atom));
|
||||
Term STD_PROTO(StringToList,(char *));
|
||||
Term STD_PROTO(StringToListOfAtoms,(char *));
|
||||
|
||||
long STD_PROTO(_YAP_InitSlot,(Term));
|
||||
Term STD_PROTO(_YAP_GetFromSlot,(long));
|
||||
void STD_PROTO(_YAP_RecoverSlots,(int));
|
||||
Term STD_PROTO(_YAP_GetFromSlot,(long));
|
||||
Term *STD_PROTO(_YAP_AddressFromSlot,(long));
|
||||
void STD_PROTO(_YAP_PutInSlot,(long, Term));
|
||||
|
||||
|
||||
#if SFUNC
|
||||
Term STD_PROTO(MkSFTerm,(Functor,int,Term *,Term));
|
||||
CELL STD_PROTO(*ArgsOfSFTerm,(Term));
|
||||
|
@@ -291,6 +291,11 @@ extern int c_input_stream, c_output_stream, c_error_stream;
|
||||
|
||||
Term STD_PROTO(OpenStream,(FILE *,char *,Term,int));
|
||||
|
||||
#define Quote_illegal_f 1
|
||||
#define Ignore_ops_f 2
|
||||
#define Handle_vars_f 4
|
||||
#define Use_portray_f 8
|
||||
|
||||
/* routines in sysbits.c */
|
||||
char *STD_PROTO(pfgets,(char *,int,YP_File));
|
||||
|
||||
|
Reference in New Issue
Block a user