-/* Copyright (C) 1995,1996 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 2000 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
\f
-#include <stdio.h>
-#include "_scm.h"
+#include "libguile/_scm.h"
-#include "scm_validate.h"
-#include "boolean.h"
+#include "libguile/validate.h"
+#include "libguile/boolean.h"
\f
-GUILE_PROC(scm_not, "not", 1, 0, 0,
- (SCM x),
-"")
+SCM_DEFINE (scm_not, "not", 1, 0, 0,
+ (SCM x),
+ "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));
#undef FUNC_NAME
-GUILE_PROC(scm_boolean_p, "boolean?", 1, 0, 0,
+SCM_DEFINE (scm_boolean_p, "boolean?", 1, 0, 0,
(SCM obj),
-"")
+ "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));
}
#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:
+*/