Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

win32.c File Reference

#include <string.h>

Include dependency graph for win32.c:

Include dependency graph

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 }


Define Documentation

#define LCCDIR   ""
 

Definition at line 10 of file win32.c.


Function Documentation

char* concat char *  ,
char * 
 

Referenced by filename(), initinputs(), opt(), and option().

int option char *  arg  ) 
 

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:

char* replace const char *  ,
int  ,
int 
 


Variable Documentation

char* as[] = { "ml", "-nologo", "-c", "-Cp", "-coff", "-Fo$3", "$1", "$2", 0 }
 

Definition at line 19 of file win32.c.

char* com[] = { LCCDIR "q3rcc", "-target=x86/win32", "$1", "$2", "$3", 0 }
 

Definition at line 18 of file win32.c.

char* cpp[]
 

Initial value:

 { LCCDIR "q3cpp", "-D__STDC__=1", "-Dwin32", "-D_WIN32", "-D_M_IX86",
    "$1", "$2", "$3", 0 }

Definition at line 15 of file win32.c.

char* include[] = { "-I" LCCDIR "include", 0 }
 

Definition at line 17 of file win32.c.

char inputs[256] = ""
 

Definition at line 14 of file win32.c.

char* ld[]
 

Initial value:

 { "link", "-nologo", 
    "-align:0x1000", "-subsystem:console", "-entry:mainCRTStartup",
    "$2", "-OUT:$3", "$1", LCCDIR "liblcc.lib", "libc.lib", "kernel32.lib", 0 }

Definition at line 20 of file win32.c.

char* suffixes[] = { ".c;.C", ".i;.I", ".asm;.ASM;.s;.S", ".obj;.OBJ", ".exe", 0 }
 

Definition at line 13 of file win32.c.


Generated on Thu Aug 25 15:48:15 2005 for Quake III Arena by  doxygen 1.3.9.1