diff options
Diffstat (limited to 'libcpp/include/symtab.h')
-rw-r--r-- | libcpp/include/symtab.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libcpp/include/symtab.h b/libcpp/include/symtab.h index 0c713f2..4a2370e 100644 --- a/libcpp/include/symtab.h +++ b/libcpp/include/symtab.h @@ -81,6 +81,12 @@ extern hashnode ht_lookup (cpp_hash_table *, const unsigned char *, extern hashnode ht_lookup_with_hash (cpp_hash_table *, const unsigned char *, size_t, unsigned int, enum ht_lookup_option); +inline hashnode ht_lookup (cpp_hash_table *ht, const ht_identifier &id, + ht_lookup_option opt) +{ + return ht_lookup_with_hash (ht, id.str, id.len, id.hash_value, opt); +} + #define HT_HASHSTEP(r, c) ((r) * 67 + ((c) - 113)); #define HT_HASHFINISH(r, len) ((r) + (len)) |