Rev 9765 | Rev 9774 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
9666 | turbocat | 1 | #include |
2 | |||
8687 | turbocat | 3 | #include "ctype/is.c" |
9765 | turbocat | 4 | #include "ctype/tolower.c" |
8730 | turbocat | 5 | #include "ctype/toupper.c" |
8687 | turbocat | 6 | |
9765 | turbocat | 7 | #include "sys/closedir.c" |
8 | #include "sys/dir.c" |
||
9 | #include "sys/opendir.c" |
||
10 | #include "sys/readdir.c" |
||
8687 | turbocat | 11 | #include "sys/rewinddir.c" |
12 | #include "sys/seekdir.c" |
||
9765 | turbocat | 13 | #include "sys/socket.c" |
8687 | turbocat | 14 | #include "sys/telldir.c" |
15 | |||
16 | #include "stdio/clearerr.c" |
||
9765 | turbocat | 17 | #include "stdio/conio.c" |
18 | #include "stdio/debug_printf.c" |
||
19 | #include "stdio/fclose.c" |
||
20 | #include "stdio/feof.c" |
||
21 | #include "stdio/ferror.c" |
||
22 | #include "stdio/fflush.c" |
||
8687 | turbocat | 23 | #include "stdio/fgetc.c" |
9765 | turbocat | 24 | #include "stdio/fgetpos.c" |
25 | #include "stdio/fgets.c" |
||
8687 | turbocat | 26 | #include "stdio/fopen.c" |
27 | #include "stdio/format_print.c" |
||
9765 | turbocat | 28 | #include "stdio/format_scan.c" |
29 | #include "stdio/fprintf.c" |
||
30 | #include "stdio/fputc.c" |
||
31 | #include "stdio/fputs.c" |
||
8687 | turbocat | 32 | #include "stdio/fread.c" |
9765 | turbocat | 33 | #include "stdio/freopen.c" |
34 | #include "stdio/fscanf.c" |
||
8687 | turbocat | 35 | #include "stdio/fseek.c" |
9765 | turbocat | 36 | #include "stdio/fsetpos.c" |
37 | #include "stdio/ftell.c" |
||
38 | #include "stdio/fwrite.c" |
||
8687 | turbocat | 39 | #include "stdio/getchar.c" |
9765 | turbocat | 40 | #include "stdio/gets.c" |
41 | #include "stdio/perror.c" |
||
42 | #include "stdio/printf.c" |
||
43 | #include "stdio/puts.c" |
||
8687 | turbocat | 44 | #include "stdio/remove.c" |
9765 | turbocat | 45 | #include "stdio/rename.c" |
46 | #include "stdio/rewind.c" |
||
47 | #include "stdio/scanf.c" |
||
48 | #include "stdio/setbuf.c" |
||
8687 | turbocat | 49 | #include "stdio/setvbuf.c" |
9765 | turbocat | 50 | #include "stdio/snprintf.c" |
51 | #include "stdio/sprintf.c" |
||
8687 | turbocat | 52 | #include "stdio/sscanf.c" |
9765 | turbocat | 53 | #include "stdio/tmpfile.c" |
8687 | turbocat | 54 | #include "stdio/tmpnam.c" |
9765 | turbocat | 55 | #include "stdio/ungetc.c" |
8687 | turbocat | 56 | #include "stdio/vfprintf.c" |
9765 | turbocat | 57 | #include "stdio/vprintf.c" |
58 | #include "stdio/vsnprintf.c" |
||
8687 | turbocat | 59 | |
60 | #include "string/memccpy.c" |
||
9765 | turbocat | 61 | #include "string/memchr.c" |
62 | #include "string/memcmp.c" |
||
63 | #include "string/memcpy.c" |
||
64 | #include "string/strcat.c" |
||
8687 | turbocat | 65 | #include "string/strchr.c" |
9765 | turbocat | 66 | #include "string/strcmp.c" |
8687 | turbocat | 67 | #include "string/strcoll.c" |
68 | #include "string/strcpy.c" |
||
9765 | turbocat | 69 | #include "string/strcspn.c" |
8687 | turbocat | 70 | #include "string/strdup.c" |
9765 | turbocat | 71 | #include "string/strerror.c" |
72 | #include "string/strlen.c" |
||
73 | #include "string/strncat.c" |
||
8687 | turbocat | 74 | #include "string/strncmp.c" |
9765 | turbocat | 75 | #include "string/strncpy.c" |
76 | #include "string/strpbrk.c" |
||
77 | #include "string/strrchr.c" |
||
78 | #include "string/strrev.c" |
||
79 | #include "string/strspn.c" |
||
80 | #include "string/strstr.c" |
||
8687 | turbocat | 81 | #include "string/strtok.c" |
9765 | turbocat | 82 | #include "string/strxfrm.c" |
8687 | turbocat | 83 | |
9765 | turbocat | 84 | #include "stdlib/abs.c" |
85 | #include "stdlib/assert.c" |
||
86 | #include "stdlib/atof.c" |
||
87 | #include "stdlib/atoi.c" |
||
88 | #include "stdlib/atol.c" |
||
89 | #include "stdlib/atoll.c" |
||
8687 | turbocat | 90 | #include "stdlib/calloc.c" |
9765 | turbocat | 91 | #include "stdlib/exit.c" |
8687 | turbocat | 92 | #include "stdlib/free.c" |
9765 | turbocat | 93 | #include "stdlib/itoa.c" |
94 | #include "stdlib/labs.c" |
||
8687 | turbocat | 95 | #include "stdlib/llabs.c" |
9765 | turbocat | 96 | #include "stdlib/malloc.c" |
97 | #include "stdlib/qsort.c" |
||
98 | #include "stdlib/rand.c" |
||
8687 | turbocat | 99 | #include "stdlib/realloc.c" |
9765 | turbocat | 100 | #include "stdlib/strtod.c" |
8687 | turbocat | 101 | #include "stdlib/strtol.c" |
102 | |||
103 | #include "math/acosh.c" |
||
104 | #include "math/asinh.c" |
||
105 | #include "math/atanh.c" |
||
106 | #include "math/cosh.c" |
||
107 | #include "math/frexp.c" |
||
108 | #include "math/hypot.c" |
||
109 | #include "math/ldexp.c" |
||
110 | #include "math/sinh.c" |
||
111 | #include "math/tanh.c" |
||
112 | |||
9765 | turbocat | 113 | #include "time/asctime.c" |
8787 | turbocat | 114 | #include "time/difftime.c" |
115 | #include "time/localtime.c" |
||
116 | #include "time/mktime.c" |
||
117 | #include "time/time.c" |
||
118 | |||
9262 | turbocat | 119 | #include "misc/basename.c" |
120 | #include "misc/dirname.c" |
||
121 | |||
8687 | turbocat | 122 | __asm__( |
123 | ".include \"math/acos.s\"\n\t" |
||
124 | ".include \"math/asin.s\"\n\t" |
||
125 | ".include \"math/atan.s\"\n\t" |
||
126 | ".include \"math/atan2.s\"\n\t" |
||
127 | ".include \"math/ceil.s\"\n\t" |
||
128 | ".include \"math/cos.s\"\n\t" |
||
129 | ".include \"math/exp.s\"\n\t" |
||
130 | ".include \"math/fabs.s\"\n\t" |
||
131 | ".include \"math/floor.s\"\n\t" |
||
132 | ".include \"math/fmod.s\"\n\t" |
||
133 | ".include \"math/log.s\"\n\t" |
||
9772 | vitalkrilo | 134 | ".include \"math/log2.s\"\n\t" |
135 | ".include \"math/log10.s\"\n\t" |
||
8687 | turbocat | 136 | ".include \"math/modf.s\"\n\t" |
137 | ".include \"math/modfl.s\"\n\t" |
||
138 | ".include \"math/pow.s\"\n\t" |
||
139 | ".include \"math/pow2.s\"\n\t" |
||
8787 | turbocat | 140 | ".include \"math/pow10.s\"\n\t" |
9772 | vitalkrilo | 141 | ".include \"math/round.s\"\n\t" |
8787 | turbocat | 142 | ".include \"math/sqrt.s\"\n\t" |
9515 | turbocat | 143 | ".include \"math/sin.s\"\n\t" |
9765 | turbocat | 144 | ".include \"math/tan.s\"\n\t"); |
8687 | turbocat | 145 | |
146 | __asm__( |
||
9765 | turbocat | 147 | ".include \"string/memmove.s\"\n\t" |
148 | ".include \"string/memset.s\"\n\t" |
||
8687 | turbocat | 149 | ".include \"setjmp/longjmp.s\"\n\t" |
9765 | turbocat | 150 | ".include \"setjmp/setjmp.s\""); |
8687 | turbocat | 151 | |
9666 | turbocat | 152 | #include "libtcc1/libtcc1.c" |
8687 | turbocat | 153 | #include "stdlib/___chkstk_ms.c" |
9666 | turbocat | 154 | |
155 | ksys_dll_t EXPORTS[] = { |
||
9765 | turbocat | 156 | { "clearerr", &clearerr }, |
157 | { "debug_printf", &debug_printf }, |
||
158 | { "fclose", &fclose }, |
||
159 | { "feof", &feof }, |
||
160 | { "ferror", &ferror }, |
||
161 | { "fflush", &fflush }, |
||
162 | { "fgetc", &fgetc }, |
||
163 | { "fgetpos", &fgetpos }, |
||
164 | { "fgets", &fgets }, |
||
165 | { "fopen", &fopen }, |
||
166 | { "fprintf", &fprintf }, |
||
167 | { "fputc", &fputc }, |
||
168 | { "fputs", &fputs }, |
||
169 | { "fread", &fread }, |
||
170 | { "freopen", &freopen }, |
||
171 | { "fscanf", &fscanf }, |
||
172 | { "fseek", &fseek }, |
||
173 | { "fsetpos", &fsetpos }, |
||
174 | { "ftell", &ftell }, |
||
175 | { "fwrite", &fwrite }, |
||
176 | { "getchar", &getchar }, |
||
177 | { "gets", &gets }, |
||
178 | { "perror", &perror }, |
||
179 | { "printf", &printf }, |
||
180 | { "puts", &puts }, |
||
181 | { "remove", &remove }, |
||
182 | { "rename", &rename }, |
||
183 | { "rewind", &rewind }, |
||
184 | { "scanf", &scanf }, |
||
185 | { "setbuf", &setbuf }, |
||
186 | { "setvbuf", &setvbuf }, |
||
187 | { "snprintf", &snprintf }, |
||
188 | { "sprintf", &sprintf }, |
||
189 | { "sscanf", &sscanf }, |
||
190 | { "tmpfile", &tmpfile }, |
||
191 | { "tmpnam", &tmpnam }, |
||
192 | { "vfscanf", &vfscanf }, |
||
193 | { "vprintf", &vprintf }, |
||
194 | { "vfscanf", &vfscanf }, |
||
195 | { "vsprintf", &vsprintf }, |
||
196 | { "vsnprintf", &vsnprintf }, |
||
197 | { "vsscanf", &vsscanf }, |
||
198 | { "ungetc", &ungetc }, |
||
199 | { "abs", &abs }, |
||
200 | { "atoi", &atoi }, |
||
201 | { "atol", &atol }, |
||
202 | { "atoll", &atoll }, |
||
203 | { "atof", &atof }, |
||
204 | { "calloc", &calloc }, |
||
205 | { "exit", &exit }, |
||
206 | { "free", &free }, |
||
207 | { "itoa", &itoa }, |
||
208 | { "labs", &labs }, |
||
209 | { "llabs", &llabs }, |
||
210 | { "malloc", &malloc }, |
||
211 | { "realloc", &realloc }, |
||
212 | { "strtol", &strtol }, |
||
213 | { "srand", &srand }, |
||
214 | { "rand", &rand }, |
||
215 | { "qsort", &qsort }, |
||
216 | { "strtod", &strtod }, |
||
217 | { "__assert_fail", &__assert_fail }, |
||
218 | { "memchr", &memchr }, |
||
219 | { "memcmp", &memcmp }, |
||
220 | { "strncat", &strncat }, |
||
221 | { "strchr", &strchr }, |
||
222 | { "strcat", &strcat }, |
||
223 | { "strcmp", &strcmp }, |
||
224 | { "strcoll", &strcoll }, |
||
225 | { "strcpy", &strcpy }, |
||
226 | { "strcspn", &strcspn }, |
||
227 | { "strdup", &strdup }, |
||
228 | { "strerror", &strerror }, |
||
229 | { "strlen", &strlen }, |
||
230 | { "strncat", &strncat }, |
||
231 | { "strncmp", &strncmp }, |
||
232 | { "strncpy", &strncpy }, |
||
233 | { "strrchr", &strrchr }, |
||
234 | { "strrev", &strrev }, |
||
235 | { "strspn", &strspn }, |
||
236 | { "strstr", &strstr }, |
||
237 | { "strtok", &strtok }, |
||
238 | { "strxfrm", &strxfrm }, |
||
239 | { "__errno", &__errno }, |
||
240 | { "closedir", &closedir }, |
||
241 | { "opendir", &opendir }, |
||
242 | { "readdir", &readdir }, |
||
243 | { "rewinddir", &rewinddir }, |
||
244 | { "seekdir", &seekdir }, |
||
245 | { "telldir", &telldir }, |
||
246 | { "getcwd", &getcwd }, |
||
247 | { "mkdir", &mkdir }, |
||
248 | { "rmdir", &rmdir }, |
||
249 | { "setcwd", &setcwd }, |
||
250 | { "getcwd", &getcwd }, |
||
251 | { "socket", &socket }, |
||
252 | { "close", &close }, |
||
253 | { "bind", &bind }, |
||
254 | { "listen", &listen }, |
||
255 | { "connect", &connect }, |
||
256 | { "accept", &accept }, |
||
257 | { "send", &send }, |
||
258 | { "recv", &recv }, |
||
259 | { "setsockopt", &setsockopt }, |
||
260 | { "socketpair", &socketpair }, |
||
261 | { "acosh", &acosh }, |
||
262 | { "asinh", &asinh }, |
||
263 | { "atanh", &atanh }, |
||
264 | { "frexp", &frexp }, |
||
265 | { "hypot", &hypot }, |
||
266 | { "ldexp", &ldexp }, |
||
267 | { "cosh", &cosh }, |
||
268 | { "sinh", &sinh }, |
||
269 | { "tanh", &tanh }, |
||
270 | { "acos", &acos }, |
||
271 | { "asin", &asin }, |
||
272 | { "atan", &atan }, |
||
273 | { "atan2", &atan2 }, |
||
274 | { "ceil", &ceil }, |
||
275 | { "cos", &cos }, |
||
276 | { "sin", &sin }, |
||
277 | { "tan", &tan }, |
||
278 | { "sqrt", &sqrt }, |
||
279 | { "exp", &exp }, |
||
280 | { "fabs", &fabs }, |
||
281 | { "floor", &floor }, |
||
282 | { "fmod", &fmod }, |
||
283 | { "log", &log }, |
||
9772 | vitalkrilo | 284 | { "log2", &log2 }, |
285 | { "log10", &log10 }, |
||
286 | { "round", &round }, |
||
9765 | turbocat | 287 | { "modf", &modf }, |
288 | { "modfl", &modfl }, |
||
289 | { "pow", &pow }, |
||
290 | { "pow2", &pow2 }, |
||
291 | { "pow10", &pow10 }, |
||
292 | { "longjmp", &longjmp }, |
||
293 | { "setjmp", &setjmp }, |
||
294 | { "__is", &__is }, |
||
295 | { "tolower", &tolower }, |
||
296 | { "toupper", &toupper }, |
||
297 | { "con_set_title", &con_set_title }, |
||
298 | { "con_init", &con_init }, |
||
299 | { "con_init_opt", &con_init_opt }, |
||
300 | { "con_write_asciiz", &con_write_asciiz }, |
||
301 | { "con_write_string", &con_write_string }, |
||
302 | { "con_printf", &con_printf }, |
||
303 | { "con_exit", &con_exit }, |
||
304 | { "con_get_flags", &con_get_flags }, |
||
305 | { "con_set_flags", &con_set_flags }, |
||
306 | { "con_kbhit", &con_kbhit }, |
||
307 | { "con_getch", &con_getch }, |
||
308 | { "con_getch2", &con_getch2 }, |
||
309 | { "con_gets", &con_gets }, |
||
310 | { "con_gets2", &con_gets2 }, |
||
311 | { "con_get_font_height", &con_get_font_height }, |
||
312 | { "con_get_cursor_height", &con_get_cursor_height }, |
||
313 | { "con_set_cursor_height", &con_set_cursor_height }, |
||
314 | { "con_cls", &con_cls }, |
||
315 | { "con_get_cursor_pos", &con_get_cursor_pos }, |
||
316 | { "con_set_cursor_pos", &con_set_cursor_pos }, |
||
317 | { "mktime", &mktime }, |
||
318 | { "time", &time }, |
||
319 | { "localtime", &localtime }, |
||
320 | { "asctime", &asctime }, |
||
321 | { "difftime", &difftime }, |
||
322 | { "basename", &basename }, |
||
323 | { "dirname", &dirname }, |
||
9666 | turbocat | 324 | NULL, |
325 | }; |