diff options
author | harti <harti@FreeBSD.org> | 2005-02-04 13:23:39 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2005-02-04 13:23:39 +0000 |
commit | 930c7a333a685425bc262f513594858300309cb6 (patch) | |
tree | e6968b5e6e3659ea87379a5fed94518fbc7d0514 | |
parent | 92c06224cb023daaa051bf8e1d9623a8103ab127 (diff) | |
download | FreeBSD-src-930c7a333a685425bc262f513594858300309cb6.zip FreeBSD-src-930c7a333a685425bc262f513594858300309cb6.tar.gz |
Move PrintAddr() from util.c into suff.c - the only file where it is
actuall used, and make it static.
Submitted by: Max Okumoto <okumoto@ucsd.edu>
-rw-r--r-- | usr.bin/make/suff.c | 17 | ||||
-rw-r--r-- | usr.bin/make/util.c | 11 | ||||
-rw-r--r-- | usr.bin/make/util.h | 1 |
3 files changed, 17 insertions, 12 deletions
diff --git a/usr.bin/make/suff.c b/usr.bin/make/suff.c index dc661b1..7fb30e8 100644 --- a/usr.bin/make/suff.c +++ b/usr.bin/make/suff.c @@ -187,6 +187,10 @@ static void SuffFindNormalDeps(GNode *, Lst *); static int SuffPrintName(void *, void *); static int SuffPrintSuff(void *, void *); static int SuffPrintTrans(void *, void *); +#ifdef DEBUG_SRC +static int PrintAddr(void *, void *); +#endif /* DEBUG_SRC */ + /*************** Lst Predicates ****************/ /*- @@ -2337,3 +2341,16 @@ Suff_PrintAll(void) printf("#*** Transformations:\n"); Lst_ForEach(&transforms, SuffPrintTrans, (void *)NULL); } + +#ifdef DEBUG_SRC +/* + * Printaddr -- + * Print the address of a node. + */ +static int +PrintAddr(void *a, void *b __unused) +{ + printf("%p ", a); + return (0); +} +#endif /* DEBUG_SRC */ diff --git a/usr.bin/make/util.c b/usr.bin/make/util.c index a3620d6..ba11f4b 100644 --- a/usr.bin/make/util.c +++ b/usr.bin/make/util.c @@ -274,14 +274,3 @@ eunlink(const char *file) return (unlink(file)); } -/* - * Printaddr -- - * Print the address of a node, used as an interative function. - */ -int -PrintAddr(void *a, void *b __unused) -{ - - printf("%p ", a); - return (0); -} diff --git a/usr.bin/make/util.h b/usr.bin/make/util.h index 5670526..25812be 100644 --- a/usr.bin/make/util.h +++ b/usr.bin/make/util.h @@ -79,7 +79,6 @@ void Error(const char *, ...); void Fatal(const char *, ...); void Punt(const char *, ...); void DieHorribly(void); -int PrintAddr(void *, void *); void Finish(int); char *estrdup(const char *); void *emalloc(size_t); |