diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-10-07 17:34:17 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-10-07 17:34:17 -0700 |
commit | 3602fb0b7ba2bde9c73610693dbb50534fe42b81 (patch) | |
tree | 3a738fc259d6d55cc6b4acbb5ec07c5fe97b9202 /ifparser.c | |
parent | c1f32dc1d4c1758065468e1f5d34707099f59f33 (diff) |
Strip trailing whitespace
Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}'
git diff -w & git diff -b show no diffs from this change
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'ifparser.c')
-rw-r--r-- | ifparser.c | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -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; } |