| 1 | /* | 
|---|
| 2 | * Do all necessary includes here, so that we don't have to worry about | 
|---|
| 3 | * overlapping includes in the files in missing.d. | 
|---|
| 4 | */ | 
|---|
| 5 | #include "config.h" | 
|---|
| 6 | #include "awk.h" | 
|---|
| 7 |  | 
|---|
| 8 |  | 
|---|
| 9 | #ifdef atarist | 
|---|
| 10 | /* | 
|---|
| 11 | * this will work with gcc compiler - for other compilers you may | 
|---|
| 12 | * have to replace path separators in this file into backslashes | 
|---|
| 13 | */ | 
|---|
| 14 | #include "unsupported/atari/stack.c" | 
|---|
| 15 | #include "unsupported/atari/tmpnam.c" | 
|---|
| 16 | #endif /* atarist */ | 
|---|
| 17 |  | 
|---|
| 18 | #ifndef HAVE_SYSTEM | 
|---|
| 19 | #ifdef atarist | 
|---|
| 20 | #include "unsupported/atari/system.c" | 
|---|
| 21 | #else | 
|---|
| 22 | #include "missing_d/system.c" | 
|---|
| 23 | #endif | 
|---|
| 24 | #endif /* HAVE_SYSTEM */ | 
|---|
| 25 |  | 
|---|
| 26 | #ifndef HAVE_MEMCMP | 
|---|
| 27 | #include "missing_d/memcmp.c" | 
|---|
| 28 | #endif  /* HAVE_MEMCMP */ | 
|---|
| 29 |  | 
|---|
| 30 | #ifndef HAVE_MEMCPY | 
|---|
| 31 | #include "missing_d/memcpy.c" | 
|---|
| 32 | #endif  /* HAVE_MEMCPY */ | 
|---|
| 33 |  | 
|---|
| 34 | #ifndef HAVE_MEMSET | 
|---|
| 35 | #include "missing_d/memset.c" | 
|---|
| 36 | #endif  /* HAVE_MEMSET */ | 
|---|
| 37 |  | 
|---|
| 38 | #ifndef HAVE_MEMMOVE | 
|---|
| 39 | #include "missing_d/memmove.c" | 
|---|
| 40 | #endif  /* HAVE_MEMMOVE */ | 
|---|
| 41 |  | 
|---|
| 42 | #ifndef HAVE_STRNCASECMP | 
|---|
| 43 | #include "missing_d/strncasecmp.c" | 
|---|
| 44 | #endif  /* HAVE_STRCASE */ | 
|---|
| 45 |  | 
|---|
| 46 | #ifndef HAVE_STRERROR | 
|---|
| 47 | #include "missing_d/strerror.c" | 
|---|
| 48 | #endif  /* HAVE_STRERROR */ | 
|---|
| 49 |  | 
|---|
| 50 | #ifndef HAVE_STRFTIME | 
|---|
| 51 | #include "missing_d/strftime.c" | 
|---|
| 52 | #endif  /* HAVE_STRFTIME */ | 
|---|
| 53 |  | 
|---|
| 54 | #ifndef HAVE_STRCHR | 
|---|
| 55 | #include "missing_d/strchr.c" | 
|---|
| 56 | #endif  /* HAVE_STRCHR */ | 
|---|
| 57 |  | 
|---|
| 58 | #if !defined(HAVE_STRTOD) || defined(STRTOD_NOT_C89) | 
|---|
| 59 | #include "missing_d/strtod.c" | 
|---|
| 60 | #endif  /* HAVE_STRTOD */ | 
|---|
| 61 |  | 
|---|
| 62 | #ifndef HAVE_STRTOUL | 
|---|
| 63 | #include "missing_d/strtoul.c" | 
|---|
| 64 | #endif  /* HAVE_STRTOUL */ | 
|---|
| 65 |  | 
|---|
| 66 | #ifndef HAVE_TZSET | 
|---|
| 67 | #include "missing_d/tzset.c" | 
|---|
| 68 | #endif /* HAVE_TZSET */ | 
|---|
| 69 |  | 
|---|
| 70 | #if defined TANDEM | 
|---|
| 71 | #include "strdupc" | 
|---|
| 72 | #include "getidc" | 
|---|
| 73 | #include "strnchkc" | 
|---|
| 74 | #endif /* TANDEM */ | 
|---|
| 75 |  | 
|---|
| 76 | #ifndef HAVE_MKTIME | 
|---|
| 77 | /* mktime.c defines main() if DEBUG is set */ | 
|---|
| 78 | #undef DEBUG | 
|---|
| 79 | #include "missing_d/mktime.c" | 
|---|
| 80 | #endif /* HAVE_MKTIME */ | 
|---|