Move forceIncludeFile to eliminate warning.

CVS patchset: 2412
CVS date: 1998/10/06 23:16:29
This commit is contained in:
jbj 1998-10-06 23:16:29 +00:00
parent 081efe9cfa
commit ffb5ed842f
1 changed files with 10 additions and 10 deletions

View File

@ -91,6 +91,16 @@ void handleComments(char *s)
}
}
static void forceIncludeFile(Spec spec, const char * fileName)
{
struct OpenFileInfo * ofi;
ofi = newOpenFileInfo();
ofi->fileName = strdup(fileName);
ofi->next = spec->fileStack;
spec->fileStack = ofi;
}
/* returns 0 - success */
/* 1 - EOF */
/* <0 - error */
@ -259,16 +269,6 @@ void closeSpec(Spec spec)
}
}
void forceIncludeFile(Spec spec, const char * fileName)
{
struct OpenFileInfo * ofi;
ofi = newOpenFileInfo();
ofi->fileName = strdup(fileName);
ofi->next = spec->fileStack;
spec->fileStack = ofi;
}
int noLang = 0; /* XXX FIXME: pass as arg */
int parseSpec(Spec *specp, char *specFile, char *buildRoot,