mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-14 15:40:19 +02:00
* coop-threads.c: Remove K&R function headers.
* scm_validate.h: Added SCM_VALIDATE_THREAD. * *.c: Remove SCM_NIMP(X) when it is an extraneous pre-test given that SCM_FOOP macros all now include SCM_NIMP in their expansion. This simplifies lots of code, making it far more readable.
This commit is contained in:
parent
9c24ff3e6c
commit
0c95b57d77
50 changed files with 324 additions and 384 deletions
|
@ -226,7 +226,7 @@ static SCM
|
|||
get_applybody ()
|
||||
{
|
||||
SCM proc = SCM_CDR (scm_sym2vcell (scm_sym_apply, SCM_BOOL_F, SCM_BOOL_F));
|
||||
if (SCM_NIMP (proc) && SCM_CLOSUREP (proc))
|
||||
if (SCM_CLOSUREP (proc))
|
||||
return SCM_CADR (SCM_CODE (proc));
|
||||
else
|
||||
return SCM_UNDEFINED;
|
||||
|
@ -415,7 +415,7 @@ GUILE_PROC (scm_stack_p, "stack?", 1, 0, 0,
|
|||
"Return @code{#t} if @var{obj} is a calling stack.")
|
||||
#define FUNC_NAME s_scm_stack_p
|
||||
{
|
||||
return SCM_BOOL(SCM_NIMP (obj) && SCM_STACKP (obj));
|
||||
return SCM_BOOL(SCM_STACKP (obj));
|
||||
}
|
||||
#undef FUNC_NAME
|
||||
|
||||
|
@ -431,7 +431,7 @@ GUILE_PROC (scm_make_stack, "make-stack", 0, 0, 1,
|
|||
SCM stack, id;
|
||||
SCM obj, inner_cut, outer_cut;
|
||||
|
||||
SCM_ASSERT (SCM_NIMP (args) && SCM_CONSP (args),
|
||||
SCM_ASSERT (SCM_CONSP (args),
|
||||
SCM_FUNC_NAME, SCM_WNA, NULL);
|
||||
obj = SCM_CAR (args);
|
||||
args = SCM_CDR (args);
|
||||
|
@ -480,11 +480,11 @@ GUILE_PROC (scm_make_stack, "make-stack", 0, 0, 1,
|
|||
SCM_STACK (stack) -> length = n;
|
||||
|
||||
/* Narrow the stack according to the arguments given to scm_make_stack. */
|
||||
while (n > 0 && SCM_NIMP (args) && SCM_CONSP (args))
|
||||
while (n > 0 && SCM_CONSP (args))
|
||||
{
|
||||
inner_cut = SCM_CAR (args);
|
||||
args = SCM_CDR (args);
|
||||
if (SCM_NIMP (args) && SCM_CONSP (args))
|
||||
if (SCM_CONSP (args))
|
||||
{
|
||||
outer_cut = SCM_CAR (args);
|
||||
args = SCM_CDR (args);
|
||||
|
@ -580,7 +580,7 @@ GUILE_PROC (scm_frame_p, "frame?", 1, 0, 0,
|
|||
"")
|
||||
#define FUNC_NAME s_scm_frame_p
|
||||
{
|
||||
return SCM_BOOL(SCM_NIMP (obj) && SCM_FRAMEP (obj));
|
||||
return SCM_BOOL(SCM_FRAMEP (obj));
|
||||
}
|
||||
#undef FUNC_NAME
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue