summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2010-07-21 22:36:31 -0700
committerJoshua Haberman <joshua@reverberate.org>2010-07-21 22:36:31 -0700
commit672f4617e2ab7923806c6d6a44d16e128e16b3a4 (patch)
treea03c6bfa30a7ef6495874d4fbd8e450e88e5fbd9 /core
parentd3d939ab7fc14f73d1bb20a6e84a4428e6cde24a (diff)
Lua support for fielddefs and getting their properties.
Diffstat (limited to 'core')
-rw-r--r--core/upb_def.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/upb_def.h b/core/upb_def.h
index 5c19a7a..3294a8d 100644
--- a/core/upb_def.h
+++ b/core/upb_def.h
@@ -158,13 +158,13 @@ typedef struct {
// Looks up a field by name or number. While these are written to be as fast
// as possible, it will still be faster to cache the results of this lookup if
// possible. These return NULL if no such field is found.
-INLINE upb_fielddef *upb_msg_itof(upb_msgdef *m, uint32_t num) {
+INLINE upb_fielddef *upb_msgdef_itof(upb_msgdef *m, uint32_t num) {
upb_itof_ent *e =
(upb_itof_ent*)upb_inttable_fastlookup(&m->itof, num, sizeof(*e));
return e ? e->f : NULL;
}
-INLINE upb_fielddef *upb_msg_ntof(upb_msgdef *m, upb_string *name) {
+INLINE upb_fielddef *upb_msgdef_ntof(upb_msgdef *m, upb_string *name) {
upb_ntof_ent *e = (upb_ntof_ent*)upb_strtable_lookup(&m->ntof, name);
return e ? e->f : NULL;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback