aboutsummaryrefslogtreecommitdiff
path: root/libcpp/lex.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2008-02-20 02:16:43 +0000
committerTom Tromey <tromey@gcc.gnu.org>2008-02-20 02:16:43 +0000
commit2bf41bf05df81d26e70bca9642c065cd90b49be7 (patch)
treea0f5aee41aeac0578015bd28b69be97666cfa9bc /libcpp/lex.c
parent18ca3965e9f2a024baca017763ddfa4342ef499d (diff)
downloadgcc-2bf41bf05df81d26e70bca9642c065cd90b49be7.zip
gcc-2bf41bf05df81d26e70bca9642c065cd90b49be7.tar.gz
gcc-2bf41bf05df81d26e70bca9642c065cd90b49be7.tar.bz2
traditional.c (lex_identifier): Use CPP_HASHNODE.
* traditional.c (lex_identifier): Use CPP_HASHNODE. * lex.c (lex_identifier): Use CPP_HASHNODE. * include/line-map.h (LINEMAP_POSITION_FOR_COLUMN): Wrap in do-while. * identifiers.c (alloc_node): Change return type. (_cpp_init_hashtable): Don't cast 'alloc_node'. (proxy_assertion_broken): New declaration. (cpp_forall_identifiers): Move comment. * line-map.c (linemap_add): Comment fix. (linemap_line_start): Indentation fix. From-SVN: r132467
Diffstat (limited to 'libcpp/lex.c')
-rw-r--r--libcpp/lex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcpp/lex.c b/libcpp/lex.c
index ef59f900..2eaf610 100644
--- a/libcpp/lex.c
+++ b/libcpp/lex.c
@@ -1,5 +1,5 @@
/* CPP Library - lexical analysis.
- Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2007 Free Software Foundation, Inc.
Contributed by Per Bothner, 1994-95.
Based on CCCP program by Paul Rubin, June 1986
Adapted to ANSI C, Richard Stallman, Jan 1987
@@ -538,8 +538,8 @@ lex_identifier (cpp_reader *pfile, const uchar *base, bool starts_ucn,
len = cur - base;
hash = HT_HASHFINISH (hash, len);
- result = (cpp_hashnode *)
- ht_lookup_with_hash (pfile->hash_table, base, len, hash, HT_ALLOC);
+ result = CPP_HASHNODE (ht_lookup_with_hash (pfile->hash_table,
+ base, len, hash, HT_ALLOC));
}
/* Rarely, identifiers require diagnostics when lexed. */