configure: generate less files, and do that in build dir
[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 const char *val_text;
58 token_t val_type_tag;
59 } psi_predef_consts[] = {
60 @PSI_CONSTS@
61 {0}
62 };
63 #endif
64
65 #ifdef PSI_PREDEF_DECLS
66 static struct psi_predef_decl {
67 enum {
68 DECL_KIND_STD,
69 DECL_KIND_VARARG,
70 DECL_KIND_FUNCTOR
71 } kind;
72 token_t type_tag;
73 const char *type_name;
74 const char *var_name;
75 size_t pointer_level;
76 size_t array_size;
77 } psi_predef_decls[] = {
78 @PSI_DECLS@
79 {0}
80 };
81 #endif
82
83 #ifdef PSI_FUNC_REDIRS
84 @PSI_MACROS@
85
86 typedef void (*psi_func_ptr)();
87 static struct psi_func_redir {
88 const char *name;
89 psi_func_ptr func;
90 } psi_func_redirs[] = {
91 @PSI_REDIRS@
92 {0}
93 };
94 #endif
95
96 #endif