Module Name:    src
Committed By:   rillig
Date:           Fri Dec  4 20:08:07 UTC 2020

Modified Files:
        src/usr.bin/make: lst.c lst.h

Log Message:
make(1): inline Vector_Done


To generate a diff of this commit:
cvs rdiff -u -r1.98 -r1.99 src/usr.bin/make/lst.c
cvs rdiff -u -r1.90 -r1.91 src/usr.bin/make/lst.h

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/lst.c
diff -u src/usr.bin/make/lst.c:1.98 src/usr.bin/make/lst.c:1.99
--- src/usr.bin/make/lst.c:1.98	Fri Dec  4 14:39:56 2020
+++ src/usr.bin/make/lst.c	Fri Dec  4 20:08:07 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: lst.c,v 1.98 2020/12/04 14:39:56 rillig Exp $ */
+/* $NetBSD: lst.c,v 1.99 2020/12/04 20:08:07 rillig Exp $ */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -34,7 +34,7 @@
 
 #include "make.h"
 
-MAKE_RCSID("$NetBSD: lst.c,v 1.98 2020/12/04 14:39:56 rillig Exp $");
+MAKE_RCSID("$NetBSD: lst.c,v 1.99 2020/12/04 20:08:07 rillig Exp $");
 
 static ListNode *
 LstNodeNew(ListNode *prev, ListNode *next, void *datum)
@@ -294,9 +294,3 @@ Vector_Pop(Vector *v)
 	v->len--;
 	return Vector_Get(v, v->len);
 }
-
-void
-Vector_Done(Vector *v)
-{
-	free(v->items);
-}

Index: src/usr.bin/make/lst.h
diff -u src/usr.bin/make/lst.h:1.90 src/usr.bin/make/lst.h:1.91
--- src/usr.bin/make/lst.h:1.90	Sat Nov 28 23:13:28 2020
+++ src/usr.bin/make/lst.h	Fri Dec  4 20:08:07 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: lst.h,v 1.90 2020/11/28 23:13:28 rillig Exp $	*/
+/*	$NetBSD: lst.h,v 1.91 2020/12/04 20:08:07 rillig Exp $	*/
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -187,6 +187,10 @@ Vector_Get(Vector *v, size_t i)
 
 void *Vector_Push(Vector *);
 void *Vector_Pop(Vector *);
-void Vector_Done(Vector *);
+
+MAKE_INLINE void
+Vector_Done(Vector *v) {
+	free(v->items);
+}
 
 #endif /* MAKE_LST_H */

Reply via email to