diff options
author | Joshua Haberman <joshua@reverberate.org> | 2010-01-02 15:30:51 -0800 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2010-01-02 15:30:51 -0800 |
commit | fa5710f1cad50ddd17605c73d4661acbf265a469 (patch) | |
tree | 807e25b1afc282e829cd28f4a778118138c4a5d6 /src/upb_table.h | |
parent | ece08710a64e09baf4bdcb71752ce20ff1d4a757 (diff) |
upb_string* -> upb_strptr, to follow aliasing rules.
Diffstat (limited to 'src/upb_table.h')
-rw-r--r-- | src/upb_table.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/upb_table.h b/src/upb_table.h index b89906d..f7f548b 100644 --- a/src/upb_table.h +++ b/src/upb_table.h @@ -38,7 +38,7 @@ struct upb_inttable_entry { // performance by letting us compare hashes before comparing lengths or the // strings themselves. struct upb_strtable_entry { - upb_string *key; // We own a frozen ref. + upb_strptr key; // We own a frozen ref. uint32_t next; // Internal chaining. }; @@ -116,7 +116,7 @@ INLINE void *upb_inttable_lookup(struct upb_inttable *t, uint32_t key) { return upb_inttable_fast_lookup(t, key, t->t.entry_size); } -void *upb_strtable_lookup(struct upb_strtable *t, upb_string *key); +void *upb_strtable_lookup(struct upb_strtable *t, upb_strptr key); /* Provides iteration over the table. The order in which the entries are * returned is undefined. Insertions invalidate iterators. The _next |