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

osf.c File Reference

#include <string.h>

Include dependency graph for osf.c:

Include dependency graph

Go to the source code of this file.

Defines

#define LCCDIR   "/usr/local/lib/lcc/"

Functions

int access (const char *, int)
char * concat (char *, char *)
int option (char *arg)

Variables

char * as [] = { "/bin/as", "-o", "$3", "", "$1", "-nocpp", "$2", 0 }
char * com [] = { LCCDIR "rcc", "-target=alpha/osf", "$1", "$2", "$3", "", 0 }
char * cpp []
char * include []
char inputs [256] = ""
char * ld []
char * suffixes [] = { ".c", ".i", ".s", ".o", ".out", 0 }


Define Documentation

#define LCCDIR   "/usr/local/lib/lcc/"
 

Definition at line 7 of file osf.c.


Function Documentation

int access const char *  ,
int 
 

Referenced by AASOuputFile(), exists(), main(), and option().

char* concat char *  ,
char * 
 

int option char *  arg  ) 
 

Definition at line 29 of file osf.c.

References access(), com, concat(), cpp, include, ld, strcmp(), and strncmp().

00029                       {
00030     if (strncmp(arg, "-lccdir=", 8) == 0) {
00031         cpp[0] = concat(&arg[8], "/cpp");
00032         include[0] = concat("-I", concat(&arg[8], "/include"));
00033         com[0] = concat(&arg[8], "/rcc");
00034         ld[8] = concat("-L", &arg[8]);
00035     } else if (strcmp(arg, "-g4") == 0
00036     && access("/u/drh/lib/alpha/rcc", 4) == 0
00037     && access("/u/drh/book/cdb/alpha/osf/cdbld", 4) == 0) {
00038         com[0] = "/u/drh/lib/alpha/rcc";
00039         com[5] = "-g4";
00040         ld[0] = "/u/drh/book/cdb/alpha/osf/cdbld";
00041         ld[1] = "-o";
00042         ld[2] = "$3";
00043         ld[3] = "$1";
00044         ld[4] = "$2";
00045         ld[5] = 0;
00046     } else if (strcmp(arg, "-g") == 0)
00047         return 1;
00048     else if (strcmp(arg, "-b") == 0)
00049         ;
00050     else
00051         return 0;
00052     return 1;
00053 }

Here is the call graph for this function:


Variable Documentation

char* as[] = { "/bin/as", "-o", "$3", "", "$1", "-nocpp", "$2", 0 }
 

Definition at line 22 of file osf.c.

char* com[] = { LCCDIR "rcc", "-target=alpha/osf", "$1", "$2", "$3", "", 0 }
 

Definition at line 19 of file osf.c.

char* cpp[]
 

Initial value:

 {
    LCCDIR "cpp", "-D__STDC__=1",
    "-DLANGUAGE_C", "-D__LANGUAGE_C__",
    "-D_unix", "-D__unix__", "-D_osf", "-D__osf__", "-Dunix",
    "-Dalpha", "-D_alpha", "-D__alpha",
    "-D__SYSTYPE_BSD",  "-D_SYSTYPE_BSD",
    "$1", "$2", "$3", 0 }

Definition at line 12 of file osf.c.

char* include[]
 

Initial value:

 { "-I" LCCDIR "include", "-I/usr/local/include",
    "-I/usr/include", 0 }

Definition at line 20 of file osf.c.

char inputs[256] = ""
 

Definition at line 11 of file osf.c.

char* ld[]
 

Initial value:

  { "/usr/bin/ld", "-o", "$3", "/usr/lib/cmplrs/cc/crt0.o",
    "$1", "$2", "", "", "-L" LCCDIR, "-llcc", "-lm", "-lc", 0 }

Definition at line 23 of file osf.c.

char* suffixes[] = { ".c", ".i", ".s", ".o", ".out", 0 }
 

Definition at line 10 of file osf.c.


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