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 /usr.bin/make/suff.c | |
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>
Diffstat (limited to 'usr.bin/make/suff.c')
-rw-r--r-- | usr.bin/make/suff.c | 17 |
1 files changed, 17 insertions, 0 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 */ |