aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/make/parse.c
diff options
context:
space:
mode:
authorHartmut Brandt <harti@FreeBSD.org>2005-02-04 12:38:57 +0000
committerHartmut Brandt <harti@FreeBSD.org>2005-02-04 12:38:57 +0000
commitce8c7083f4390d5373b6c4c2808e9d5f3cb5c61e (patch)
tree9f328f2c109b19bb6758b3caa82905c3e6085b9d /usr.bin/make/parse.c
parent435916b0119eadc7f9349c6b3b34f05069a9d184 (diff)
Notes
Diffstat (limited to 'usr.bin/make/parse.c')
-rw-r--r--usr.bin/make/parse.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c
index a2c70cdc2d2a..346ee90cbb7e 100644
--- a/usr.bin/make/parse.c
+++ b/usr.bin/make/parse.c
@@ -682,7 +682,7 @@ ParseClearPath(void *path, void *dummy __unused)
*---------------------------------------------------------------------
*/
static void
-ParseDoDependency (char *line)
+ParseDoDependency(char *line)
{
char *cp; /* our current position */
GNode *gn; /* a general purpose temporary node */
@@ -1129,7 +1129,7 @@ ParseDoDependency (char *line)
} else {
Lst curSrcs = Lst_Initializer(curSrc); /* list of sources in order */
-
+
while (*line) {
/*
* The targets take real sources, so we must beware of archive
@@ -1611,7 +1611,7 @@ ParseDoWarning(char *warnmsg)
*---------------------------------------------------------------------
*/
static void
-ParseDoInclude (char *file)
+ParseDoInclude(char *file)
{
char *fullname; /* full pathname of file */
IFile *oldFile; /* state associated with current file */
@@ -1743,7 +1743,7 @@ ParseDoInclude (char *file)
* is placed on a list with other IFile structures. The list makes
* a very nice stack to track how we got here...
*/
- oldFile = emalloc(sizeof (IFile));
+ oldFile = emalloc(sizeof(IFile));
memcpy(oldFile, &curFile, sizeof(IFile));
Lst_AtFront(&includes, oldFile);
@@ -1796,7 +1796,7 @@ Parse_FromString(char *str, int lineno)
Lst_AtFront(&includes, oldFile);
curFile.F = NULL;
- curFile.p = emalloc(sizeof (PTR));
+ curFile.p = emalloc(sizeof(PTR));
curFile.p->str = curFile.p->ptr = str;
curFile.lineno = lineno;
curFile.fname = estrdup(curFile.fname);
@@ -1820,7 +1820,7 @@ Parse_FromString(char *str, int lineno)
*---------------------------------------------------------------------
*/
static void
-ParseTraditionalInclude (char *file)
+ParseTraditionalInclude(char *file)
{
char *fullname; /* full pathname of file */
IFile *oldFile; /* state associated with current file */
@@ -2395,7 +2395,7 @@ Parse_File(char *name, FILE *stream)
continue;
}
if (strncmp(cp, "include", 7) == 0) {
- ParseDoInclude (cp + 7);
+ ParseDoInclude(cp + 7);
goto nextLine;
} else if (strncmp(cp, "error", 5) == 0) {
ParseDoError(cp + 5);
@@ -2495,7 +2495,7 @@ Parse_File(char *name, FILE *stream)
Lst_Destroy(&targets, NOFREE);
inLine = TRUE;
- ParseDoDependency (line);
+ ParseDoDependency(line);
}
nextLine: