From 979ccd45baa9a38169661ba379a341cae8619c3b Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 7 Mar 2007 12:11:48 +0000 Subject: (svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {}; --- src/yapf/yapf_settings.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/yapf/yapf_settings.h') diff --git a/src/yapf/yapf_settings.h b/src/yapf/yapf_settings.h index aea509441..0d840721d 100644 --- a/src/yapf/yapf_settings.h +++ b/src/yapf/yapf_settings.h @@ -11,17 +11,17 @@ # ifndef YS_DEF /* * if YS_DEF is not defined, we will only do following declaration: - * typedef struct YapfSettings { + * struct YapfSettings { * bool disable_node_optimization; * uint32 max_search_nodes; * .... all other yapf related settings ... - * } YapfSettings; + * }; * * otherwise we will just expand YS_DEF_xx macros and then #undef them */ -# define YS_DEF_BEGIN typedef struct YapfSettings { +# define YS_DEF_BEGIN struct YapfSettings { # define YS_DEF(type, name) type name; -# define YS_DEF_END } YapfSettings; +# define YS_DEF_END }; # endif /* !YS_DEF */ -- cgit v1.2.3-70-g09d2