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): remove unused declarations from header...



details:   https://anonhg.NetBSD.org/src/rev/d420936dbf3f
branches:  trunk
changeset: 975222:d420936dbf3f
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Aug 23 17:04:21 2020 +0000

description:
make(1): remove unused declarations from header files

diffstat:

 usr.bin/make/lst.h      |   3 +--
 usr.bin/make/make.h     |   3 +--
 usr.bin/make/metachar.h |  11 +----------
 3 files changed, 3 insertions(+), 14 deletions(-)

diffs (59 lines):

diff -r 348f1836fae7 -r d420936dbf3f usr.bin/make/lst.h
--- a/usr.bin/make/lst.h        Sun Aug 23 16:59:44 2020 +0000
+++ b/usr.bin/make/lst.h        Sun Aug 23 17:04:21 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lst.h,v 1.42 2020/08/23 16:59:44 rillig Exp $  */
+/*     $NetBSD: lst.h,v 1.43 2020/08/23 17:04:21 rillig Exp $  */
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -115,7 +115,6 @@
 /* Insert an element before another */
 void           Lst_InsertBeforeS(Lst, LstNode, void *);
 /* Place an element at the front of a lst. */
-ReturnStatus   Lst_AtFront(Lst, void *);
 void           Lst_PrependS(Lst, void *);
 /* Place an element at the end of a lst. */
 void           Lst_AppendS(Lst, void *);
diff -r 348f1836fae7 -r d420936dbf3f usr.bin/make/make.h
--- a/usr.bin/make/make.h       Sun Aug 23 16:59:44 2020 +0000
+++ b/usr.bin/make/make.h       Sun Aug 23 17:04:21 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: make.h,v 1.124 2020/08/23 08:26:03 rillig Exp $        */
+/*     $NetBSD: make.h,v 1.125 2020/08/23 17:04:21 rillig Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -420,7 +420,6 @@
 extern GNode    *VAR_GLOBAL;           /* Variables defined in a global context, e.g
                                 * in the Makefile itself */
 extern GNode    *VAR_CMD;      /* Variables defined on the command line */
-extern GNode   *VAR_FOR;       /* Iteration variables */
 extern char            var_Error[];    /* Value returned by Var_Parse when an error
                                 * is encountered. It actually points to
                                 * an empty string, so naive callers needn't
diff -r 348f1836fae7 -r d420936dbf3f usr.bin/make/metachar.h
--- a/usr.bin/make/metachar.h   Sun Aug 23 16:59:44 2020 +0000
+++ b/usr.bin/make/metachar.h   Sun Aug 23 17:04:21 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: metachar.h,v 1.5 2020/08/13 03:54:57 rillig Exp $      */
+/*     $NetBSD: metachar.h,v 1.6 2020/08/23 17:04:21 rillig Exp $      */
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -38,15 +38,6 @@
 #define ismeta(c)      _metachar[(c) & 0x7f]
 
 static inline int
-hasmeta(const char *cmd)
-{
-       while (!ismeta(*cmd))
-               cmd++;
-
-       return *cmd != '\0';
-}
-
-static inline int
 needshell(const char *cmd, int white)
 {
        while (!ismeta(*cmd) && *cmd != ':' && *cmd != '=') {



Home | Main Index | Thread Index | Old Index