summaryrefslogtreecommitdiff
path: root/src/upb_table.h
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2010-06-09 15:55:02 -0700
committerJoshua Haberman <joshua@reverberate.org>2010-06-09 15:55:02 -0700
commit992a03be55faf83d794b9ec5e8c4ca7e78c08a9b (patch)
tree4c3b895b4e8e9808c3ec0e5215b227ef789e8466 /src/upb_table.h
parented991c3b300d65dbe6fdb6a1d110cec029b0f5be (diff)
More decoder work, first attempts at compiling it.
Diffstat (limited to 'src/upb_table.h')
-rw-r--r--src/upb_table.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/upb_table.h b/src/upb_table.h
index 122aed3..20dae92 100644
--- a/src/upb_table.h
+++ b/src/upb_table.h
@@ -17,6 +17,7 @@
#include <assert.h>
#include "upb.h"
+#include "upb_string.h"
#ifdef __cplusplus
extern "C" {
@@ -38,7 +39,7 @@ typedef struct {
// performance by letting us compare hashes before comparing lengths or the
// strings themselves.
typedef struct {
- upb_strptr key; // We own a frozen ref.
+ upb_string *key; // We own a ref.
uint32_t next; // Internal chaining.
} upb_strtable_entry;
@@ -114,7 +115,7 @@ INLINE void *upb_inttable_lookup(upb_inttable *t, uint32_t key) {
return upb_inttable_fastlookup(t, key, t->t.entry_size);
}
-void *upb_strtable_lookup(upb_strtable *t, upb_strptr key);
+void *upb_strtable_lookup(upb_strtable *t, upb_string *key);
/* Provides iteration over the table. The order in which the entries are
* returned is undefined. Insertions invalidate iterators. The _next
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback