From 4a8b9be46c9485a35383b52d400ba086d3f40ace Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Wed, 31 Aug 2011 20:03:59 -0700 Subject: Header cleanup, clarify/correct comments for interfaces. --- upb/descriptor.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'upb/descriptor.h') diff --git a/upb/descriptor.h b/upb/descriptor.h index 2c279a5..21099b3 100644 --- a/upb/descriptor.h +++ b/upb/descriptor.h @@ -21,8 +21,6 @@ extern "C" { /* upb_descreader ************************************************************/ -// upb_descreader reads a descriptor and puts defs in a upb_symtabtxn. - // We keep a stack of all the messages scopes we are currently in, as well as // the top-level file scope. This is necessary to correctly qualify the // definitions that are contained inside. "name" tracks the name of the @@ -50,13 +48,11 @@ typedef struct { upb_fielddef *f; } upb_descreader; -// Creates a new descriptor builder that will add defs to the given txn. void upb_descreader_init(upb_descreader *r); void upb_descreader_uninit(upb_descreader *r); -// Registers handlers that will load descriptor data into a symtabtxn. -// Pass the descreader as the closure. The messages will have -// upb_msgdef_layout() called on them before adding to the txn. +// Registers handlers that will build the defs. Pass the descreader as the +// closure. upb_mhandlers *upb_descreader_reghandlers(upb_handlers *h); // Gets the array of defs that have been parsed and removes them from the -- cgit v1.2.3