Debian Codegraph @

utils/xml2pmx/xml2pmx-src/primtab0.c

raw
1 /* Generated by oblink */
2
3 #include "primtab.h"
4 #include <stdio.h>
5 #ifdef HAVE_UNISTD_H
6 #include <unistd.h>
7 #endif
8
9 type_V xmain_exit(type_I);
10
11 value *P_xmain_exit(value *bp) {
12 value *sp = bp;
13 FPINIT;
14 res_V(xmain_exit(arg_I(0)));
15 return sp;
16 }
17
18 value *NEW(value *bp);
19
20 value *NEWFLEX(value *bp);
21
22 value *COMPARE(value *bp);
23
24 type_C toupper(type_C);
25
26 value *P_toupper(value *bp) {
27 value *sp = bp;
28 FPINIT;
29 res_C(toupper(arg_C(0)));
30 return sp;
31 }
32
33 value *COPY(value *bp);
34
35 value *FLEXASSIGN(value *bp);
36
37 value *EASSERT(value *bp);
38
39 value *sys_move(value *bp);
40
41 value *sys_liberror(value *bp);
42
43 type_V load_lib(type_X);
44
45 value *P_load_lib(value *bp) {
46 value *sp = bp;
47 FPINIT;
48 res_V(load_lib(arg_X(0)));
49 return sp;
50 }
51
52 value *gc_collect(value *bp);
53
54 type_V gc_debug(type_X);
55
56 value *P_gc_debug(value *bp) {
57 value *sp = bp;
58 FPINIT;
59 res_V(gc_debug(arg_X(0)));
60 return sp;
61 }
62
63 type_I gc_heap_size(void);
64
65 value *P_gc_heap_size(value *bp) {
66 value *sp = bp;
67 FPINIT;
68 res_I(gc_heap_size());
69 return sp;
70 }
71
72 value *P_fopen(value *bp) {
73 value *sp = bp;
74 FPINIT;
75 res_Q(fopen(arg_X(0), arg_X(2)));
76 return sp;
77 }
78
79 value *P_fdopen(value *bp) {
80 value *sp = bp;
81 FPINIT;
82 res_Q(fdopen(arg_I(0), arg_X(1)));
83 return sp;
84 }
85
86 value *P_fclose(value *bp) {
87 value *sp = bp;
88 FPINIT;
89 res_V(fclose(arg_Q(0)));
90 return sp;
91 }
92
93 value *P_fflush(value *bp) {
94 value *sp = bp;
95 FPINIT;
96 res_V(fflush(arg_Q(0)));
97 return sp;
98 }
99
100 type_I obgetc(type_Q);
101
102 value *P_obgetc(value *bp) {
103 value *sp = bp;
104 FPINIT;
105 res_I(obgetc(arg_Q(0)));
106 return sp;
107 }
108
109 value *P_ungetc(value *bp) {
110 value *sp = bp;
111 FPINIT;
112 res_V(ungetc(arg_C(0), arg_Q(1)));
113 return sp;
114 }
115
116 value *P_fputc(value *bp) {
117 value *sp = bp;
118 FPINIT;
119 res_V(fputc(arg_C(0), arg_Q(1)));
120 return sp;
121 }
122
123 value *P_fseek(value *bp) {
124 value *sp = bp;
125 FPINIT;
126 res_V(fseek(arg_Q(0), arg_I(2), arg_I(3)));
127 return sp;
128 }
129
130 value *P_ftell(value *bp) {
131 value *sp = bp;
132 FPINIT;
133 res_I(ftell(arg_Q(0)));
134 return sp;
135 }
136
137 value *P_fread(value *bp) {
138 value *sp = bp;
139 FPINIT;
140 res_I(fread(arg_X(0), arg_I(2), arg_I(3), arg_Q(4)));
141 return sp;
142 }
143
144 value *P_fwrite(value *bp) {
145 value *sp = bp;
146 FPINIT;
147 res_V(fwrite(arg_X(0), arg_I(2), arg_I(3), arg_Q(4)));
148 return sp;
149 }
150
151 type_V FmtInt(type_Q, type_I, type_I);
152
153 value *P_FmtInt(value *bp) {
154 value *sp = bp;
155 FPINIT;
156 res_V(FmtInt(arg_Q(0), arg_I(2), arg_I(3)));
157 return sp;
158 }
159
160 type_V FmtLong(type_Q, type_L, type_I);
161
162 value *P_FmtLong(value *bp) {
163 value *sp = bp;
164 FPINIT;
165 res_V(FmtLong(arg_Q(0), arg_L(2), arg_I(4)));
166 return sp;
167 }
168
169 type_V FmtReal(type_Q, type_F);
170
171 value *P_FmtReal(value *bp) {
172 value *sp = bp;
173 FPINIT;
174 res_V(FmtReal(arg_Q(0), arg_F(2)));
175 return sp;
176 }
177
178 type_V FmtLongReal(type_Q, type_D);
179
180 value *P_FmtLongReal(value *bp) {
181 value *sp = bp;
182 FPINIT;
183 res_V(FmtLongReal(arg_Q(0), arg_D(2)));
184 return sp;
185 }
186
187 type_V FmtFixed(type_Q, type_D, type_I, type_I);
188
189 value *P_FmtFixed(value *bp) {
190 value *sp = bp;
191 FPINIT;
192 res_V(FmtFixed(arg_Q(0), arg_D(2), arg_I(4), arg_I(5)));
193 return sp;
194 }
195
196 type_V FmtString(type_Q, type_X, type_I);
197
198 value *P_FmtString(value *bp) {
199 value *sp = bp;
200 FPINIT;
201 res_V(FmtString(arg_Q(0), arg_X(2), arg_I(4)));
202 return sp;
203 }
204
205 type_V InitFiles(type_P, type_P, type_P);
206
207 value *P_InitFiles(value *bp) {
208 value *sp = bp;
209 FPINIT;
210 res_V(InitFiles(arg_P(0), arg_P(1), arg_P(2)));
211 return sp;
212 }
213
214 value *GetArg(value *bp);
215
216 value *GetEnv(value *bp);
217
218 type_I GetArgc(void);
219
220 value *P_GetArgc(value *bp) {
221 value *sp = bp;
222 FPINIT;
223 res_I(GetArgc());
224 return sp;
225 }
226
227 value *P_unlink(value *bp) {
228 value *sp = bp;
229 FPINIT;
230 res_I(unlink(arg_X(0)));
231 return sp;
232 }
233
234 #ifndef DYNLINK
235 struct primdef primtab[] = {
236 { "P_xmain_exit", P_xmain_exit },
237 { "NEW", NEW },
238 { "NEWFLEX", NEWFLEX },
239 { "COMPARE", COMPARE },
240 { "P_toupper", P_toupper },
241 { "COPY", COPY },
242 { "FLEXASSIGN", FLEXASSIGN },
243 { "EASSERT", EASSERT },
244 { "sys_move", sys_move },
245 { "sys_liberror", sys_liberror },
246 { "P_load_lib", P_load_lib },
247 { "gc_collect", gc_collect },
248 { "P_gc_debug", P_gc_debug },
249 { "P_gc_heap_size", P_gc_heap_size },
250 { "P_fopen", P_fopen },
251 { "P_fdopen", P_fdopen },
252 { "P_fclose", P_fclose },
253 { "P_fflush", P_fflush },
254 { "P_obgetc", P_obgetc },
255 { "P_ungetc", P_ungetc },
256 { "P_fputc", P_fputc },
257 { "P_fseek", P_fseek },
258 { "P_ftell", P_ftell },
259 { "P_fread", P_fread },
260 { "P_fwrite", P_fwrite },
261 { "P_FmtInt", P_FmtInt },
262 { "P_FmtLong", P_FmtLong },
263 { "P_FmtReal", P_FmtReal },
264 { "P_FmtLongReal", P_FmtLongReal },
265 { "P_FmtFixed", P_FmtFixed },
266 { "P_FmtString", P_FmtString },
267 { "P_InitFiles", P_InitFiles },
268 { "GetArg", GetArg },
269 { "GetEnv", GetEnv },
270 { "P_GetArgc", P_GetArgc },
271 { "P_unlink", P_unlink },
272 { NULL, NULL }
273 };
274 #endif