#include <string.h>
Include dependency graph for win32.c:

Go to the source code of this file.
Defines | |
| #define | LCCDIR "" |
Functions | |
| char * | concat (char *, char *) |
| int | option (char *arg) |
| char * | replace (const char *, int, int) |
Variables | |
| char * | as [] = { "ml", "-nologo", "-c", "-Cp", "-coff", "-Fo$3", "$1", "$2", 0 } |
| char * | com [] = { LCCDIR "q3rcc", "-target=x86/win32", "$1", "$2", "$3", 0 } |
| char * | cpp [] |
| char * | include [] = { "-I" LCCDIR "include", 0 } |
| char | inputs [256] = "" |
| char * | ld [] |
| char * | suffixes [] = { ".c;.C", ".i;.I", ".asm;.ASM;.s;.S", ".obj;.OBJ", ".exe", 0 } |
|
|
|
|
||||||||||||
|
Referenced by filename(), initinputs(), opt(), and option(). |
|
|
Definition at line 27 of file win32.c. References com, concat(), cpp, GCCLIB, include, ld, replace(), strcmp(), strlen(), and strncmp(). Referenced by opt(). 00027 {
00028 if (strncmp(arg, "-lccdir=", 8) == 0) {
00029 arg = replace(arg + 8, '/', '\\');
00030 if (arg[strlen(arg)-1] == '\\')
00031 arg[strlen(arg)-1] = '\0';
00032 cpp[0] = concat(arg, "\\cpp.exe");
00033 include[0] = concat("-I", concat(arg, "\\include"));
00034 com[0] = concat(arg, "\\rcc.exe");
00035 ld[8] = concat(arg, "\\liblcc.lib");
00036 } else if (strcmp(arg, "-b") == 0)
00037 ;
00038 else if (strncmp(arg, "-ld=", 4) == 0)
00039 ld[0] = &arg[4];
00040 else
00041 return 0;
00042 return 1;
00043 }
|
Here is the call graph for this function:

|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
Initial value: { LCCDIR "q3cpp", "-D__STDC__=1", "-Dwin32", "-D_WIN32", "-D_M_IX86",
"$1", "$2", "$3", 0 }
|
|
|
|
|
|
|
|
|
Initial value: { "link", "-nologo",
"-align:0x1000", "-subsystem:console", "-entry:mainCRTStartup",
"$2", "-OUT:$3", "$1", LCCDIR "liblcc.lib", "libc.lib", "kernel32.lib", 0 }
|
|
|
|
1.3.9.1