mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-14 15:40:19 +02:00
nil is null, whee
* libguile/pairs.h (scm_is_null): Nil is also null. * libguile/vm-i-scheme.c (not, not-not, null?, not-null?): * libguile/vm-i-system.c (br-if-null, br-if-not-null): Remove some more nil special cases.
This commit is contained in:
parent
d38b431ace
commit
2533f10b40
3 changed files with 8 additions and 8 deletions
|
@ -32,13 +32,13 @@
|
|||
VM_DEFINE_FUNCTION (128, not, "not", 1)
|
||||
{
|
||||
ARGS1 (x);
|
||||
RETURN (scm_from_bool (scm_is_false_or_nil (x)));
|
||||
RETURN (scm_from_bool (scm_is_false (x)));
|
||||
}
|
||||
|
||||
VM_DEFINE_FUNCTION (129, not_not, "not-not", 1)
|
||||
{
|
||||
ARGS1 (x);
|
||||
RETURN (scm_from_bool (!scm_is_false_or_nil (x)));
|
||||
RETURN (scm_from_bool (!scm_is_false (x)));
|
||||
}
|
||||
|
||||
VM_DEFINE_FUNCTION (130, eq, "eq?", 2)
|
||||
|
@ -56,13 +56,13 @@ VM_DEFINE_FUNCTION (131, not_eq, "not-eq?", 2)
|
|||
VM_DEFINE_FUNCTION (132, nullp, "null?", 1)
|
||||
{
|
||||
ARGS1 (x);
|
||||
RETURN (scm_from_bool (scm_is_null_or_nil (x)));
|
||||
RETURN (scm_from_bool (scm_is_null (x)));
|
||||
}
|
||||
|
||||
VM_DEFINE_FUNCTION (133, not_nullp, "not-null?", 1)
|
||||
{
|
||||
ARGS1 (x);
|
||||
RETURN (scm_from_bool (!scm_is_null_or_nil (x)));
|
||||
RETURN (scm_from_bool (!scm_is_null (x)));
|
||||
}
|
||||
|
||||
VM_DEFINE_FUNCTION (134, eqv, "eqv?", 2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue