summaryrefslogtreecommitdiff
path: root/gcc/cpphash.c
diff options
context:
space:
mode:
authorgeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>2000-10-29 07:07:20 +0000
committergeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>2000-10-29 07:07:20 +0000
commit7034a61d80accf985103219d60ca3ff456850c17 (patch)
tree41e02b5b0c1c221b225bef780afa91428da07398 /gcc/cpphash.c
parent456af4457875f7fe13eadca555d675d756c98518 (diff)
downloadgcc-7034a61d80accf985103219d60ca3ff456850c17.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37119 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpphash.c')
-rw-r--r--gcc/cpphash.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/cpphash.c b/gcc/cpphash.c
index 1c7366d9746..50172d174ce 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);