al = SCM_CARLOC (env);
for (fl = SCM_CAR (*al); SCM_NIMP (fl); fl = SCM_CDR (fl))
{
- if (SCM_NCONSP (fl))
+ if (!SCM_CONSP (fl))
{
if (SCM_EQ_P (fl, var))
{
goto errout;
#ifndef SCM_RECKLESS
- if (SCM_NNULLP (env) || SCM_UNBNDP (SCM_VARIABLE_REF (real_var)))
+ if (!SCM_NULLP (env) || SCM_UNBNDP (SCM_VARIABLE_REF (real_var)))
{
errout:
/* scm_everr (vloc, genv,...) */
/* Retain possible doc string. */
if (!SCM_CONSP (SCM_CAR (xorig)))
{
- if (SCM_NNULLP (SCM_CDR(xorig)))
+ if (!SCM_NULLP (SCM_CDR(xorig)))
return scm_cons (SCM_CAR (xorig),
scm_m_body (op, SCM_CDR(xorig), what));
return xorig;
goto badforms;
if (SCM_SYMBOLP (proc))
goto memlambda;
- if (SCM_NCONSP (proc))
+ if (!SCM_CONSP (proc))
goto badforms;
while (SCM_NIMP (proc))
{
- if (SCM_NCONSP (proc))
+ if (!SCM_CONSP (proc))
{
if (!SCM_SYMBOLP (proc))
goto badforms;
scm_misc_error (s_lambda, scm_s_duplicate_formals, SCM_EOL);
proc = SCM_CDR (proc);
}
- if (SCM_NNULLP (proc))
+ if (!SCM_NULLP (proc))
{
badforms:
scm_misc_error (s_lambda, scm_s_formals, SCM_EOL);
#ifdef DEBUG_EXTENSIONS
SCM p;
#endif
- if (SCM_NCELLP (x) || SCM_NCONSP (x))
+ if (!SCM_CELLP (x) || !SCM_CONSP (x))
return x;
#ifdef DEBUG_EXTENSIONS
p = scm_whash_lookup (scm_source_whash, x);
x = SCM_CDR (x);
ls = scm_cons (scm_sym_define,
z = scm_cons (n = SCM_CAR (x), SCM_UNSPECIFIED));
- if (SCM_NNULLP (env))
+ if (!SCM_NULLP (env))
SCM_SETCAR (SCM_CAR (env), scm_cons (n, SCM_CAR (SCM_CAR (env))));
break;
}
}
SCM_SETCDR (z, x);
#ifdef DEBUG_EXTENSIONS
- if (SCM_NFALSEP (p))
+ if (!SCM_FALSEP (p))
scm_whash_insert (scm_source_whash, ls, p);
#endif
return ls;
SCM
scm_unmemocopy (SCM x, SCM env)
{
- if (SCM_NNULLP (env))
+ if (!SCM_NULLP (env))
/* Make a copy of the lowest frame to protect it from
modifications by SCM_IM_DEFINE */
return unmemocopy (x, scm_cons (SCM_CAR (env), SCM_CDR (env)));
{
while (SCM_NIMP (formals))
{
- if (SCM_NCONSP (formals))
+ if (!SCM_CONSP (formals))
return 0;
if (SCM_IMP(args))
return 1;
formals = SCM_CDR (formals);
args = SCM_CDR (args);
}
- return SCM_NNULLP (args) ? 1 : 0;
+ return !SCM_NULLP (args) ? 1 : 0;
}
#endif
{
SCM next;
again:
- next = code;
- while (SCM_NNULLP (next = SCM_CDR (next)))
+ next = SCM_CDR (code);
+ while (!SCM_NULLP (next))
{
if (SCM_IMP (SCM_CAR (code)))
{
else
SCM_XEVAL (SCM_CAR (code), env);
code = next;
+ next = SCM_CDR (code);
}
return SCM_XEVALCAR (code, env);
}
} while (0)
#ifndef DEVAL
-#define CHECK_EQVISH(A,B) (SCM_EQ_P ((A), (B)) || (SCM_NFALSEP (scm_eqv_p ((A), (B)))))
+#define CHECK_EQVISH(A,B) (SCM_EQ_P ((A), (B)) || (!SCM_FALSEP (scm_eqv_p ((A), (B)))))
#endif /* DEVAL */
#define BUILTIN_RPASUBR /* Handle rpsubrs and asubrs without calling apply */
case SCM_BIT8(SCM_IM_AND):
x = SCM_CDR (x);
t.arg1 = x;
- while (SCM_NNULLP (t.arg1 = SCM_CDR (t.arg1)))
+ while (!SCM_NULLP (t.arg1 = SCM_CDR (t.arg1)))
if (SCM_FALSEP (EVALCAR (x, env)))
{
RETURN (SCM_BOOL_F);
{
proc = SCM_CAR (x);
t.arg1 = EVALCAR (proc, env);
- if (SCM_NFALSEP (t.arg1))
+ if (!SCM_FALSEP (t.arg1))
{
x = SCM_CDR (proc);
if (SCM_NULLP (x))
case SCM_BIT8(SCM_IM_IF):
x = SCM_CDR (x);
- if (SCM_NFALSEP (EVALCAR (x, env)))
+ if (!SCM_FALSEP (EVALCAR (x, env)))
x = SCM_CDR (x);
else if (SCM_IMP (x = SCM_CDR (SCM_CDR (x))))
{
PREP_APPLY (SCM_UNDEFINED, SCM_EOL);
if (SCM_IMP (proc))
arg2 = *scm_ilookup (proc, env);
- else if (SCM_NCONSP (proc))
+ else if (!SCM_CONSP (proc))
{
if (SCM_VARIABLEP (proc))
arg2 = SCM_VARIABLE_REF (proc);
case (SCM_ISYMNUM (SCM_IM_T_IFY)):
x = SCM_CDR (x);
- RETURN (SCM_NFALSEP (EVALCAR (x, env)) ? scm_lisp_t : scm_lisp_nil)
+ RETURN (!SCM_FALSEP (EVALCAR (x, env)) ? scm_lisp_t : scm_lisp_nil)
case (SCM_ISYMNUM (SCM_IM_0_COND)):
proc = SCM_CDR (x);
case (SCM_ISYMNUM (SCM_IM_1_IFY)):
x = SCM_CDR (x);
- RETURN (SCM_NFALSEP (EVALCAR (x, env))
+ RETURN (!SCM_FALSEP (EVALCAR (x, env))
? SCM_MAKINUM (1)
: SCM_INUM0)
scm_dynwinds = scm_acons (t.arg1, SCM_CDAR (env), scm_dynwinds);
arg2 = x = SCM_CDR (x);
- while (SCM_NNULLP (arg2 = SCM_CDR (arg2)))
+ while (!SCM_NULLP (arg2 = SCM_CDR (arg2)))
{
SIDEVAL (SCM_CAR (x), env);
x = arg2;
{
RETURN (scm_make_real (SCM_DSUBRF (proc) ((double) SCM_INUM (t.arg1))));
}
- SCM_ASRTGO (SCM_NIMP (t.arg1), floerr);
- if (SCM_REALP (t.arg1))
+ else if (SCM_REALP (t.arg1))
{
RETURN (scm_make_real (SCM_DSUBRF (proc) (SCM_REAL_VALUE (t.arg1))));
}
#ifdef SCM_BIGDIG
- if (SCM_BIGP (t.arg1))
+ else if (SCM_BIGP (t.arg1))
{
RETURN (scm_make_real (SCM_DSUBRF (proc) (scm_i_big2dbl (t.arg1))));
}
#endif
- floerr:
SCM_WTA_DISPATCH_1 (*SCM_SUBR_GENERIC (proc), t.arg1,
SCM_ARG1, SCM_SYMBOL_CHARS (SCM_SNAME (proc)));
}
}
}
#ifdef SCM_CAUTIOUS
- if (SCM_IMP (x) || SCM_NCONSP (x))
+ if (SCM_IMP (x) || !SCM_CONSP (x))
goto wrongnumargs;
#endif
#ifdef DEVAL
SCM *lloc;
SCM_VALIDATE_NONEMPTYLIST (1,lst);
lloc = &lst;
- while (SCM_NNULLP (SCM_CDR (*lloc)))
+ while (!SCM_NULLP (SCM_CDR (*lloc)))
lloc = SCM_CDRLOC (*lloc);
SCM_ASSERT (scm_ilength (SCM_CAR (*lloc)) >= 0, lst, SCM_ARG1, FUNC_NAME);
*lloc = SCM_CAR (*lloc);
args = SCM_NULLP (args) ? SCM_UNDEFINED : SCM_CAR (args);
RETURN (SCM_SUBRF (proc) (arg1, args))
case scm_tc7_subr_2:
- SCM_ASRTGO (SCM_NNULLP (args) && SCM_NULLP (SCM_CDR (args)),
+ SCM_ASRTGO (!SCM_NULLP (args) && SCM_NULLP (SCM_CDR (args)),
wrongnumargs);
args = SCM_CAR (args);
RETURN (SCM_SUBRF (proc) (arg1, args))
{
RETURN (scm_make_real (SCM_DSUBRF (proc) ((double) SCM_INUM (arg1))));
}
- SCM_ASRTGO (SCM_NIMP (arg1), floerr);
- if (SCM_REALP (arg1))
+ else if (SCM_REALP (arg1))
{
RETURN (scm_make_real (SCM_DSUBRF (proc) (SCM_REAL_VALUE (arg1))));
}
#ifdef SCM_BIGDIG
- if (SCM_BIGP (arg1))
+ else if (SCM_BIGP (arg1))
RETURN (scm_make_real (SCM_DSUBRF (proc) (scm_i_big2dbl (arg1))))
#endif
- floerr:
SCM_WTA_DISPATCH_1 (*SCM_SUBR_GENERIC (proc), arg1,
SCM_ARG1, SCM_SYMBOL_CHARS (SCM_SNAME (proc)));
}
RETURN (arg1)
}
case scm_tc7_subr_3:
- SCM_ASRTGO (SCM_NNULLP (args)
- && SCM_NNULLP (SCM_CDR (args))
+ SCM_ASRTGO (!SCM_NULLP (args)
+ && !SCM_NULLP (SCM_CDR (args))
&& SCM_NULLP (SCM_CDDR (args)),
wrongnumargs);
RETURN (SCM_SUBRF (proc) (arg1, SCM_CAR (args), SCM_CAR (SCM_CDR (args))))
proc = SCM_CDR (SCM_CODE (proc));
again:
arg1 = proc;
- while (SCM_NNULLP (arg1 = SCM_CDR (arg1)))
+ while (!SCM_NULLP (arg1 = SCM_CDR (arg1)))
{
if (SCM_IMP (SCM_CAR (proc)))
{
SCM_VELTS (ans)[i] = scm_copy_tree (SCM_VELTS (obj)[i]);
return ans;
}
- if (SCM_NCONSP (obj))
+ if (!SCM_CONSP (obj))
return obj;
ans = tl = scm_cons_source (obj,
scm_copy_tree (SCM_CAR (obj)),