YAP
7.1.0
pl-types.h
1
2
#ifndef PL_TYPES_H
3
4
#define PL_TYPES_H
5
6
/*******************************
7
* TYPES *
8
*******************************/
9
10
11
#ifdef __WINDOWS__
12
#ifndef INT64_T_DEFINED
13
#define INT64_T_DEFINED 1
14
typedef
__int64 int64_t;
15
typedef
unsigned
__int64 uint64_t;
16
#if (_MSC_VER < 1300) && !defined(__MINGW32__)
17
typedef
long
intptr_t;
18
typedef
unsigned
long
uintptr_t;
19
#endif
20
#endif
21
#else
22
#include <inttypes.h>
/* more portable than stdint.h */
23
#endif
24
25
26
#ifndef PL_HAVE_TERM_T
27
#define PL_HAVE_TERM_T
28
typedef
intptr_t term_t;
29
#endif
30
typedef
struct
mod_entry
*
module_t
;
31
typedef
struct
DB_STRUCT
*
record_t
;
32
typedef
uintptr_t atom_t;
33
typedef
struct
pred_entry
*
predicate_t
;
34
typedef
struct
open_query_struct
*
qid_t
;
35
typedef
uintptr_t functor_t;
36
typedef
int (*PL_agc_hook_t)(atom_t);
37
typedef
uintptr_t foreign_t;
/* return type of foreign functions */
38
typedef
wchar_t
pl_wchar_t;
/* wide character support */
39
#include <inttypes.h>
/* more portable than stdint.h */
40
typedef
uintptr_t PL_fid_t;
/* opaque foreign context handle */
41
typedef
int (*PL_dispatch_hook_t)(
int
fd);
42
typedef
void
*pl_function_t;
43
44
#define fid_t PL_fid_t
/* avoid AIX name-clash */
45
46
#endif
/* PL_TYPES */
DB_STRUCT
Definition:
Yatom.h:716
mod_entry
Module property: low-level data used to manage modes.
Definition:
Yatom.h:209
open_query_struct
Definition:
YapDefs.h:201
pred_entry
Definition:
Yatom.h:544
include
pl-types.h
Generated by
1.9.3