From 04e4da654ac8465f53c05fdfa4fe3c5a04dc09ed Mon Sep 17 00:00:00 2001 From: "Timothy C. McGrath" Date: Fri, 26 Oct 2001 02:32:40 +0000 Subject: [PATCH] Changes taniwha did to make qfcc work with statically compiled libs. This is what was bugging me all night long with qfcc ><;; Tim McGrath (Misty-chan) --- tools/qfcc/include/cmdlib.h | 2 +- tools/qfcc/source/cmdlib.c | 4 ++-- tools/qfcc/source/qfcc.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/qfcc/include/cmdlib.h b/tools/qfcc/include/cmdlib.h index 2fa9a85a1..8e7f36b60 100644 --- a/tools/qfcc/include/cmdlib.h +++ b/tools/qfcc/include/cmdlib.h @@ -59,7 +59,7 @@ void SafeWrite (FILE *f, void *buffer, int count); int LoadFile (char *filename, void **bufferptr); -char *COM_Parse (char *data); +char *Parse (char *data); extern char com_token[1024]; extern qboolean com_eof; diff --git a/tools/qfcc/source/cmdlib.c b/tools/qfcc/source/cmdlib.c index 4e34ab43c..0d3adf8f4 100644 --- a/tools/qfcc/source/cmdlib.c +++ b/tools/qfcc/source/cmdlib.c @@ -77,12 +77,12 @@ Error (char *error, ...) /* - COM_Parse + Parse Parse a token out of a string */ char * -COM_Parse (char *data) +Parse (char *data) { int c; int len = 0; diff --git a/tools/qfcc/source/qfcc.c b/tools/qfcc/source/qfcc.c index ea759be4a..b5b0a13ad 100644 --- a/tools/qfcc/source/qfcc.c +++ b/tools/qfcc/source/qfcc.c @@ -995,7 +995,7 @@ main (int argc, char **argv) sprintf (filename, "%s/progs.src", sourcedir); LoadFile (filename, (void *) &src); - if (!(src = COM_Parse (src))) + if (!(src = Parse (src))) Error ("No destination filename. qfcc --help for info.\n"); strcpy (destfile, com_token); @@ -1023,7 +1023,7 @@ main (int argc, char **argv) PR_BeginCompilation (); // compile all the files - while ((src = COM_Parse (src))) { + while ((src = Parse (src))) { #ifdef USE_CPP pid_t pid; char *temp1;