SWI compatible module only operators
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1412 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
@@ -22,16 +22,16 @@
|
||||
functions indirectly
|
||||
****************************************************/
|
||||
|
||||
#ifndef _yap_c_interface_h
|
||||
|
||||
#define _yap_c_interface_h 1
|
||||
|
||||
#include "yap_structs.h"
|
||||
|
||||
#if HAVE_STDARG_H
|
||||
#include <stdarg.h>
|
||||
#endif
|
||||
|
||||
#ifndef _yap_c_interface_h
|
||||
|
||||
#define _yap_c_interface_h 1
|
||||
|
||||
/*
|
||||
__BEGIN_DECLS should be used at the beginning of the C declarations,
|
||||
so that C++ compilers don't mangle their names. __END_DECLS is used
|
||||
@@ -195,10 +195,11 @@ extern X_API void PROTO(YAP_UserBackCPredicate,(char *, YAP_Bool (*)(void), YAP_
|
||||
extern X_API YAP_Bool PROTO(YAP_CallProlog,(YAP_Term t));
|
||||
|
||||
/* void cut_fail(void) */
|
||||
extern X_API void PROTO(YAP_cut_fail,(void));
|
||||
extern X_API void PROTO(YAP_cut_up,(void));
|
||||
|
||||
/* void cut_succeed(void) */
|
||||
extern X_API void PROTO(YAP_cut_succeed,(void));
|
||||
#define YAP_cut_succeed() { YAP_cut_up(); return TRUE; }
|
||||
|
||||
#define YAP_cut_fail() { YAP_cut_up(); return FALSE; }
|
||||
|
||||
/* void *AllocSpaceFromYAP_(int) */
|
||||
extern X_API void *PROTO(YAP_AllocSpaceFromYap,(unsigned int));
|
||||
|
Reference in New Issue
Block a user