Main definitions.
More...
#include "YapConfig.h"
#include "inline-only.h"
#include "YapDefs.h"
#include "Atoms.h"
#include <nolocks.h>
#include "YapTags.h"
#include "YapCompoundTerm.h"
#include "corout.h"
#include "amidefs.h"
#include "Regs.h"
#include "Yapproto.h"
#include "amiops.h"
#include "arrays.h"
#include "gprof.h"
#include "YapError.h"
#include "ScannerTypes.h"
#include "encoding.h"
#include <stdio.h>
#include "YapHandles.h"
#include "YapSignals.h"
#include "GitSHA1.h"
#include "YapText.h"
Go to the source code of this file.
|
enum | e_restore_t { FAIL_RESTORE = 0
, DO_EVERYTHING = 1
, DO_ONLY_CODE = 2
, YAP_BOOT_FROM_PROLOG = 4
} |
|
enum | yap_exec_mode {
INTERPRETED = 0x1
, MIXED_MODE_USER = 0x2
, MIXED_MODE_ALL = 0x4
, COMPILE_USER = 0x8
,
COMPILE_ALL = 0x10
} |
|
Main definitions.
Definition in file Yap.h.
◆ __android_log_print
#define __android_log_print |
( |
|
... | ) |
|
◆ Addr
#define Addr |
( |
|
V | ) |
((ADDR)(V)) |
◆ ALIGN_LONGS
◆ AT_BOOT
◆ AT_RESTORE
◆ AtomBase
#define AtomBase (Yap_HeapBase) |
◆ CellPtr
#define CellPtr |
( |
|
V | ) |
((CELL *)(V)) |
◆ CodePtr
#define CodePtr |
( |
|
V | ) |
((CODEADDR)(V)) |
◆ COMPILED
#define COMPILED (COMPILE_USER | COMPILE_ALL) |
◆ COROUTINING
Definition at line 69 of file Yap.h.
◆ CUT_C
Definition at line 77 of file Yap.h.
◆ DefaultMaxModules
#define DefaultMaxModules 256 |
◆ DisplPtr
#define DisplPtr |
( |
|
V | ) |
((DISPREG *)(V)) |
◆ DUMMY_FILLER_FOR_ABS_TYPE
#define DUMMY_FILLER_FOR_ABS_TYPE int dummy; |
◆ FunAdr
Definition at line 80 of file Yap.h.
◆ FUNC_READ_LOCK
#define FUNC_READ_LOCK |
( |
|
X | ) |
READ_LOCK((X)->FRWLock) |
◆ FUNC_READ_UNLOCK
#define FUNC_READ_UNLOCK |
( |
|
X | ) |
READ_UNLOCK((X)->FRWLock) |
◆ FUNC_WRITE_LOCK
#define FUNC_WRITE_LOCK |
( |
|
X | ) |
WRITE_LOCK((X)->FRWLock) |
◆ FUNC_WRITE_UNLOCK
#define FUNC_WRITE_UNLOCK |
( |
|
X | ) |
WRITE_UNLOCK((X)->FRWLock) |
◆ GC_MAVARS_HASH_SIZE
#define GC_MAVARS_HASH_SIZE 512 |
◆ HEAP_INIT_BASE
#define HEAP_INIT_BASE ((CELL)Yap_HeapBase) |
(MMAP_ADDR && (USE_MMAP || USE_SHMAT) && !__simplescalar__ && \ !RANDOMIZE_START_ADDRESS)
Definition at line 266 of file Yap.h.
◆ IN_BETWEEN
#define IN_BETWEEN |
( |
|
MIN, |
|
|
|
X, |
|
|
|
MAX |
|
) |
| ((void *)(X) >= (void *)(MIN) && (void *)(X) <= (void *)(MAX)) |
◆ K1
◆ K16
#define K16 ((CELL)(1024 * 64)) |
◆ K64
#define K64 ((CELL)(1024 * 64)) |
◆ likely
◆ LOG
◆ M1
#define M1 ((CELL)(1024 * 1024)) |
◆ M2
#define M2 ((CELL)(2048 * 1024)) |
◆ MAX_EMPTY_WAKEUPS
#define MAX_EMPTY_WAKEUPS 16 |
◆ MAX_PATH
◆ MAX_PROMPT
◆ MaxHash
◆ MaxWideHash
#define MaxWideHash (MaxHash / 10 + 1) |
◆ MIN_ARRAY
◆ MIXED_MODE
#define MIXED_MODE (MIXED_MODE_USER | MIXED_MODE_ALL) |
◆ MULTI_ASSIGNMENT_VARIABLES
#define MULTI_ASSIGNMENT_VARIABLES 1 |
Definition at line 99 of file Yap.h.
◆ must_be_variable
#define must_be_variable |
( |
|
t | ) |
if (!IsVarTerm(t)) Yap_ThrowError(UNINSTANTIATION_ERROR, v, NULL) |
◆ NIL
◆ nullptr
Stolen from Mozzila, this code should deal with bad implementations of stdc++.
Use C++11 nullptr if available; otherwise use a C++ typesafe template; and for C, fall back to longs See bugs 547964 and 626472
Definition at line 135 of file Yap.h.
◆ OpCodePtr
#define OpCodePtr |
( |
|
V | ) |
((OPCODE *)(V)) |
◆ OpRegPtr
#define OpRegPtr |
( |
|
V | ) |
((OPREG *)(V)) |
◆ OUTSIDE
#define OUTSIDE |
( |
|
MIN, |
|
|
|
X, |
|
|
|
MAX |
|
) |
| ((void *)(X) < (void *)(MIN) || (void *)(X) > (void *)(MAX)) |
◆ RATIONAL_TREES
Definition at line 73 of file Yap.h.
◆ REGS_LOG
◆ REMOTE
#define REMOTE |
( |
|
wid | ) |
(&Yap_local) |
◆ SmallPtr
#define SmallPtr |
( |
|
V | ) |
((SMALLUNSGN *)(V)) |
◆ TERM_EXTENSIONS
#define TERM_EXTENSIONS 1 |
◆ TermPtr
#define TermPtr |
( |
|
V | ) |
((Term *)(V)) |
◆ TermSize
#define TermSize sizeof(Term) |
◆ unlikely
#define unlikely |
( |
|
x | ) |
(x) |
◆ USE_MYDDAS
Definition at line 35 of file Yap.h.
◆ USE_MYDDAS_SQLITE3
#define USE_MYDDAS_SQLITE3 1 |
Definition at line 36 of file Yap.h.
◆ WordPtr
#define WordPtr |
( |
|
V | ) |
((BITS16 *)(V)) |
◆ Yap_global
#define Yap_global (&Yap_Global) |
◆ YAPEnterCriticalSection
#define YAPEnterCriticalSection |
( |
| ) |
|
Value: { \
LOCAL_PrologMode |= \
CritMode;
\
LOCAL_CritLocks++; \
}
Definition at line 548 of file Yap.h.
◆ YAPLeaveCriticalSection
#define YAPLeaveCriticalSection |
( |
| ) |
|
Value: { \
LOCAL_CritLocks--; \
\
if (!LOCAL_CritLocks) { \
LOCAL_PrologMode &= ~CritMode; \
if (LOCAL_PrologMode & AbortMode) { \
LOCAL_PrologMode &= ~AbortMode; \
Yap_RestartYap(1); \
} \
} \
}
Definition at line 554 of file Yap.h.
◆ YP_FILE
◆ ADDR
◆ Agc_hook
typedef int(* Agc_hook) (Atom) |
◆ CODEADDR
typedef unsigned char* CODEADDR |
◆ fptr_t
typedef void *(* fptr_t) (void) |
◆ OFFSET
◆ SFLAGS
◆ e_restore_t
◆ yap_exec_mode
◆ must_be_integer()
INLINE_ONLY Term must_be_integer |
( |
Term |
t | ) |
|
◆ must_be_module()
INLINE_ONLY Term must_be_module |
( |
Term |
t | ) |
|
◆ must_be_unbound()
INLINE_ONLY Term must_be_unbound |
( |
Term |
t | ) |
|
◆ strnlen()
INLINE_ONLY EXTERN size_t strnlen |
( |
const char * |
s, |
|
|
size_t |
maxlen |
|
) |
| |
◆ Yap_BINDIR
◆ Yap_BOOTFILE
const char * Yap_BOOTFILE |
◆ Yap_COMMONSDIR
const char * Yap_COMMONSDIR |
◆ Yap_DLLDIR
◆ Yap_Embedded
◆ Yap_HeapBase
◆ Yap_INCLUDEDIR
const char * Yap_INCLUDEDIR |
◆ Yap_INPUT_STARTUP
const char * Yap_INPUT_STARTUP |
◆ Yap_LIBDIR
◆ Yap_local
◆ Yap_OUTPUT_STARTUP
const char * Yap_OUTPUT_STARTUP |
◆ Yap_PLDIR
◆ Yap_ROOTDIR
◆ Yap_Server
◆ Yap_SHAREDIR
const char * Yap_SHAREDIR |
◆ Yap_STARTUP