diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-06 16:42:35 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-12 11:49:19 -0800 |
commit | 2c49a8335a953206ce8603c5522153c59e1f7a0d (patch) | |
tree | 62350952d70d3aac174b152506ef05b6d7d12e8c /ifparser.h | |
parent | f7ad4c3164cf673bc30a2a038beb7cdb45ee3e94 (diff) |
Reformat code into X.Org standard coding style
Make indentation and formatting much more consistent across this project
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'ifparser.h')
-rw-r--r-- | ifparser.h | 19 |
1 files changed, 7 insertions, 12 deletions
@@ -56,26 +56,21 @@ * ParseIfExpression parse a string for #if */ - #include <stdio.h> 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 *); |