X_API WIN32 stuff
This commit is contained in:
parent
35eb33e27f
commit
9c78086a6a
3
H/Yap.h
3
H/Yap.h
@ -590,12 +590,13 @@ typedef enum
|
|||||||
#else
|
#else
|
||||||
#define YAPEnterCriticalSection() \
|
#define YAPEnterCriticalSection() \
|
||||||
{ \
|
{ \
|
||||||
LOCAL_PrologMode |= CritMode; \
|
LOCAL_PrologMode |= CritMode;/* printf("%d, %s:%d\n",LOCAL_CritLocks+1,__FILE__,__LINE__);*/ \
|
||||||
LOCAL_CritLocks++; \
|
LOCAL_CritLocks++; \
|
||||||
}
|
}
|
||||||
#define YAPLeaveCriticalSection() \
|
#define YAPLeaveCriticalSection() \
|
||||||
{ \
|
{ \
|
||||||
LOCAL_CritLocks--; \
|
LOCAL_CritLocks--; \
|
||||||
|
/*printf("%d, %s:%d\n",LOCAL_CritLocks,__FILE__,__LINE__);*/ \
|
||||||
if (!LOCAL_CritLocks) { \
|
if (!LOCAL_CritLocks) { \
|
||||||
LOCAL_PrologMode &= ~CritMode; \
|
LOCAL_PrologMode &= ~CritMode; \
|
||||||
if (LOCAL_PrologMode & AbortMode) { \
|
if (LOCAL_PrologMode & AbortMode) { \
|
||||||
|
@ -69,13 +69,6 @@ typedef int _Bool;
|
|||||||
#define __WINDOWS__ 1
|
#define __WINDOWS__ 1
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#ifndef X_API
|
|
||||||
#if (defined(_MSC_VER) || defined(__MINGW32__)) && defined(PL_KERNEL)
|
|
||||||
#define X_API __declspec(dllexport)
|
|
||||||
#else
|
|
||||||
#define X_API
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#include "pl-types.h"
|
#include "pl-types.h"
|
||||||
@ -100,7 +93,7 @@ stuff.
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_DECLSPEC
|
#ifdef HAVE_DECLSPEC
|
||||||
# ifdef PL_KERNEL
|
# ifdef _YAP_NOT_INSTALLED_
|
||||||
#define PL_EXPORT(type) __declspec(dllexport) type
|
#define PL_EXPORT(type) __declspec(dllexport) type
|
||||||
#define PL_EXPORT_DATA(type) __declspec(dllexport) type
|
#define PL_EXPORT_DATA(type) __declspec(dllexport) type
|
||||||
#define install_t void
|
#define install_t void
|
||||||
|
1
include/c_interface.c
Normal file
1
include/c_interface.c
Normal file
@ -0,0 +1 @@
|
|||||||
|
|
@ -1,10 +1,4 @@
|
|||||||
|
|
||||||
#if defined(_MSC_VER) && defined(YAP_EXPORTS)
|
|
||||||
#define X_API __declspec(dllexport)
|
|
||||||
#else
|
|
||||||
#define X_API
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
struct ClauseList
|
struct ClauseList
|
||||||
{
|
{
|
||||||
@ -14,14 +8,14 @@ struct ClauseList
|
|||||||
};
|
};
|
||||||
typedef struct ClauseList *clause_list_t;
|
typedef struct ClauseList *clause_list_t;
|
||||||
|
|
||||||
X_API clause_list_t Yap_ClauseListInit(clause_list_t in);
|
clause_list_t Yap_ClauseListInit(clause_list_t in);
|
||||||
|
|
||||||
X_API int Yap_ClauseListExtend(clause_list_t cl, void * clause, void *pred);
|
int Yap_ClauseListExtend(clause_list_t cl, void * clause, void *pred);
|
||||||
X_API void Yap_ClauseListClose(clause_list_t cl);
|
void Yap_ClauseListClose(clause_list_t cl);
|
||||||
X_API int Yap_ClauseListDestroy(clause_list_t cl);
|
int Yap_ClauseListDestroy(clause_list_t cl);
|
||||||
X_API void *Yap_ClauseListToClause(clause_list_t cl);
|
void *Yap_ClauseListToClause(clause_list_t cl);
|
||||||
X_API void *Yap_ClauseListCode(clause_list_t cl);
|
void *Yap_ClauseListCode(clause_list_t cl);
|
||||||
X_API void *Yap_FAILCODE(void);
|
void *Yap_FAILCODE(void);
|
||||||
|
|
||||||
#define Yap_ClauseListCount(cl) ((cl)->n)
|
#define Yap_ClauseListCount(cl) ((cl)->n)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user