/
config_h.in
121 lines (93 loc) · 3.11 KB
/
config_h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
/* config.h
*
* Platform-specific config file
*
*/
#if !defined(PARROT_CONFIG_H_GUARD)
#define PARROT_CONFIG_H_GUARD
/*
** ONLY PUT EMBEDDER-ACCESSIBLE SYMBOLS UP HERE!!!
** Other symbols may go below.
*/
#define PARROT_VERSION "${VERSION}${DEVEL}"
#define PARROT_CONFIG_DATE "${configdate}"
#define PARROT_MAJOR_VERSION ${MAJOR}
#define PARROT_MINOR_VERSION ${MINOR}
#define PARROT_PATCH_VERSION ${PATCH}
#define PARROT_ARCHNAME "${jitarchname}"
#define PARROT_JIT_CAPABLE ${jitcapable}
#define PARROT_DLL_EXTENSION "${so}"
typedef ${iv} Parrot_Int;
typedef unsigned ${iv} Parrot_UInt;
typedef ${nv} Parrot_Float;
typedef ${opcode_t} Parrot_Opcode;
typedef void * Parrot_Pointer;
typedef void * Parrot_Sync;
/* Temporary until we find a way to make it work in the right place. */
struct PackFile; typedef struct PackFile * Parrot_PackFile;
#if defined(PARROT_IN_CORE)
/* Put any other symbols here. */
#include <stddef.h>
#define PARROT_CPU_ARCH "${jitcpuarch}"
#define PARROT_OS_NAME "${jitosname}"
#define PARROT_BYTEORDER ${byteorder}
#define PARROT_BIGENDIAN ${bigendian}
#define PARROT_PTR_ALIGNMENT ${ptr_alignment}
#define PARROT_STACK_DIR ${stackdir}
typedef Parrot_Int INTVAL;
typedef Parrot_UInt UINTVAL;
typedef Parrot_Float FLOATVAL;
typedef ${hugeintval} HUGEINTVAL;
typedef unsigned ${hugeintval} UHUGEINTVAL;
typedef ${hugefloatval} HUGEFLOATVAL;
#define INTVAL_SIZE ${intvalsize}
#define NUMVAL_SIZE ${nvsize}
#define OPCODE_T_SIZE ${opcode_t_size}
#define PTR_SIZE ${ptrsize}
#define LONG_SIZE ${longsize}
typedef Parrot_Opcode opcode_t;
typedef size_t ptrcast_t;
typedef struct _vtable VTABLE;
typedef void DPOINTER;
typedef void SYNC;
/* XXX Temporary until the grand rename is done */
typedef INTVAL Intval;
typedef UINTVAL UIntval;
typedef FLOATVAL Floatval;
typedef VTABLE VTable;
typedef DPOINTER DPointer;
typedef SYNC Sync;
/* typedef INTVAL *(*opcode_funcs)(void *, void *) OPFUNC; */
#define FRAMES_PER_CHUNK 16
/* Default amount of memory to allocate in one whack */
#define DEFAULT_SIZE 32768
#define FRAMES_PER_PMC_REG_CHUNK FRAMES_PER_CHUNK
#define FRAMES_PER_NUM_REG_CHUNK FRAMES_PER_CHUNK
#define FRAMES_PER_INT_REG_CHUNK FRAMES_PER_CHUNK
#define FRAMES_PER_STR_REG_CHUNK FRAMES_PER_CHUNK
#define JIT_CPUARCH "${jitcpuarch}"
#define JIT_OSNAME "${jitosname}"
#define JIT_ARCHNAME "${jitarchname}"
#define JIT_CAPABLE ${jitcapable}
/*
* Switches to turn on/off new code so people can compile
* the core with minimal breakage.
*/
#define EXP_NETWORKING ${expnetworking}
#define PARROT_CORE_OPLIB_NAME "core"
#define PARROT_CORE_OPLIB_INIT Parrot_DynOp_core_${MAJOR}_${MINOR}_${PATCH}
#define PARROT_CORE_PREDEREF_OPLIB_INIT Parrot_DynOp_core_prederef_${MAJOR}_${MINOR}_${PATCH}
#define INTVAL_FMT "${intvalfmt}"
#define FLOATVAL_FMT "${floatvalfmt}"
#include "parrot/has_header.h"
#endif
#endif
/*
* Local variables:
* c-indentation-style: bsd
* c-basic-offset: 4
* indent-tabs-mode: nil
* End:
*
* vim: expandtab shiftwidth=4:
*/