31typedef int (*SWI_PutFunction)(int,
void *);
32typedef int (*SWI_GetFunction)(
void *);
33typedef int (*SWI_PutWideFunction)(int,
void *);
34typedef int (*SWI_GetWideFunction)(
void *);
35typedef int (*SWI_CloseFunction)(
void *);
36typedef int (*SWI_FlushFunction)(
void *);
37typedef int (*SWI_PLGetStreamFunction)(
void *);
38typedef int (*SWI_PLGetStreamPositionFunction)(
void *);
40#ifndef INT_KEYS_DEFAULT_SIZE
41#define INT_KEYS_DEFAULT_SIZE 256
46#define MAX_DLMALLOC_HOLES 32
48typedef struct memory_hole {
71typedef void (*HaltHookFunc)(int,
void *);
79int Yap_HaltRegisterHook(HaltHookFunc,
void *);
82#if defined(YAPOR) || defined(THREADS)
100#define SWI_BUF_SIZE 512
101#define SWI_TMP_BUF_SIZE 2 * SWI_BUF_SIZE
102#define SWI_BUF_RINGS 16
145#if __INIT_C__ || defined(MSC_VER)
148#define EXTERNAL extern
156 special_functors funcs;
169 special_functors funcs;
175#include "generated/tatoms.h"
177#include "generated/h0struct.h"
179#include "generated/h0globals.h"
183#include "generated/hlocals.h"
187#include "YapSignals.h"
210#ifdef USE_SYSTEM_MALLOC
213#define Yap_heap_regs ((all_heap_codes *)HEAP_INIT_BASE)
221 yamop *n= (p && p->opc == EXECUTE_CPRED_OPCODE ? cp : p);
222 if (p->opc == Yap_opcode(_try_c) ||
223 p->opc == Yap_opcode(_try_userc) ||
224 p->opc == Yap_opcode(_retry_c) ||
225 p->opc == Yap_opcode(_retry_userc))
235#define Yap_CurrentModule() Yap_CurrentModule__(PASS_REGS1)
237INLINE_ONLY Term Yap_CurrentModule__(USES_REGS1);
239INLINE_ONLY Term Yap_CurrentModule__(USES_REGS1) {
241 return CurrentModule;
249#define UPDATE_MODE_IMMEDIATE 0
250#define UPDATE_MODE_LOGICAL 1
251#define UPDATE_MODE_LOGICAL_ASSERT 2
257#define InitialConsultCapacity 16
259#if (defined(USE_SYSTEM_MALLOC) && HAVE_MALLINFO) || USE_DL_MALLOC
260extern UInt Yap_givemallinfo(
void);
263extern ADDR Yap_ExpandPreAllocCodeSpace(UInt,
void *,
int);
264#define Yap_ReleasePreAllocCodeSpace(x)
265extern ADDR Yap_InitPreAllocCodeSpace(
int);
267#include "inline-only.h"
268INLINE_ONLY ADDR Yap_PreAllocCodeSpace(
void);
270INLINE_ONLY ADDR Yap_PreAllocCodeSpace(
void) {