diff options
author | Joshua Haberman <joshua@reverberate.org> | 2010-07-18 22:45:15 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2010-07-18 22:45:15 -0700 |
commit | 5871ed0d02ff69b20b65f577dd3be18a2e92dec7 (patch) | |
tree | 72f3d51fdf0a42e9cf3b5303b8fee7833fce2a1c /core/upb_def.c | |
parent | 4b6c8b6b2317436ab77b38e17b49a7c7b03bf3f4 (diff) |
First go at Lua bindings.
Diffstat (limited to 'core/upb_def.c')
-rw-r--r-- | core/upb_def.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/upb_def.c b/core/upb_def.c index fd00895..0d97982 100644 --- a/core/upb_def.c +++ b/core/upb_def.c @@ -190,7 +190,7 @@ void _upb_def_cyclic_ref(upb_def *def) { upb_cycle_ref_or_unref(upb_downcast_msgdef(def), NULL, open_defs, 0, true); } -static void upb_def_init(upb_def *def, upb_def_type type) { +static void upb_def_init(upb_def *def, upb_deftype type) { def->type = type; def->is_cyclic = 0; // We detect this later, after resolving refs. def->search_depth = 0; @@ -779,7 +779,7 @@ void _upb_symtab_free(upb_symtab *s) free(s); } -upb_def **upb_symtab_getdefs(upb_symtab *s, int *count, upb_def_type_t type) +upb_def **upb_symtab_getdefs(upb_symtab *s, int *count, upb_deftype_t type) { upb_rwlock_rdlock(&s->lock); int total = upb_strtable_count(&s->symtab); |