Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make make(1): remove redundant prototype for ParseMark



details:   https://anonhg.NetBSD.org/src/rev/c1f3450c22d7
branches:  trunk
changeset: 943525:c1f3450c22d7
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Sep 05 15:04:09 2020 +0000

description:
make(1): remove redundant prototype for ParseMark

diffstat:

 usr.bin/make/parse.c |  33 ++++++++++++---------------------
 1 files changed, 12 insertions(+), 21 deletions(-)

diffs (64 lines):

diff -r c4abcef06ac1 -r c1f3450c22d7 usr.bin/make/parse.c
--- a/usr.bin/make/parse.c      Sat Sep 05 14:58:07 2020 +0000
+++ b/usr.bin/make/parse.c      Sat Sep 05 15:04:09 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parse.c,v 1.277 2020/09/05 14:58:07 rillig Exp $       */
+/*     $NetBSD: parse.c,v 1.278 2020/09/05 15:04:09 rillig Exp $       */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: parse.c,v 1.277 2020/09/05 14:58:07 rillig Exp $";
+static char rcsid[] = "$NetBSD: parse.c,v 1.278 2020/09/05 15:04:09 rillig Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)parse.c    8.3 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: parse.c,v 1.277 2020/09/05 14:58:07 rillig Exp $");
+__RCSID("$NetBSD: parse.c,v 1.278 2020/09/05 15:04:09 rillig Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -580,6 +580,15 @@
     }
 }
 
+/* Add the filename and lineno to the GNode so that we remember where it
+ * was first defined. */
+static void
+ParseMark(GNode *gn)
+{
+    gn->fname = curFile->fname;
+    gn->lineno = curFile->lineno;
+}
+
 /*-
  *----------------------------------------------------------------------
  * ParseFindKeyword --
@@ -3311,21 +3320,3 @@
     Var_Append(".TARGETS", mainNode->name, VAR_GLOBAL);
     return mainList;
 }
-
-/*-
- *-----------------------------------------------------------------------
- * ParseMark --
- *     Add the filename and lineno to the GNode so that we remember
- *     where it was first defined.
- *
- * Side Effects:
- *     None.
- *
- *-----------------------------------------------------------------------
- */
-static void
-ParseMark(GNode *gn)
-{
-    gn->fname = curFile->fname;
-    gn->lineno = curFile->lineno;
-}



Home | Main Index | Thread Index | Old Index