diff options
author | Ludovic Courtès <ludo@gnu.org> | 2010-01-19 21:41:41 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2010-01-19 21:41:41 +0100 |
commit | baedef98eeee0357983ce9730b102be6b2158029 (patch) | |
tree | 7b213ba9b253dbced1a31fb735d4a27a8526525d /libguile/boolean.c | |
parent | d532c41b91a53a5559de42bf15a3980b8f041677 (diff) | |
download | guile-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.c')
-rw-r--r-- | libguile/boolean.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/libguile/boolean.c b/libguile/boolean.c index d7091bbef..1ca0d7853 100644 --- a/libguile/boolean.c +++ b/libguile/boolean.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1995, 1996, 2000, 2001, 2006, 2008, 2009 Free Software Foundation, Inc. +/* Copyright (C) 1995, 1996, 2000, 2001, 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 @@ -85,6 +85,18 @@ scm_to_bool (SCM x) scm_wrong_type_arg (NULL, 0, x); } +/* We keep this primitive as a function in addition to the same-named macro + because some applications (e.g., GNU LilyPond 2.13.9) expect it to be a + function. */ +#undef scm_is_bool +int +scm_is_bool (SCM obj) +{ + /* This must match the macro definition of `scm_is_bool ()'. */ + return scm_is_bool_and_not_nil (obj); +} + + void scm_init_boolean () { |