summaryrefslogtreecommitdiff
path: root/libguile/boolean.h
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2010-01-19 21:41:41 +0100
committerLudovic Courtès <ludo@gnu.org>2010-01-19 21:41:41 +0100
commitbaedef98eeee0357983ce9730b102be6b2158029 (patch)
tree7b213ba9b253dbced1a31fb735d4a27a8526525d /libguile/boolean.h
parentd532c41b91a53a5559de42bf15a3980b8f041677 (diff)
downloadguile-baedef98eeee0357983ce9730b102be6b2158029.tar.gz
Reinstate `scm_is_bool ()' as a function.
* libguile/boolean.c (scm_is_bool): New function. * libguile/boolean.h (scm_is_bool): New function declaration.
Diffstat (limited to 'libguile/boolean.h')
-rw-r--r--libguile/boolean.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libguile/boolean.h b/libguile/boolean.h
index 4c97a4933..ba5313ca4 100644
--- a/libguile/boolean.h
+++ b/libguile/boolean.h
@@ -3,7 +3,7 @@
#ifndef SCM_BOOLEAN_H
#define SCM_BOOLEAN_H
-/* Copyright (C) 1995,1996,2000, 2006, 2008, 2009 Free Software Foundation, Inc.
+/* Copyright (C) 1995,1996,2000, 2006, 2008, 2009, 2010 Free Software Foundation, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
@@ -88,6 +88,8 @@
#define scm_is_bool_and_not_nil(x) \
(SCM_MATCHES_BITS_IN_COMMON ((x), SCM_BOOL_F, SCM_BOOL_T))
+SCM_API int scm_is_bool (SCM);
+
/* XXX Should scm_is_bool treat %nil as a boolean? */
#define scm_is_bool(x) (scm_is_bool_and_not_nil (x))