Rev 9515 | Rev 9761 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9515 | Rev 9666 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | #include |
|
- | 2 | ||
1 | #include "ctype/is.c" |
3 | #include "ctype/is.c" |
2 | #include "ctype/tolower.c" |
4 | #include "ctype/tolower.c" |
3 | #include "ctype/toupper.c" |
5 | #include "ctype/toupper.c" |
Line 4... | Line 6... | ||
4 | 6 | ||
Line 144... | Line 146... | ||
144 | __asm__( |
146 | __asm__( |
145 | ".include \"setjmp/longjmp.s\"\n\t" |
147 | ".include \"setjmp/longjmp.s\"\n\t" |
146 | ".include \"setjmp/setjmp.s\"" |
148 | ".include \"setjmp/setjmp.s\"" |
147 | ); |
149 | ); |
Line 148... | Line 150... | ||
148 | 150 | ||
149 | #include "libtcc/libtcc1.c" |
151 | #include "libtcc1/libtcc1.c" |
- | 152 | #include "stdlib/___chkstk_ms.c" |
|
- | 153 | ||
- | 154 | ||
- | 155 | ksys_dll_t EXPORTS[] = { |
|
- | 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}, |
|
150 | #include "stdlib/___chkstk_ms.c" |
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 | {"acosh", &acosh}, |
|
- | 265 | {"frexp", &frexp}, |
|
- | 266 | {"hypot", &hypot}, |
|
- | 267 | {"ldexp", &ldexp}, |
|
- | 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 | {"exp", &exp}, |
|
- | 279 | {"fabs", &fabs}, |
|
- | 280 | {"floor", &floor}, |
|
- | 281 | {"fmod", &fmod}, |
|
- | 282 | {"log", &log}, |
|
- | 283 | {"modf", &modf}, |
|
- | 284 | {"modfl", &modfl}, |
|
- | 285 | {"pow", &pow}, |
|
- | 286 | {"pow2", &pow2}, |
|
- | 287 | {"pow10", &pow10}, |
|
- | 288 | {"longjmp", &longjmp}, |
|
- | 289 | {"setjmp", &setjmp}, |
|
- | 290 | {"__is", &__is}, |
|
- | 291 | {"tolower", &tolower}, |
|
- | 292 | {"toupper", &toupper}, |
|
- | 293 | {"con_set_title", &con_set_title}, |
|
- | 294 | {"con_init", &con_init}, |
|
- | 295 | {"con_init_opt", &con_init_opt}, |
|
- | 296 | {"con_write_asciiz", &con_write_asciiz}, |
|
- | 297 | {"con_write_string", &con_write_string}, |
|
- | 298 | {"con_printf", &con_printf}, |
|
- | 299 | {"con_exit", &con_exit}, |
|
- | 300 | {"con_get_flags", &con_get_flags}, |
|
- | 301 | {"con_set_flags", &con_set_flags}, |
|
- | 302 | {"con_kbhit", &con_kbhit}, |
|
- | 303 | {"con_getch", &con_getch}, |
|
- | 304 | {"con_getch2", &con_getch2}, |
|
- | 305 | {"con_gets", &con_gets}, |
|
- | 306 | {"con_gets2", &con_gets2}, |
|
- | 307 | {"con_get_font_height", &con_get_font_height}, |
|
- | 308 | {"con_get_cursor_height", &con_get_cursor_height}, |
|
- | 309 | {"con_set_cursor_height", &con_set_cursor_height}, |
|
- | 310 | {"con_cls", &con_cls}, |
|
- | 311 | {"con_get_cursor_pos", &con_get_cursor_pos}, |
|
- | 312 | {"con_set_cursor_pos", &con_set_cursor_pos}, |
|
- | 313 | {"mktime", &mktime}, |
|
- | 314 | {"time", &time}, |
|
- | 315 | {"localtime", &localtime}, |
|
- | 316 | {"asctime", &asctime}, |
|
- | 317 | {"difftime", &difftime}, |
|
- | 318 | {"basename", &basename}, |
|
- | 319 | {"dirname", &dirname}, |
|
- | 320 | NULL, |