diff options
author | ru <ru@FreeBSD.org> | 2011-05-03 11:47:19 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2011-05-03 11:47:19 +0000 |
commit | 169254209b0bd6089f3bef289d398b21882bac83 (patch) | |
tree | eb10e239bd7475967e0d02980aa01bd433651c71 /contrib/one-true-awk/b.c | |
parent | 582de70a4368320790784013e7b8897b0ae17b41 (diff) | |
download | FreeBSD-src-169254209b0bd6089f3bef289d398b21882bac83.zip FreeBSD-src-169254209b0bd6089f3bef289d398b21882bac83.tar.gz |
Update to a 1-May-2011 release (except for the isblank change).
Diffstat (limited to 'contrib/one-true-awk/b.c')
-rw-r--r-- | contrib/one-true-awk/b.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/one-true-awk/b.c b/contrib/one-true-awk/b.c index baefe6f..c05e0f3 100644 --- a/contrib/one-true-awk/b.c +++ b/contrib/one-true-awk/b.c @@ -752,7 +752,7 @@ Node *unary(Node *np) /* #define HAS_ISBLANK */ #ifndef HAS_ISBLANK -int (isblank)(int c) +int (xisblank)(int c) { return c==' ' || c=='\t'; } @@ -766,7 +766,11 @@ struct charclass { } charclasses[] = { { "alnum", 5, isalnum }, { "alpha", 5, isalpha }, +#ifndef HAS_ISBLANK + { "blank", 5, isspace }, /* was isblank */ +#else { "blank", 5, isblank }, +#endif { "cntrl", 5, iscntrl }, { "digit", 5, isdigit }, { "graph", 5, isgraph }, |