summaryrefslogtreecommitdiff
path: root/ifparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'ifparser.c')
-rw-r--r--ifparser.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/ifparser.c b/ifparser.c
index 788fa14..0efa550 100644
--- a/ifparser.c
+++ b/ifparser.c
@@ -1,7 +1,7 @@
/*
*
* Copyright 1992 Network Computing Devices, Inc.
- *
+ *
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted, provided
* that the above copyright notice appear in all copies and that both that
@@ -11,7 +11,7 @@
* without specific, written prior permission. Network Computing Devices makes
* no representations about the suitability of this software for any purpose.
* It is provided ``as is'' without express or implied warranty.
- *
+ *
* NETWORK COMPUTING DEVICES DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
* SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
* IN NO EVENT SHALL NETWORK COMPUTING DEVICES BE LIABLE FOR ANY SPECIAL,
@@ -19,19 +19,19 @@
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
- *
+ *
* Author: Jim Fulton
* Network Computing Devices, Inc.
- *
+ *
* Simple if statement processor
*
* This module can be used to evaluate string representations of C language
* if constructs. It accepts the following grammar:
- *
+ *
* EXPRESSION := VALUE
* | VALUE BINOP EXPRESSION
* | VALUE '?' EXPRESSION ':' EXPRESSION
- *
+ *
* VALUE := '(' EXPRESSION ')'
* | '!' VALUE
* | '-' VALUE
@@ -42,7 +42,7 @@
* | # variable '(' variable-list ')'
* | variable
* | number
- *
+ *
* BINOP := '*' | '/' | '%'
* | '+' | '-'
* | '<<' | '>>'
@@ -50,12 +50,12 @@
* | '==' | '!='
* | '&' | '^' | '|'
* | '&&' | '||'
- *
+ *
* The normal C order of precedence is supported.
- *
- *
+ *
+ *
* External Entry Points:
- *
+ *
* ParseIfExpression parse a string for #if
*/
@@ -182,7 +182,7 @@ parse_value (IfParser *g, const char *cp, long *valp)
case '(':
DO (cp = ParseIfExpression (g, cp + 1, valp));
SKIPSPACE (cp);
- if (*cp != ')')
+ if (*cp != ')')
return CALLFUNC(g, handle_error) (g, cp, ")");
return cp + 1; /* skip the right paren */
@@ -273,7 +273,7 @@ parse_value (IfParser *g, const char *cp, long *valp)
cp++;
}
}
-
+
return cp;
}