summaryrefslogtreecommitdiff
path: root/ifparser.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-06 16:42:35 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-12 11:49:19 -0800
commit2c49a8335a953206ce8603c5522153c59e1f7a0d (patch)
tree62350952d70d3aac174b152506ef05b6d7d12e8c /ifparser.h
parentf7ad4c3164cf673bc30a2a038beb7cdb45ee3e94 (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.h19
1 files changed, 7 insertions, 12 deletions
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 <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 *);