From e58c871c19dc7d6e6f097fce1104287a19af5732 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Thu, 23 Jul 2009 16:08:20 -0700 Subject: upb is fully self-hosting (except for text->descriptor)! --- src/upb_context.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/upb_context.c') diff --git a/src/upb_context.c b/src/upb_context.c index bf0e6df..657870f 100644 --- a/src/upb_context.c +++ b/src/upb_context.c @@ -27,7 +27,8 @@ bool upb_context_init(struct upb_context *c) upb_strtable_init(&c->symtab, 16, sizeof(struct upb_symtab_entry)); upb_strtable_init(&c->psymtab, 16, sizeof(struct upb_symtab_entry)); /* Add all the types in descriptor.proto so we can parse descriptors. */ - if(!addfd(&c->psymtab, &c->symtab, &google_protobuf_filedescriptor, false)) { + if(!addfd(&c->psymtab, &c->symtab, upb_file_descriptor_set->file->elements[0], false)) { + //if(!addfd(&c->psymtab, &c->symtab, &google_protobuf_filedescriptor, false)) { assert(false); return false; /* Indicates that upb is buggy or corrupt. */ } -- cgit v1.2.3