mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 11:50:28 +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
|
@ -261,7 +261,7 @@ GUILE_PROC (scm_set_source_property_x, "set-source-property!", 3, 0, 0,
|
|||
if (scm_sym_breakpoint == key)
|
||||
{
|
||||
if (SCM_FALSEP (datum))
|
||||
CLEARSRCPROPBRK (SCM_NIMP (p) && SRCPROPSP (p)
|
||||
CLEARSRCPROPBRK (SRCPROPSP (p)
|
||||
? p
|
||||
: SCM_WHASHSET (scm_source_whash, h,
|
||||
scm_make_srcprops (0,
|
||||
|
@ -270,7 +270,7 @@ GUILE_PROC (scm_set_source_property_x, "set-source-property!", 3, 0, 0,
|
|||
SCM_UNDEFINED,
|
||||
p)));
|
||||
else
|
||||
SETSRCPROPBRK (SCM_NIMP (p) && SRCPROPSP (p)
|
||||
SETSRCPROPBRK (SRCPROPSP (p)
|
||||
? p
|
||||
: SCM_WHASHSET (scm_source_whash, h,
|
||||
scm_make_srcprops (0,
|
||||
|
@ -282,7 +282,7 @@ GUILE_PROC (scm_set_source_property_x, "set-source-property!", 3, 0, 0,
|
|||
else if (scm_sym_line == key)
|
||||
{
|
||||
SCM_VALIDATE_INT(3,datum);
|
||||
if (SCM_NIMP (p) && SRCPROPSP (p))
|
||||
if (SRCPROPSP (p))
|
||||
SETSRCPROPLINE (p, SCM_INUM (datum));
|
||||
else
|
||||
SCM_WHASHSET (scm_source_whash, h,
|
||||
|
@ -292,7 +292,7 @@ GUILE_PROC (scm_set_source_property_x, "set-source-property!", 3, 0, 0,
|
|||
else if (scm_sym_column == key)
|
||||
{
|
||||
SCM_VALIDATE_INT(3,datum);
|
||||
if (SCM_NIMP (p) && SRCPROPSP (p))
|
||||
if (SRCPROPSP (p))
|
||||
SETSRCPROPCOL (p, SCM_INUM (datum));
|
||||
else
|
||||
SCM_WHASHSET (scm_source_whash, h,
|
||||
|
@ -301,14 +301,14 @@ GUILE_PROC (scm_set_source_property_x, "set-source-property!", 3, 0, 0,
|
|||
}
|
||||
else if (scm_sym_filename == key)
|
||||
{
|
||||
if (SCM_NIMP (p) && SRCPROPSP (p))
|
||||
if (SRCPROPSP (p))
|
||||
SRCPROPFNAME (p) = datum;
|
||||
else
|
||||
SCM_WHASHSET (scm_source_whash, h, scm_make_srcprops (0, 0, datum, SCM_UNDEFINED, p));
|
||||
}
|
||||
else if (scm_sym_filename == key)
|
||||
{
|
||||
if (SCM_NIMP (p) && SRCPROPSP (p))
|
||||
if (SRCPROPSP (p))
|
||||
SRCPROPCOPY (p) = datum;
|
||||
else
|
||||
SCM_WHASHSET (scm_source_whash, h, scm_make_srcprops (0, 0, SCM_UNDEFINED, datum, p));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue