summaryrefslogtreecommitdiff
path: root/src/upb_table.h
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-11-28 15:38:29 -0800
committerJoshua Haberman <joshua@reverberate.org>2009-11-28 15:38:29 -0800
commita95ab58e79c50b0927eae2b834d3de20a8effc36 (patch)
tree2cfb873d3a9d0976aca4ba6d9b1208335b725c3d /src/upb_table.h
parent246a36998bc0e6800959ff76c2a8c76ff8de3561 (diff)
Overhaul defs to derive from a common base.
Diffstat (limited to 'src/upb_table.h')
-rw-r--r--src/upb_table.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/upb_table.h b/src/upb_table.h
index 3855e3e..2202684 100644
--- a/src/upb_table.h
+++ b/src/upb_table.h
@@ -34,13 +34,13 @@ struct upb_inttable_entry {
uint32_t next; /* Internal chaining. */
};
-/* TODO: consider storing the hash in the entry. This would avoid the need to
- * rehash on table resizes, but more importantly could possibly improve lookup
- * performance by letting us compare hashes before comparing lengths or the
- * strings themselves. */
+// TODO: consider storing the hash in the entry. This would avoid the need to
+// rehash on table resizes, but more importantly could possibly improve lookup
+// performance by letting us compare hashes before comparing lengths or the
+// strings themselves.
struct upb_strtable_entry {
- struct upb_string key;
- uint32_t next; /* Internal chaining. */
+ struct upb_string *key; // We own one ref.
+ uint32_t next; // Internal chaining.
};
struct upb_table {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback