mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-18 17:50:29 +02:00
* vectors.h (SCM_VELTS_AS_STACKITEMS): Added this macro to help in
eliminating some warnings. * unif.c, strports.c, print.c, options.c: Fix some warnings on mis-use of SCM/long * gc.c, gc.h: Added scm_return_first_int(), and added comment re: what the scm_return_first* functions do.
This commit is contained in:
parent
7ac030d6de
commit
41b0806d3e
7 changed files with 25 additions and 11 deletions
|
@ -201,8 +201,8 @@ scm_options (SCM arg, scm_option options[], int n, const char *s)
|
|||
// scm_option doesn't know if its a long or an SCM
|
||||
if (options[i].type == SCM_OPTION_SCM)
|
||||
SCM_SETCDR (protected_objects,
|
||||
scm_cons (flags[i],
|
||||
scm_delq1_x (options[i].val,
|
||||
scm_cons (SCM_ASSCM(flags[i]),
|
||||
scm_delq1_x (SCM_ASSCM(options[i].val),
|
||||
SCM_CDR (protected_objects))));
|
||||
options[i].val = flags[i];
|
||||
}
|
||||
|
@ -224,7 +224,7 @@ scm_init_opts (SCM (*func) (SCM), scm_option options[], int n)
|
|||
(options[i].doc));
|
||||
if (options[i].type == SCM_OPTION_SCM)
|
||||
SCM_SETCDR (protected_objects,
|
||||
scm_cons (options[i].val, SCM_CDR (protected_objects)));
|
||||
scm_cons (SCM_ASSCM(options[i].val), SCM_CDR (protected_objects)));
|
||||
}
|
||||
func (SCM_UNDEFINED);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue