diff options
Diffstat (limited to 'cppawk-include/cons-priv.h')
-rw-r--r-- | cppawk-include/cons-priv.h | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/cppawk-include/cons-priv.h b/cppawk-include/cons-priv.h index 7669650..3bc0e19 100644 --- a/cppawk-include/cons-priv.h +++ b/cppawk-include/cons-priv.h @@ -70,13 +70,13 @@ #define __or_first(expr) (expr) #define __or_next(prev, \ - next) (__false(__g(or) = prev) ? (next) : __g(or)) + next) ((__g(or) = prev) ? __g(or) : (next)) #define __or(...) __varexpand(__or_first, __or_next, \ __VA_ARGS__) #define __and_first(expr) (expr) #define __and_next(prev, \ - next) (__false(prev) ? __nil : next) + next) ((__g(and) = prev) ? next : __g(and)) #define __and(...) __varexpand(__and_first, __and_next, \ __VA_ARGS__) @@ -147,27 +147,6 @@ function __endp(__obj) __error("endp: a proper list ends with nil, not %s", __obj) } -#if __config_strict_false -function __false(__obj) -{ - return __obj == __nil -} -#define __false(obj) __null(obj) -#else -function __false(__obj) -{ - return !obj -} -#define __false(obj) (!(obj)) -#endif - -function __true(__obj) -{ - return !__false(__obj) -} -#define __true(obj) (!__false(obj)) - - function __bs_esc(raw) { gsub(/[\\\042]/, "\\\\&", raw) |