-/* Copyright (C) 1995,1996 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 2000, 2001 Free Software Foundation, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* whether to permit this exception to apply to your modifications.
* If you do not wish that, delete this exception notice. */
-/* Software engineering face-lift by Greg J. Badros, 11-Dec-1999,
- gjb@cs.washington.edu, http://www.cs.washington.edu/homes/gjb */
\f
-#include <stdio.h>
-#include "_scm.h"
+#include "libguile/_scm.h"
-#include "validate.h"
-#include "boolean.h"
+#include "libguile/validate.h"
+#include "libguile/boolean.h"
+#include "libguile/lang.h"
\f
SCM_DEFINE (scm_not, "not", 1, 0, 0,
(SCM x),
- "Return #t iff X is #f, else return #f.\n")
+ "Return @code{#t} iff @var{x} is @code{#f}, else return @code{#f}.")
#define FUNC_NAME s_scm_not
{
- return SCM_BOOL(SCM_FALSEP(x));
+ return SCM_BOOL(SCM_FALSEP (x) || SCM_NILP (x));
}
#undef FUNC_NAME
SCM_DEFINE (scm_boolean_p, "boolean?", 1, 0, 0,
(SCM obj),
- "Return #t iff OBJ is either #t or #f.\n")
+ "Return @code{#t} iff @var{obj} is either @code{#t} or @code{#f}.")
#define FUNC_NAME s_scm_boolean_p
{
- return SCM_BOOL(SCM_BOOL_F == obj || SCM_BOOL_T == obj);
+ return SCM_BOOL (SCM_BOOLP (obj) || SCM_NILP (obj));
}
#undef FUNC_NAME
void
scm_init_boolean ()
{
-#include "boolean.x"
+#ifndef SCM_MAGIC_SNARFER
+#include "libguile/boolean.x"
+#endif
}
+
+/*
+ Local Variables:
+ c-file-style: "gnu"
+ End:
+*/