calc: generate calculators
[m6w6/ext-psi] / php_psi_posix.h.in
1 /* generated by configure */
2 #ifndef PSI_POSIX_H
3 #define PSI_POSIX_H
4
5 #include "php_psi_stdinc.h"
6
7 #ifdef PSI_STD_TYPES
8 static struct psi_std_type {
9 token_t type_tag;
10 const char *type_name;
11 const char *alias;
12 } psi_std_types[] = {
13 {PSI_T_INT8, "int8_t", NULL},
14 {PSI_T_INT16, "int16_t", NULL},
15 {PSI_T_INT32, "int32_t", NULL},
16 {PSI_T_INT64, "int64_t", NULL},
17 {PSI_T_UINT8, "uint8_t", NULL},
18 {PSI_T_UINT16, "uint16_t", NULL},
19 {PSI_T_UINT32, "uint32_t", NULL},
20 {PSI_T_UINT64, "uint64_t", NULL},
21 @PSI_STDTYPES@
22 {0}
23 };
24 #endif
25
26 #ifdef PSI_PREDEF_TYPES
27 static struct psi_predef_type {
28 token_t type_tag;
29 const char *type_name;
30 const char *alias;
31 } psi_predef_types[] = {
32 @PSI_TYPES@
33 {0}
34 };
35 #endif
36
37 #ifdef PSI_PREDEF_COMPOSITES
38 static struct psi_predef_composite {
39 token_t type_tag;
40 const char *type_name;
41 const char *var_name;
42 size_t offset;
43 size_t size;
44 size_t pointer_level;
45 size_t array_size;
46 } psi_predef_composites[] = {
47 @PSI_COMPOSITES@
48 {0}
49 };
50 #endif
51
52 #ifdef PSI_PREDEF_CONSTS
53 static struct psi_predef_const {
54 token_t type_tag;
55 const char *type_name;
56 const char *var_name;
57 impl_val value;
58 } psi_predef_consts[] = {
59 @PSI_CONSTS@
60 {0}
61 };
62 #endif
63
64 #ifdef PSI_PREDEF_DECLS
65 static struct psi_predef_decl {
66 enum {
67 DECL_KIND_STD,
68 DECL_KIND_VARARG,
69 DECL_KIND_FUNCTOR
70 } kind;
71 token_t type_tag;
72 const char *type_name;
73 const char *var_name;
74 size_t pointer_level;
75 size_t array_size;
76 } psi_predef_decls[] = {
77 @PSI_DECLS@
78 {0}
79 };
80 #endif
81
82 #ifdef PSI_FUNC_REDIRS
83 @PSI_MACROS@
84
85 typedef void (*psi_func_ptr)();
86 static struct psi_func_redir {
87 const char *name;
88 psi_func_ptr func;
89 } psi_func_redirs[] = {
90 @PSI_REDIRS@
91 {0}
92 };
93 #endif
94
95 #endif