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)
This commit is contained in:
Timothy C. McGrath 2001-10-26 02:32:40 +00:00
parent 0a6ae4f36f
commit 04e4da654a
3 changed files with 5 additions and 5 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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;