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 TargFreeGN to GNode_Free



details:   https://anonhg.NetBSD.org/src/rev/55c2874b5c44
branches:  trunk
changeset: 946111:55c2874b5c44
user:      rillig <rillig%NetBSD.org@localhost>
date:      Mon Nov 16 21:41:02 2020 +0000

description:
make(1): rename TargFreeGN to GNode_Free

This is the usual counterpart to a New function, like for Lst, HashTable,
Buffer.

diffstat:

 usr.bin/make/targ.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 91ced556ad79 -r 55c2874b5c44 usr.bin/make/targ.c
--- a/usr.bin/make/targ.c       Mon Nov 16 21:39:22 2020 +0000
+++ b/usr.bin/make/targ.c       Mon Nov 16 21:41:02 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: targ.c,v 1.128 2020/11/16 21:39:22 rillig Exp $        */
+/*     $NetBSD: targ.c,v 1.129 2020/11/16 21:41:02 rillig Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -121,7 +121,7 @@
 #include "dir.h"
 
 /*     "@(#)targ.c     8.2 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: targ.c,v 1.128 2020/11/16 21:39:22 rillig Exp $");
+MAKE_RCSID("$NetBSD: targ.c,v 1.129 2020/11/16 21:41:02 rillig Exp $");
 
 static GNodeList *allTargets;  /* the list of all targets found so far */
 #ifdef CLEANUP
@@ -130,7 +130,7 @@
 static HashTable targets;      /* a hash table of same */
 
 #ifdef CLEANUP
-static void TargFreeGN(void *);
+static void GNode_Free(void *);
 #endif
 
 void
@@ -147,7 +147,7 @@
 #ifdef CLEANUP
     Lst_Free(allTargets);
     if (allGNs != NULL)
-       Lst_Destroy(allGNs, TargFreeGN);
+       Lst_Destroy(allGNs, GNode_Free);
     HashTable_Done(&targets);
 #endif
 }
@@ -213,7 +213,7 @@
 
 #ifdef CLEANUP
 static void
-TargFreeGN(void *gnp)
+GNode_Free(void *gnp)
 {
     GNode *gn = gnp;
 



Home | Main Index | Thread Index | Old Index