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): unexport Lst_InsertBefore and Lst_Inse...
details: https://anonhg.NetBSD.org/src/rev/203ebe615613
branches: trunk
changeset: 1013184:203ebe615613
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Aug 22 14:56:45 2020 +0000
description:
make(1): unexport Lst_InsertBefore and Lst_InsertAfter
diffstat:
usr.bin/make/lst.c | 16 ++++++++--------
usr.bin/make/lst.h | 4 +---
2 files changed, 9 insertions(+), 11 deletions(-)
diffs (79 lines):
diff -r 03ec4f9c9331 -r 203ebe615613 usr.bin/make/lst.c
--- a/usr.bin/make/lst.c Sat Aug 22 14:54:48 2020 +0000
+++ b/usr.bin/make/lst.c Sat Aug 22 14:56:45 2020 +0000
@@ -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 @@
/* 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 @@
/* 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 @@
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 @@
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. */
diff -r 03ec4f9c9331 -r 203ebe615613 usr.bin/make/lst.h
--- a/usr.bin/make/lst.h Sat Aug 22 14:54:48 2020 +0000
+++ b/usr.bin/make/lst.h Sat Aug 22 14:56:45 2020 +0000
@@ -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 @@
*/
/* 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 *);
Home |
Main Index |
Thread Index |
Old Index