From d5566c6038845e505f7c16130b2368ef9bb3a373 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Fri, 15 Jan 2010 19:11:54 -0800 Subject: Remove struct keyword from all types, use typedef instead. --- src/upb_text.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/upb_text.h') diff --git a/src/upb_text.h b/src/upb_text.h index bc15c3f..86d69a2 100644 --- a/src/upb_text.h +++ b/src/upb_text.h @@ -13,22 +13,22 @@ extern "C" { #endif -struct upb_text_printer { +typedef struct { int indent_depth; bool single_line; -}; +} upb_text_printer; -INLINE void upb_text_printer_init(struct upb_text_printer *p, bool single_line) { +INLINE void upb_text_printer_init(upb_text_printer *p, bool single_line) { p->indent_depth = 0; p->single_line = single_line; } void upb_text_printval(upb_field_type_t type, union upb_value p, FILE *file); -void upb_text_printfield(struct upb_text_printer *p, upb_strptr name, +void upb_text_printfield(upb_text_printer *p, upb_strptr name, upb_field_type_t valtype, union upb_value val, FILE *stream); -void upb_text_push(struct upb_text_printer *p, upb_strptr submsg_type, +void upb_text_push(upb_text_printer *p, upb_strptr submsg_type, FILE *stream); -void upb_text_pop(struct upb_text_printer *p, FILE *stream); +void upb_text_pop(upb_text_printer *p, FILE *stream); #ifdef __cplusplus } /* extern "C" */ -- cgit v1.2.3