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 SuffAddSrc to SrcList_Add



details:   https://anonhg.NetBSD.org/src/rev/f0c811699479
branches:  trunk
changeset: 946232:f0c811699479
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Nov 21 18:12:55 2020 +0000

description:
make(1): rename SuffAddSrc to SrcList_Add

The main character in this function is the list of sources, therefore
make it the subject.

diffstat:

 usr.bin/make/suff.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (41 lines):

diff -r 51aa394565f7 -r f0c811699479 usr.bin/make/suff.c
--- a/usr.bin/make/suff.c       Sat Nov 21 18:09:13 2020 +0000
+++ b/usr.bin/make/suff.c       Sat Nov 21 18:12:55 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: suff.c,v 1.264 2020/11/21 18:09:13 rillig Exp $        */
+/*     $NetBSD: suff.c,v 1.265 2020/11/21 18:12:55 rillig Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -114,7 +114,7 @@
 #include "dir.h"
 
 /*     "@(#)suff.c     8.4 (Berkeley) 3/21/94" */
-MAKE_RCSID("$NetBSD: suff.c,v 1.264 2020/11/21 18:09:13 rillig Exp $");
+MAKE_RCSID("$NetBSD: suff.c,v 1.265 2020/11/21 18:12:55 rillig Exp $");
 
 #define SUFF_DEBUG0(text) DEBUG0(SUFF, text)
 #define SUFF_DEBUG1(fmt, arg1) DEBUG1(SUFF, fmt, arg1)
@@ -881,8 +881,8 @@
 }
 
 static void
-SuffAddSrc(Suff *suff, SrcList *srcList, Src *targ, char *srcName,
-          const char *debug_tag MAKE_ATTR_UNUSED)
+SrcList_Add(SrcList *srcList, char *srcName, Src *targ, Suff *suff,
+           const char *debug_tag)
 {
     Src *s2 = SrcNew(srcName, targ->pref, suff, targ, NULL);
     targ->numChildren++;
@@ -913,9 +913,9 @@
         * structure for a file with no suffix attached. Two birds, and all
         * that...
         */
-       SuffAddSrc(suff, srcList, targ, bmake_strdup(targ->pref), "1");
+       SrcList_Add(srcList, bmake_strdup(targ->pref), targ, suff, "1");
     }
-    SuffAddSrc(suff, srcList, targ, str_concat2(targ->pref, suff->name), "2");
+    SrcList_Add(srcList, str_concat2(targ->pref, suff->name), targ, suff, "2");
 }
 
 /* Add all the children of targ to the list. */



Home | Main Index | Thread Index | Old Index