diff options
author | Zack Weinberg <zack@rabi.phys.columbia.edu> | 1998-10-11 00:05:11 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-10-10 18:05:11 -0600 |
commit | faa765969fa9ce85b27bd20d9a966b0cabba5cdb (patch) | |
tree | 2f9de21a1e1e04335878526769ff5fd361b7abd4 /gcc/cpphash.c | |
parent | 9265dacf25a26ef02473949bc8feec743e1e5b8c (diff) | |
download | gcc-faa765969fa9ce85b27bd20d9a966b0cabba5cdb.zip gcc-faa765969fa9ce85b27bd20d9a966b0cabba5cdb.tar.gz gcc-faa765969fa9ce85b27bd20d9a966b0cabba5cdb.tar.bz2 |
cppexp.c: When forcing unsigned comparisons, cast both sides of the operation.
* cppexp.c: When forcing unsigned comparisons, cast both sides
of the operation.
* cpphash.h: Move static declaration of hashtab[]...
* cpphash.c: ...here.
* cpplib.c: Cast difference of two pointers to size_t before
comparing it to size_t. Cast signed to unsigned
before comparing to size_t. (FIXME: struct argdata should use
unsigned buffer sizes.)
* cpplib.h (struct cpp_reader): Declare token_buffer_size as
unsigned int. (CPP_WRITTEN): Cast return value to size_t.
(CPP_RESERVE): Parenthesize N for evaluation order, cast to
size_t before comparison.
From-SVN: r22980
Diffstat (limited to 'gcc/cpphash.c')
-rw-r--r-- | gcc/cpphash.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cpphash.c b/gcc/cpphash.c index 6aa9e9c..d20f7bb 100644 --- a/gcc/cpphash.c +++ b/gcc/cpphash.c @@ -30,6 +30,8 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. extern char *xmalloc PARAMS ((unsigned)); +static HASHNODE *hashtab[HASHSIZE]; + /* Return hash function on name. must be compatible with the one computed a step at a time, elsewhere */ |