diff options
Diffstat (limited to 'libguile/boolean.h')
-rw-r--r-- | libguile/boolean.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/libguile/boolean.h b/libguile/boolean.h index 7084fdf29..8f55f1ee5 100644 --- a/libguile/boolean.h +++ b/libguile/boolean.h @@ -56,8 +56,7 @@ (SCM_MATCHES_BITS_IN_COMMON ((x), SCM_ELISP_NIL, SCM_BOOL_F)) #define scm_is_true_and_not_nil(x) (!scm_is_false_or_nil (x)) -/* -#nil is false. */ +/* #nil is false. */ #define scm_is_false(x) (scm_is_false_or_nil (x)) #define scm_is_true(x) (!scm_is_false (x)) @@ -91,6 +90,17 @@ SCM_API int scm_to_bool (SCM x); +/* Older spellings for the above routines, kept around for + compatibility. */ +#define SCM_FALSEP(x) (scm_is_false (x)) +#define SCM_NFALSEP(x) (scm_is_true (x)) +#define SCM_BOOLP(x) (scm_is_bool (x)) +#define SCM_BOOL(x) (scm_from_bool (x)) +#define SCM_NEGATE_BOOL(f) (scm_from_bool (!(f))) +#define SCM_BOOL_NOT(x) (scm_not (x)) + + + /* * The following macros efficiently implement boolean truth testing as * expected by most lisps, which treat '() aka SCM_EOL as false. |