HCoop
/
bpt
/
guile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a3ac81
)
Fix invalid use of `SCM' as a Boolean.
author
Ludovic Courtès
<ludo@gnu.org>
Fri, 8 Jun 2012 10:44:07 +0000
(12:44 +0200)
committer
Ludovic Courtès
<ludo@gnu.org>
Fri, 8 Jun 2012 10:44:07 +0000
(12:44 +0200)
* libguile/deprecated.c (scm_sym2var): Check `scm_is_true (definep)'.
libguile/deprecated.c
patch
|
blob
|
blame
|
history
diff --git
a/libguile/deprecated.c
b/libguile/deprecated.c
index
61fa8e2
..
af0752c
100644
(file)
--- a/
libguile/deprecated.c
+++ b/
libguile/deprecated.c
@@
-2653,13
+2653,13
@@
scm_i_deprecated_asrtgo (scm_t_bits condition)
* the scm_pre_modules_obarray (a `eq' hash table).
*/
-SCM
+SCM
scm_sym2var (SCM sym, SCM proc, SCM definep)
#define FUNC_NAME "scm_sym2var"
{
SCM var;
- if (
definep
)
+ if (
scm_is_true (definep)
)
scm_c_issue_deprecation_warning
("scm_sym2var is deprecated. Use scm_define or scm_module_define\n"
"to define variables. In some rare cases you may need\n"