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): rename parse functions



details:   https://anonhg.NetBSD.org/src/rev/6010050aba8b
branches:  trunk
changeset: 957579:6010050aba8b
user:      rillig <rillig%NetBSD.org@localhost>
date:      Fri Dec 04 20:23:33 2020 +0000

description:
make(1): rename parse functions

The word "Do" was not necessary.

diffstat:

 usr.bin/make/parse.c |  27 ++++++++++++++-------------
 1 files changed, 14 insertions(+), 13 deletions(-)

diffs (96 lines):

diff -r 9a666ead165c -r 6010050aba8b usr.bin/make/parse.c
--- a/usr.bin/make/parse.c      Fri Dec 04 20:11:48 2020 +0000
+++ b/usr.bin/make/parse.c      Fri Dec 04 20:23:33 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parse.c,v 1.463 2020/11/29 01:40:26 rillig Exp $       */
+/*     $NetBSD: parse.c,v 1.464 2020/12/04 20:23:33 rillig Exp $       */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -117,7 +117,7 @@
 #include "pathnames.h"
 
 /*     "@(#)parse.c    8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: parse.c,v 1.463 2020/11/29 01:40:26 rillig Exp $");
+MAKE_RCSID("$NetBSD: parse.c,v 1.464 2020/12/04 20:23:33 rillig Exp $");
 
 /* types and constants */
 
@@ -856,7 +856,7 @@
 }
 
 static Boolean
-ParseDoSrcKeyword(const char *src, ParseSpecial specType)
+ParseDependencySourceKeyword(const char *src, ParseSpecial specType)
 {
     static int wait_number = 0;
     char wait_src[16];
@@ -895,7 +895,7 @@
 }
 
 static void
-ParseDoSrcMain(const char *src)
+ParseDependencySourceMain(const char *src)
 {
     /*
      * In a line like ".MAIN: source1 source2", it means we need to add
@@ -916,7 +916,7 @@
 }
 
 static void
-ParseDoSrcOrder(const char *src)
+ParseDependencySourceOrder(const char *src)
 {
     GNode *gn;
     /*
@@ -943,7 +943,8 @@
 }
 
 static void
-ParseDoSrcOther(const char *src, GNodeType tOp, ParseSpecial specType)
+ParseDependencySourceOther(const char *src, GNodeType tOp,
+                          ParseSpecial specType)
 {
     GNode *gn;
 
@@ -980,17 +981,17 @@
  *     src             name of the source to handle
  */
 static void
-ParseDoSrc(GNodeType tOp, const char *src, ParseSpecial specType)
+ParseDependencySource(GNodeType tOp, const char *src, ParseSpecial specType)
 {
-    if (ParseDoSrcKeyword(src, specType))
+    if (ParseDependencySourceKeyword(src, specType))
        return;
 
     if (specType == SP_MAIN)
-       ParseDoSrcMain(src);
+       ParseDependencySourceMain(src);
     else if (specType == SP_ORDER)
-       ParseDoSrcOrder(src);
+       ParseDependencySourceOrder(src);
     else
-       ParseDoSrcOther(src, tOp, specType);
+       ParseDependencySourceOther(src, tOp, specType);
 }
 
 /* If we have yet to decide on a main target to make, in the absence of any
@@ -1562,7 +1563,7 @@
 
            while (!Lst_IsEmpty(&sources)) {
                GNode *gn = Lst_Dequeue(&sources);
-               ParseDoSrc(tOp, gn->name, specType);
+               ParseDependencySource(tOp, gn->name, specType);
            }
            Lst_Done(&sources);
            end = start;
@@ -1572,7 +1573,7 @@
                end++;
            }
 
-           ParseDoSrc(tOp, start, specType);
+           ParseDependencySource(tOp, start, specType);
        }
        pp_skip_whitespace(&end);
        start = end;



Home | Main Index | Thread Index | Old Index