aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplib.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@rabi.columbia.edu>1999-02-25 14:24:40 +0000
committerZack Weinberg <zack@gcc.gnu.org>1999-02-25 14:24:40 +0000
commit122ae89b144a0eaf31107f871f26ead27df8daad (patch)
tree6a70d45559c3b1a18fd0998b7705e78d86303259 /gcc/cpplib.c
parent9ab70a9bd7c8ee4fcf2f074459525e981ed1ca2e (diff)
downloadgcc-122ae89b144a0eaf31107f871f26ead27df8daad.zip
gcc-122ae89b144a0eaf31107f871f26ead27df8daad.tar.gz
gcc-122ae89b144a0eaf31107f871f26ead27df8daad.tar.bz2
cpphash.c (install): Rename to cpp_install, add cpp_reader* first argument.
1999-02-25 17:14 -0500 Zack Weinberg <zack@rabi.columbia.edu> * cpphash.c (install): Rename to cpp_install, add cpp_reader* first argument. All callers changed. (hashtab): Removed. (cpp_lookup, cpp_install): Change all refs to hashtab to pfile->hashtab. (cpp_hash_cleanup): Removed. * cpphash.h: Adjust prototypes. * cpplib.h (struct cpp_reader): Add hashtab pointer. * cppinit.c (cpp_reader_init): Also allocate space for the hashtab. (cpp_cleanup): Delete all macros and free the hashtab. From-SVN: r25441
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r--gcc/cpplib.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c
index d7499dd..26536e9 100644
--- a/gcc/cpplib.c
+++ b/gcc/cpplib.c
@@ -657,8 +657,8 @@ do_define (pfile, keyword)
that for this new definition now. */
if (CPP_OPTIONS (pfile)->debug_output && keyword)
pass_thru_directive (macro, end, pfile, keyword);
- install (mdef.symnam, mdef.symlen, T_MACRO,
- (char *) mdef.defn, hashcode);
+ cpp_install (pfile, mdef.symnam, mdef.symlen, T_MACRO,
+ (char *) mdef.defn, hashcode);
}
return 0;
@@ -2845,7 +2845,7 @@ do_assert (pfile, keyword)
base = cpp_lookup (pfile, sym, baselen, -1);
if (! base)
- base = install (sym, baselen, T_ASSERT, 0, -1);
+ base = cpp_install (pfile, sym, baselen, T_ASSERT, 0, -1);
else if (base->type != T_ASSERT)
{
/* Token clash - but with what?! */
@@ -2854,8 +2854,8 @@ do_assert (pfile, keyword)
goto error;
}
- this = install (sym, thislen, T_ASSERT,
- (char *)base->value.aschain, -1);
+ this = cpp_install (pfile, sym, thislen, T_ASSERT,
+ (char *)base->value.aschain, -1);
base->value.aschain = this;
pfile->limit = sym; /* Pop */