| 56 | static txScript* fxLoadScript(txMachine* the, txString path); |
| 57 | |
| 58 | int main(int argc, char* argv[]) |
| 59 | { |
| 60 | txLinker _linker; |
| 61 | txLinker* linker = &_linker; |
| 62 | txLinkerInclude** includeAddress; |
| 63 | txLinkerPreload** preloadAddress; |
| 64 | txLinkerResource** resourceAddress; |
| 65 | txLinkerScript** scriptAddress; |
| 66 | txLinkerStrip** stripAddress; |
| 67 | int argi; |
| 68 | txString base = NULL; |
| 69 | txString input = NULL; |
| 70 | txString output = NULL; |
| 71 | txString separator = NULL; |
| 72 | txBoolean archiving = 0; |
| 73 | txBoolean optimizing = 1; |
| 74 | #if mxWindows |
| 75 | txString url = "\\"; |
| 76 | #else |
| 77 | txString url = "/"; |
| 78 | #endif |
| 79 | char name[C_PATH_MAX]; |
| 80 | char path[C_PATH_MAX]; |
| 81 | txSize size; |
| 82 | txLinkerInclude* include; |
| 83 | txLinkerPreload* preload; |
| 84 | txLinkerResource* resource; |
| 85 | txLinkerScript* script; |
| 86 | FILE* file = NULL; |
| 87 | xsCreation _creation = { |
| 88 | 128 * 1024 * 1024, /* initialChunkSize */ |
| 89 | 16 * 1024 * 1024, /* incrementalChunkSize */ |
| 90 | 4 * 1024 * 1024, /* initialHeapCount */ |
| 91 | 1 * 1024 * 1024, /* incrementalHeapCount */ |
| 92 | 1024 * 16, /* stackCount */ |
| 93 | 2048 * 4, /* initialKeyCount */ |
| 94 | 0, /* incrementalKeyCount */ |
| 95 | 1993, /* nameModulo */ |
| 96 | 127, /* symbolModulo */ |
| 97 | 32 * 1024, /* parserBufferSize */ |
| 98 | 1993, /* parserTableModulo */ |
| 99 | }; |
| 100 | xsCreation* creation = &_creation; |
| 101 | xsMachine* the = NULL; |
| 102 | txInteger count; |
| 103 | |
| 104 | txBoolean incremental = 0; |
| 105 | struct c_stat headerStat; |
| 106 | struct c_utimbuf headerTimes; |
| 107 | |
| 108 | fxInitializeLinker(linker); |
| 109 | if (c_setjmp(linker->jmp_buf) == 0) { |
| 110 | if ((argc == 2) && (c_strcmp(argv[1], "args.txt") == 0)) { |
| 111 | txString buffer; |
| 112 | txString string; |
| 113 | char c; |
| 114 | file = fopen(argv[1], "r"); |
| 115 | mxThrowElse(file); |
nothing calls this directly
no test coverage detected