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
|
@ -845,7 +845,7 @@ scm_convert_exec_args (SCM args, int pos, const char *subr)
|
|||
int i;
|
||||
|
||||
SCM_ASSERT (SCM_NULLP (args)
|
||||
|| (SCM_NIMP (args) && SCM_CONSP (args)),
|
||||
|| (SCM_CONSP (args)),
|
||||
args, pos, subr);
|
||||
num_args = scm_ilength (args);
|
||||
execargv = (char **)
|
||||
|
@ -855,7 +855,7 @@ scm_convert_exec_args (SCM args, int pos, const char *subr)
|
|||
scm_sizet len;
|
||||
char *dst;
|
||||
char *src;
|
||||
SCM_ASSERT (SCM_NIMP (SCM_CAR (args)) && SCM_ROSTRINGP (SCM_CAR (args)),
|
||||
SCM_ASSERT (SCM_ROSTRINGP (SCM_CAR (args)),
|
||||
SCM_CAR (args), SCM_ARGn, subr);
|
||||
len = 1 + SCM_ROLENGTH (SCM_CAR (args));
|
||||
dst = (char *) scm_must_malloc ((long) len, subr);
|
||||
|
@ -923,8 +923,7 @@ environ_list_to_c (SCM envlist, int arg, const char *proc)
|
|||
char **result;
|
||||
int i = 0;
|
||||
|
||||
SCM_ASSERT (SCM_NULLP (envlist)
|
||||
|| (SCM_NIMP (envlist) && SCM_CONSP (envlist)),
|
||||
SCM_ASSERT (SCM_NULLP (envlist) || SCM_CONSP (envlist),
|
||||
envlist, arg, proc);
|
||||
num_strings = scm_ilength (envlist);
|
||||
result = (char **) malloc ((num_strings + 1) * sizeof (char *));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue