long -> Int

This commit is contained in:
Vítor Santos Costa 2010-05-10 10:22:18 +01:00
parent faeef37a03
commit 8340886b31
2 changed files with 14 additions and 12 deletions

24
include/YapInterface.h Normal file → Executable file
View 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));
/* 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
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
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) */
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));
/* YAP_Term *YAP_NewSlots() */
extern X_API long PROTO(YAP_NewSlots,(int));
extern X_API YAP_Int PROTO(YAP_NewSlots,(int));
/* long YAP_CurrentSlot() */
extern X_API long PROTO(YAP_CurrentSlot,(void));
/* YAP_Int YAP_CurrentSlot() */
extern X_API YAP_Int PROTO(YAP_CurrentSlot,(void));
/* 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) */
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) */
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) */
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() */
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));
/* 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() */
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() */
extern X_API YAP_Module PROTO(YAP_CurrentModule,(void));

View File

@ -39,6 +39,8 @@ typedef int YAP_Bool;
typedef YAP_CELL YAP_Term;
typedef YAP_CELL YAP_Arity;
typedef YAP_Term YAP_Module;
typedef struct FunctorEntry *YAP_Functor;