mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
check for pairs with scm_is_pair, not scm_nimp
* libguile/array-map.c (scm_ra_matchp, scm_ramapc): * libguile/dynwind.c (scm_swap_bindings): * libguile/hooks.c (hook_print, scm_c_run_hook, scm_c_run_hookn): * libguile/objprop.c (scm_object_property, scm_set_object_property_x): Use !scm_is_pair as the termination condition, not scm_imp.
This commit is contained in:
parent
8c0e89ac90
commit
62fdadb0a5
5 changed files with 13 additions and 13 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 1995,1996,1998,1999,2000,2001, 2003, 2006, 2008, 2009 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1995,1996,1998,1999,2000,2001, 2003, 2006, 2008, 2009, 2011 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
|
||||
|
@ -139,7 +139,7 @@ hook_print (SCM hook, SCM port, scm_print_state *pstate)
|
|||
scm_putc (' ', port);
|
||||
scm_uintprint (SCM_UNPACK (hook), 16, port);
|
||||
ls = SCM_HOOK_PROCEDURES (hook);
|
||||
while (SCM_NIMP (ls))
|
||||
while (scm_is_pair (ls))
|
||||
{
|
||||
scm_putc (' ', port);
|
||||
name = scm_procedure_name (SCM_CAR (ls));
|
||||
|
@ -269,7 +269,7 @@ void
|
|||
scm_c_run_hook (SCM hook, SCM args)
|
||||
{
|
||||
SCM procs = SCM_HOOK_PROCEDURES (hook);
|
||||
while (SCM_NIMP (procs))
|
||||
while (scm_is_pair (procs))
|
||||
{
|
||||
scm_apply_0 (SCM_CAR (procs), args);
|
||||
procs = SCM_CDR (procs);
|
||||
|
@ -280,7 +280,7 @@ void
|
|||
scm_c_run_hookn (SCM hook, SCM *argv, size_t nargs)
|
||||
{
|
||||
SCM procs = SCM_HOOK_PROCEDURES (hook);
|
||||
while (SCM_NIMP (procs))
|
||||
while (scm_is_pair (procs))
|
||||
{
|
||||
scm_call_n (SCM_CAR (procs), argv, nargs);
|
||||
procs = SCM_CDR (procs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue