diff options
author | Joshua Haberman <joshua@reverberate.org> | 2010-07-21 22:36:31 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2010-07-21 22:36:31 -0700 |
commit | 672f4617e2ab7923806c6d6a44d16e128e16b3a4 (patch) | |
tree | a03c6bfa30a7ef6495874d4fbd8e450e88e5fbd9 /core | |
parent | d3d939ab7fc14f73d1bb20a6e84a4428e6cde24a (diff) |
Lua support for fielddefs and getting their properties.
Diffstat (limited to 'core')
-rw-r--r-- | core/upb_def.h | 4 |
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; } |