From a15b8ac6912cef59d7e1ba7a80e58466e2c9fcba Mon Sep 17 00:00:00 2001 From: Kaleb Keithley Date: Fri, 14 Nov 2003 16:48:20 +0000 Subject: XFree86 4.3.0.1 --- ifparser.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'ifparser.h') diff --git a/ifparser.h b/ifparser.h index 2b10266..89d2a2f 100644 --- a/ifparser.h +++ b/ifparser.h @@ -31,10 +31,12 @@ * * EXPRESSION := VALUE * | VALUE BINOP EXPRESSION + * | VALUE '?' EXPRESSION ':' EXPRESSION * * VALUE := '(' EXPRESSION ')' * | '!' VALUE * | '-' VALUE + * | '~' VALUE * | 'defined' '(' variable ')' * | variable * | number @@ -44,10 +46,10 @@ * | '<<' | '>>' * | '<' | '>' | '<=' | '>=' * | '==' | '!=' - * | '&' | '|' + * | '&' | '^' | '|' * | '&&' | '||' * - * The normal C order of precidence is supported. + * The normal C order of precedence is supported. * * * External Entry Points: @@ -55,28 +57,27 @@ * ParseIfExpression parse a string for #if */ +/* $XFree86: xc/config/makedepend/ifparser.h,v 3.5 2001/07/25 15:04:40 dawes Exp $ */ + #include -#define const /**/ typedef int Bool; #define False 0 #define True 1 typedef struct _if_parser { struct { /* functions */ - 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 */); + 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; -char *ParseIfExpression ( -#ifdef __STDC__ +const char *ParseIfExpression ( IfParser *, const char *, long * -#endif ); -- cgit v1.2.3