Module Name:    src
Committed By:   rillig
Date:           Mon Nov 16 21:41:02 UTC 2020

Modified Files:
        src/usr.bin/make: targ.c

Log Message:
make(1): rename TargFreeGN to GNode_Free

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


To generate a diff of this commit:
cvs rdiff -u -r1.128 -r1.129 src/usr.bin/make/targ.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/make/targ.c
diff -u src/usr.bin/make/targ.c:1.128 src/usr.bin/make/targ.c:1.129
--- src/usr.bin/make/targ.c:1.128	Mon Nov 16 21:39:22 2020
+++ src/usr.bin/make/targ.c	Mon Nov 16 21:41:02 2020
@@ -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 GNodeList *allGNs;	/* List of all
 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 @@ Targ_End(void)
 #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 @@ GNode_New(const char *name)
 
 #ifdef CLEANUP
 static void
-TargFreeGN(void *gnp)
+GNode_Free(void *gnp)
 {
     GNode *gn = gnp;
 

Reply via email to