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
14typedef __int64 int64_t;
15typedef unsigned __int64 uint64_t;
16#if (_MSC_VER < 1300) && !defined(__MINGW32__)
17typedef long intptr_t;
18typedef 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
28typedef intptr_t term_t;
29#endif
30typedef struct mod_entry *module_t;
31typedef struct DB_STRUCT *record_t;
32typedef uintptr_t atom_t;
33typedef struct pred_entry *predicate_t;
34typedef struct open_query_struct *qid_t;
35typedef uintptr_t functor_t;
36typedef int (*PL_agc_hook_t)(atom_t);
37typedef uintptr_t foreign_t; /* return type of foreign functions */
38typedef wchar_t pl_wchar_t; /* wide character support */
39#include <inttypes.h> /* more portable than stdint.h */
40typedef uintptr_t PL_fid_t; /* opaque foreign context handle */
41typedef int (*PL_dispatch_hook_t)(int fd);
42typedef void *pl_function_t;
43
44#define fid_t PL_fid_t /* avoid AIX name-clash */
45
46#endif /* PL_TYPES */
Module property: low-level data used to manage modes.
Definition: Yatom.h:209
Definition: Yatom.h:544