tests: sqlite changed error messages
[m6w6/ext-psi] / php_psi_posix.h.in
1 /*******************************************************************************
2 Copyright (c) 2016, Michael Wallner <mike@php.net>.
3 All rights reserved.
4
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions are met:
7
8 * Redistributions of source code must retain the above copyright notice,
9 this list of conditions and the following disclaimer.
10 * Redistributions in binary form must reproduce the above copyright
11 notice, this list of conditions and the following disclaimer in the
12 documentation and/or other materials provided with the distribution.
13
14 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
18 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
21 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
22 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 *******************************************************************************/
25
26 /* generated by configure */
27
28 #include "php_psi_stdinc.h"
29
30 #ifdef PSI_STD_TYPES
31 static struct psi_std_type {
32 token_t type_tag;
33 const char *type_name;
34 const char *alias;
35 } psi_std_types[] = {
36 {PSI_T_INT8, "int8_t", NULL},
37 {PSI_T_INT16, "int16_t", NULL},
38 {PSI_T_INT32, "int32_t", NULL},
39 {PSI_T_INT64, "int64_t", NULL},
40 {PSI_T_UINT8, "uint8_t", NULL},
41 {PSI_T_UINT16, "uint16_t", NULL},
42 {PSI_T_UINT32, "uint32_t", NULL},
43 {PSI_T_UINT64, "uint64_t", NULL},
44 @PSI_STDTYPES@
45 {0}
46 };
47 #endif
48
49 #ifdef PSI_PREDEF_TYPES
50 static struct psi_predef_type {
51 token_t type_tag;
52 const char *type_name;
53 const char *alias;
54 } psi_predef_types[] = {
55 @PSI_TYPES@
56 {0}
57 };
58 #endif
59
60 #ifdef PSI_PREDEF_COMPOSITES
61 static struct psi_predef_composite {
62 token_t type_tag;
63 const char *type_name;
64 const char *var_name;
65 size_t offset;
66 size_t size;
67 size_t pointer_level;
68 size_t array_size;
69 } psi_predef_composites[] = {
70 @PSI_COMPOSITES@
71 {0}
72 };
73 #endif
74
75 #ifdef PSI_PREDEF_CONSTS
76 static struct psi_predef_const {
77 token_t type_tag;
78 const char *type_name;
79 const char *var_name;
80 impl_val value;
81 } psi_predef_consts[] = {
82 @PSI_CONSTS@
83 {0}
84 };
85 #endif
86
87 #ifdef PSI_PREDEF_DECLS
88 static struct psi_predef_decl {
89 enum {
90 DECL_KIND_STD,
91 DECL_KIND_VARARG,
92 DECL_KIND_FUNCTOR
93 } kind;
94 token_t type_tag;
95 const char *type_name;
96 const char *var_name;
97 size_t pointer_level;
98 size_t array_size;
99 } psi_predef_decls[] = {
100 @PSI_DECLS@
101 {0}
102 };
103 #endif
104
105 #ifdef PSI_FUNC_REDIRS
106 @PSI_MACROS@
107
108 typedef void (*psi_func_ptr)();
109 static struct psi_func_redir {
110 const char *name;
111 psi_func_ptr func;
112 } psi_func_redirs[] = {
113 @PSI_REDIRS@
114 {0}
115 };
116 #endif
117