diff options
author | Geoff Keating <geoffk@cygnus.com> | 2000-10-29 07:07:20 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2000-10-29 07:07:20 +0000 |
commit | 926c56780f0725ea270127d42ac9f5daffeb2a96 (patch) | |
tree | 41e02b5b0c1c221b225bef780afa91428da07398 /gcc/cpphash.c | |
parent | 69f4cc4b9e763cc09896613a3fdd1659384d9869 (diff) | |
download | gcc-926c56780f0725ea270127d42ac9f5daffeb2a96.zip gcc-926c56780f0725ea270127d42ac9f5daffeb2a96.tar.gz gcc-926c56780f0725ea270127d42ac9f5daffeb2a96.tar.bz2 |
cpphash.c (cpp_forall_identifiers): Add context variable for callback routine.
* cpphash.c (cpp_forall_identifiers): Add context variable
for callback routine.
* cppmain.c (dump_macro): Update to match cpp_forall_identifiers
change.
(main): Call cpp_forall_identifiers with null context.
* cpplib.h (cpp_forall_identifiers): Update prototype.
* cppmain.c: Make `parse_in' and `print' static.
From-SVN: r37119
Diffstat (limited to 'gcc/cpphash.c')
-rw-r--r-- | gcc/cpphash.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/cpphash.c b/gcc/cpphash.c index 1c7366d..50172d1 100644 --- a/gcc/cpphash.c +++ b/gcc/cpphash.c @@ -264,9 +264,10 @@ higher_prime_number (n) } void -cpp_forall_identifiers (pfile, cb) +cpp_forall_identifiers (pfile, cb, v) cpp_reader *pfile; - int (*cb) PARAMS ((cpp_reader *, cpp_hashnode *)); + int (*cb) PARAMS ((cpp_reader *, cpp_hashnode *, void *)); + void *v; { cpp_hashnode **p, **limit; @@ -275,7 +276,7 @@ cpp_forall_identifiers (pfile, cb) do { if (*p) - if ((*cb) (pfile, *p) == 0) + if ((*cb) (pfile, *p, v) == 0) break; } while (++p < limit); |