diff options
author | Joshua Haberman <joshua@reverberate.org> | 2010-01-15 19:11:54 -0800 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2010-01-15 19:11:54 -0800 |
commit | d5566c6038845e505f7c16130b2368ef9bb3a373 (patch) | |
tree | bf808b4ef5d0391a9d6ed3be9247d3e0f7ce5cef /src/upb_text.h | |
parent | 9116c697f845e7ca215628029800c36f7dfbfaee (diff) |
Remove struct keyword from all types, use typedef instead.
Diffstat (limited to 'src/upb_text.h')
-rw-r--r-- | src/upb_text.h | 12 |
1 files changed, 6 insertions, 6 deletions
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" */ |