summaryrefslogtreecommitdiff
path: root/libcpp/traditional.c
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2008-02-20 02:16:43 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2008-02-20 02:16:43 +0000
commite297899b22f48347baae758a753bd6d08efef1ec (patch)
treea0f5aee41aeac0578015bd28b69be97666cfa9bc /libcpp/traditional.c
parentf4fa7342c45c96338af57338ec51fa2da84cf4a8 (diff)
downloadgcc-e297899b22f48347baae758a753bd6d08efef1ec.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132467 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp/traditional.c')
-rw-r--r--libcpp/traditional.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcpp/traditional.c b/libcpp/traditional.c
index 6c4dda1a9f3..1a384253a90 100644
--- a/libcpp/traditional.c
+++ b/libcpp/traditional.c
@@ -253,8 +253,8 @@ lex_identifier (cpp_reader *pfile, const uchar *cur)
CUR (pfile->context) = cur;
len = out - pfile->out.cur;
- result = (cpp_hashnode *) ht_lookup (pfile->hash_table, pfile->out.cur,
- len, HT_ALLOC);
+ result = CPP_HASHNODE (ht_lookup (pfile->hash_table, pfile->out.cur,
+ len, HT_ALLOC));
pfile->out.cur = out;
return result;
}