Module Name: src
Committed By: rillig
Date: Sat Aug 22 14:56:45 UTC 2020
Modified Files:
src/usr.bin/make: lst.c lst.h
Log Message:
make(1): unexport Lst_InsertBefore and Lst_InsertAfter
To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/usr.bin/make/lst.c
cvs rdiff -u -r1.32 -r1.33 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.26 src/usr.bin/make/lst.c:1.27
--- src/usr.bin/make/lst.c:1.26 Sat Aug 22 14:54:48 2020
+++ src/usr.bin/make/lst.c Sat Aug 22 14:56:45 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: lst.c,v 1.26 2020/08/22 14:54:48 rillig Exp $ */
+/* $NetBSD: lst.c,v 1.27 2020/08/22 14:56:45 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -37,11 +37,11 @@
#include "make.h"
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: lst.c,v 1.26 2020/08/22 14:54:48 rillig Exp $";
+static char rcsid[] = "$NetBSD: lst.c,v 1.27 2020/08/22 14:56:45 rillig Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: lst.c,v 1.26 2020/08/22 14:54:48 rillig Exp $");
+__RCSID("$NetBSD: lst.c,v 1.27 2020/08/22 14:56:45 rillig Exp $");
#endif /* not lint */
#endif
@@ -193,7 +193,7 @@ Lst_Destroy(Lst list, FreeProc *freeProc
/* Insert a new node with the given piece of data before the given node in the
* given list. */
static ReturnStatus
-Lst_InsertBefore(Lst list, LstNode node, void *datum)
+LstInsertBefore(Lst list, LstNode node, void *datum)
{
LstNode newNode;
@@ -258,8 +258,8 @@ Lst_InsertBeforeS(Lst list, LstNode node
/* Insert a new node with the given piece of data after the given node in the
* given list. */
-ReturnStatus
-Lst_InsertAfter(Lst list, LstNode node, void *datum)
+static ReturnStatus
+LstInsertAfter(Lst list, LstNode node, void *datum)
{
LstNode newNode;
@@ -299,7 +299,7 @@ ReturnStatus
Lst_AtFront(Lst list, void *datum)
{
LstNode front = Lst_First(list);
- return Lst_InsertBefore(list, front, datum);
+ return LstInsertBefore(list, front, datum);
}
/* Add a piece of data at the end of the given list. */
@@ -307,7 +307,7 @@ ReturnStatus
Lst_AtEnd(Lst list, void *datum)
{
LstNode end = Lst_Last(list);
- return Lst_InsertAfter(list, end, datum);
+ return LstInsertAfter(list, end, datum);
}
/* Add a piece of data at the start of the given list. */
Index: src/usr.bin/make/lst.h
diff -u src/usr.bin/make/lst.h:1.32 src/usr.bin/make/lst.h:1.33
--- src/usr.bin/make/lst.h:1.32 Sat Aug 22 14:54:48 2020
+++ src/usr.bin/make/lst.h Sat Aug 22 14:56:45 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: lst.h,v 1.32 2020/08/22 14:54:48 rillig Exp $ */
+/* $NetBSD: lst.h,v 1.33 2020/08/22 14:56:45 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -115,8 +115,6 @@ Boolean Lst_IsEmpty(Lst);
*/
/* Insert an element before another */
void Lst_InsertBeforeS(Lst, LstNode, void *);
-/* Insert an element after another */
-ReturnStatus Lst_InsertAfter(Lst, LstNode, void *);
/* Place an element at the front of a lst. */
ReturnStatus Lst_AtFront(Lst, void *);
void Lst_PrependS(Lst, void *);