mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-23 20:05:32 +02:00
add SCM_HEAP_OBJECT_P
* libguile/tags.h (SCM_HEAP_OBJECT_P): New macro, an alias for SCM_NIMP. * libguile/arrays.c: * libguile/debug.c: * libguile/foreign.c: * libguile/gdbint.c: * libguile/guardians.c: * libguile/list.c: * libguile/modules.c: * libguile/options.c: * libguile/smob.c: * libguile/validate.h: * libguile/weak-set.c: * libguile/weak-table.c: * libguile/weak-vector.c: Use it instead of SCM_NIMP or !SCM_IMP.
This commit is contained in:
parent
fdecb44f32
commit
8c5bb72920
14 changed files with 26 additions and 32 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 1995,1996,1998,2000,2001, 2006, 2008, 2009, 2010 Free Software Foundation
|
||||
/* Copyright (C) 1995,1996,1998,2000,2001, 2006, 2008, 2009, 2010, 2011 Free Software Foundation
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public License
|
||||
|
@ -231,9 +231,9 @@ change_option_setting (SCM args, scm_t_option options[], const char *s,
|
|||
{
|
||||
SCM old = SCM_PACK (options[i].val);
|
||||
SCM new = SCM_PACK (flags[i]);
|
||||
if (!SCM_IMP (old))
|
||||
if (SCM_HEAP_OBJECT_P (old))
|
||||
protected_objects = scm_delq1_x (old, protected_objects);
|
||||
if (!SCM_IMP (new))
|
||||
if (SCM_HEAP_OBJECT_P (new))
|
||||
protected_objects = scm_cons (new, protected_objects);
|
||||
}
|
||||
options[i].val = flags[i];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue