long -> Int
This commit is contained in:
parent
faeef37a03
commit
8340886b31
24
include/YapInterface.h
Normal file → Executable file
24
include/YapInterface.h
Normal file → Executable file
@ -216,15 +216,15 @@ extern X_API YAP_Bool PROTO(YAP_Unify,(YAP_Term, YAP_Term));
|
|||||||
extern X_API void PROTO(YAP_UserCPredicate,(CONST char *, YAP_Bool (*)(void), unsigned int));
|
extern X_API void PROTO(YAP_UserCPredicate,(CONST char *, YAP_Bool (*)(void), unsigned int));
|
||||||
|
|
||||||
/* void UserCPredicateWithArgs(const char *name, int *fn(), unsigned int arity) */
|
/* void UserCPredicateWithArgs(const char *name, int *fn(), unsigned int arity) */
|
||||||
extern X_API void PROTO(YAP_UserCPredicateWithArgs,(CONST char *, YAP_Bool (*)(void), unsigned long int, unsigned long int));
|
extern X_API void PROTO(YAP_UserCPredicateWithArgs,(CONST char *, YAP_Bool (*)(void), YAP_Arity, YAP_Term));
|
||||||
|
|
||||||
/* void UserBackCPredicate(const char *name, int *init(), int *cont(), int
|
/* void UserBackCPredicate(const char *name, int *init(), int *cont(), int
|
||||||
arity, int extra) */
|
arity, int extra) */
|
||||||
extern X_API void PROTO(YAP_UserBackCPredicate,(CONST char *, YAP_Bool (*)(void), YAP_Bool (*)(void), unsigned long int, unsigned int));
|
extern X_API void PROTO(YAP_UserBackCPredicate,(CONST char *, YAP_Bool (*)(void), YAP_Bool (*)(void), YAP_Arity, unsigned int));
|
||||||
|
|
||||||
/* void UserBackCPredicate(char *name, int *init(), int *cont(), int *cut(), int
|
/* void UserBackCPredicate(char *name, int *init(), int *cont(), int *cut(), int
|
||||||
arity, int extra) */
|
arity, int extra) */
|
||||||
extern X_API void PROTO(YAP_UserBackCutCPredicate,(char *, YAP_Bool (*)(void), YAP_Bool (*)(void), YAP_Bool (*)(void), unsigned long int, unsigned int));
|
extern X_API void PROTO(YAP_UserBackCutCPredicate,(char *, YAP_Bool (*)(void), YAP_Bool (*)(void), YAP_Bool (*)(void), YAP_Arity, unsigned int));
|
||||||
|
|
||||||
/* void CallProlog(YAP_Term t) */
|
/* void CallProlog(YAP_Term t) */
|
||||||
extern X_API YAP_Bool PROTO(YAP_CallProlog,(YAP_Term t));
|
extern X_API YAP_Bool PROTO(YAP_CallProlog,(YAP_Term t));
|
||||||
@ -406,22 +406,22 @@ extern X_API void PROTO(YAP_FlushAllStreams,(void));
|
|||||||
extern X_API YAP_Term PROTO(YAP_OpenStream,(void *, CONST char *, YAP_Term, int));
|
extern X_API YAP_Term PROTO(YAP_OpenStream,(void *, CONST char *, YAP_Term, int));
|
||||||
|
|
||||||
/* YAP_Term *YAP_NewSlots() */
|
/* YAP_Term *YAP_NewSlots() */
|
||||||
extern X_API long PROTO(YAP_NewSlots,(int));
|
extern X_API YAP_Int PROTO(YAP_NewSlots,(int));
|
||||||
|
|
||||||
/* long YAP_CurrentSlot() */
|
/* YAP_Int YAP_CurrentSlot() */
|
||||||
extern X_API long PROTO(YAP_CurrentSlot,(void));
|
extern X_API YAP_Int PROTO(YAP_CurrentSlot,(void));
|
||||||
|
|
||||||
/* YAP_Term *YAP_InitSlot() */
|
/* YAP_Term *YAP_InitSlot() */
|
||||||
extern X_API long PROTO(YAP_InitSlot,(YAP_Term));
|
extern X_API YAP_Int PROTO(YAP_InitSlot,(YAP_Term));
|
||||||
|
|
||||||
/* YAP_Term YAP_GetFromSlots(t) */
|
/* YAP_Term YAP_GetFromSlots(t) */
|
||||||
extern X_API YAP_Term PROTO(YAP_GetFromSlot,(long int));
|
extern X_API YAP_Term PROTO(YAP_GetFromSlot,(YAP_Int int));
|
||||||
|
|
||||||
/* YAP_Term YAP_AddressFromSlots(t) */
|
/* YAP_Term YAP_AddressFromSlots(t) */
|
||||||
extern X_API YAP_Term *PROTO(YAP_AddressFromSlot,(long int));
|
extern X_API YAP_Term *PROTO(YAP_AddressFromSlot,(YAP_Int int));
|
||||||
|
|
||||||
/* YAP_Term YAP_PutInSlots(t) */
|
/* YAP_Term YAP_PutInSlots(t) */
|
||||||
extern X_API void PROTO(YAP_PutInSlot,(long int, YAP_Term));
|
extern X_API void PROTO(YAP_PutInSlot,(YAP_Int int, YAP_Term));
|
||||||
|
|
||||||
/* void YAP_RecoverSlots() */
|
/* void YAP_RecoverSlots() */
|
||||||
extern X_API int PROTO(YAP_RecoverSlots,(int));
|
extern X_API int PROTO(YAP_RecoverSlots,(int));
|
||||||
@ -441,10 +441,10 @@ extern X_API int PROTO(YAP_Halt,(int));
|
|||||||
extern X_API YAP_Term *PROTO(YAP_TopOfLocalStack,(void));
|
extern X_API YAP_Term *PROTO(YAP_TopOfLocalStack,(void));
|
||||||
|
|
||||||
/* int YAP_Predicate() */
|
/* int YAP_Predicate() */
|
||||||
extern X_API void *PROTO(YAP_Predicate,(YAP_Atom,unsigned long int,YAP_Term));
|
extern X_API void *PROTO(YAP_Predicate,(YAP_Atom,YAP_Arity,YAP_Term));
|
||||||
|
|
||||||
/* int YAP_Predicate() */
|
/* int YAP_Predicate() */
|
||||||
extern X_API void PROTO(YAP_PredicateInfo,(void *,YAP_Atom *,unsigned long int*,YAP_Module*));
|
extern X_API void PROTO(YAP_PredicateInfo,(void *,YAP_Atom *,YAP_Arity*,YAP_Module*));
|
||||||
|
|
||||||
/* int YAP_CurrentModule() */
|
/* int YAP_CurrentModule() */
|
||||||
extern X_API YAP_Module PROTO(YAP_CurrentModule,(void));
|
extern X_API YAP_Module PROTO(YAP_CurrentModule,(void));
|
||||||
|
@ -39,6 +39,8 @@ typedef int YAP_Bool;
|
|||||||
|
|
||||||
typedef YAP_CELL YAP_Term;
|
typedef YAP_CELL YAP_Term;
|
||||||
|
|
||||||
|
typedef YAP_CELL YAP_Arity;
|
||||||
|
|
||||||
typedef YAP_Term YAP_Module;
|
typedef YAP_Term YAP_Module;
|
||||||
|
|
||||||
typedef struct FunctorEntry *YAP_Functor;
|
typedef struct FunctorEntry *YAP_Functor;
|
||||||
|
Reference in New Issue
Block a user