From 2c49a8335a953206ce8603c5522153c59e1f7a0d Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 6 Dec 2022 16:42:35 -0800 Subject: Reformat code into X.Org standard coding style Make indentation and formatting much more consistent across this project Signed-off-by: Alan Coopersmith --- ifparser.h | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'ifparser.h') diff --git a/ifparser.h b/ifparser.h index ad809d1..5d88d05 100644 --- a/ifparser.h +++ b/ifparser.h @@ -56,26 +56,21 @@ * ParseIfExpression parse a string for #if */ - #include typedef int Bool; + #define False 0 #define True 1 typedef struct _if_parser { - struct { /* functions */ - const char *(*handle_error) (struct _if_parser *, const char *, - const char *); - long (*eval_variable) (struct _if_parser *, const char *, int); - int (*eval_defined) (struct _if_parser *, const char *, int); + struct { /* functions */ + const char *(*handle_error)(struct _if_parser *, const char *, + const char *); + long (*eval_variable)(struct _if_parser *, const char *, int); + int (*eval_defined)(struct _if_parser *, const char *, int); } funcs; char *data; } IfParser; -const char *ParseIfExpression ( - IfParser *, - const char *, - long * -); - +const char *ParseIfExpression(IfParser *, const char *, long *); -- cgit v1.2.3