if (SCM_CAR (fl) == var)
{
#ifdef MEMOIZE_LOCALS
-#ifndef RECKLESS /* letrec inits to SCM_UNDEFINED */
+#ifndef SCM_RECKLESS /* letrec inits to SCM_UNDEFINED */
if (SCM_UNBNDP (SCM_CAR (*al)))
{
env = SCM_EOL;
else
var = vcell;
}
-#ifndef RECKLESS
+#ifndef SCM_RECKLESS
if (SCM_NNULLP (env) || SCM_UNBNDP (SCM_CDR (var)))
{
var = SCM_CAR (var);
#endif
arg1 = scm_sym2vcell (proc, env_top_level (env), SCM_BOOL_T);
#if 0
-#ifndef RECKLESS
+#ifndef SCM_RECKLESS
if (SCM_NIMP (SCM_CDR (arg1)) && ((SCM) SCM_SNAME (SCM_CDR (arg1)) == proc)
&& (SCM_CDR (arg1) != x))
scm_warn ("redefining built-in ", SCM_CHARS (proc));
ASSYNT (SCM_NFALSEP (arg1) && !SCM_UNBNDP (SCM_CDR (arg1)),
x, "variable already unbound ", s_undefine);
#if 0
-#ifndef RECKLESS
+#ifndef SCM_RECKLESS
if (SCM_NIMP (SCM_CDR (arg1)) && ((SCM) SCM_SNAME (SCM_CDR (arg1)) == x))
scm_warn ("undefining built-in ", SCM_CHARS (x));
else
return unmemocopy (x, env);
}
-#ifndef RECKLESS
+#ifndef SCM_RECKLESS
int
scm_badargsp (formals, args)
SCM results = SCM_EOL, *lloc = &results, res;
while (SCM_NIMP (l))
{
-#ifdef CAUTIOUS
+#ifdef SCM_CAUTIOUS
if (SCM_IMP (l))
goto wrongnumargs;
else if (SCM_CONSP (l))
lloc = SCM_CDRLOC (*lloc);
l = SCM_CDR (l);
}
-#ifdef CAUTIOUS
+#ifdef SCM_CAUTIOUS
if (SCM_NNULLP (l))
{
wrongnumargs:
SCM *results = lloc, res;
while (SCM_NIMP (l))
{
-#ifdef CAUTIOUS
+#ifdef SCM_CAUTIOUS
if (SCM_IMP (l))
goto wrongnumargs;
else if (SCM_CONSP (l))
lloc = SCM_CDRLOC (*lloc);
l = SCM_CDR (l);
}
-#ifdef CAUTIOUS
+#ifdef SCM_CAUTIOUS
if (SCM_NNULLP (l))
{
wrongnumargs:
#ifdef DEVAL
debug.info->a.args = t.arg1;
#endif
-#ifndef RECKLESS
+#ifndef SCM_RECKLESS
if (scm_badargsp (SCM_CAR (SCM_CODE (proc)), t.arg1))
goto wrongnumargs;
#endif
case (127 & SCM_ILOC00):
proc = *scm_ilookup (SCM_CAR (x), env);
SCM_ASRTGO (SCM_NIMP (proc), badfun);
-#ifndef RECKLESS
-#ifdef CAUTIOUS
+#ifndef SCM_RECKLESS
+#ifdef SCM_CAUTIOUS
goto checkargs;
#endif
#endif
case scm_tcs_cons_gloc:
proc = SCM_GLOC_VAL (SCM_CAR (x));
SCM_ASRTGO (SCM_NIMP (proc), badfun);
-#ifndef RECKLESS
-#ifdef CAUTIOUS
+#ifndef SCM_RECKLESS
+#ifdef SCM_CAUTIOUS
goto checkargs;
#endif
#endif
else
proc = SCM_CEVAL (SCM_CAR (x), env);
SCM_ASRTGO (SCM_NIMP (proc), badfun);
-#ifndef RECKLESS
-#ifdef CAUTIOUS
+#ifndef SCM_RECKLESS
+#ifdef SCM_CAUTIOUS
checkargs:
#endif
if (SCM_CLOSUREP (proc))
/* must handle macros by here */
x = SCM_CDR (x);
-#ifdef CAUTIOUS
+#ifdef SCM_CAUTIOUS
if (SCM_IMP (x))
goto wrongnumargs;
else if (SCM_CONSP (x))
goto badfun;
}
}
-#ifdef CAUTIOUS
+#ifdef SCM_CAUTIOUS
if (SCM_IMP (x))
goto wrongnumargs;
else if (SCM_CONSP (x))
goto cdrxbegin;
}
}
-#ifdef CAUTIOUS
+#ifdef SCM_CAUTIOUS
if (SCM_IMP (x) || SCM_NECONSP (x))
goto wrongnumargs;
#endif
#else
arg1 = (SCM_UNBNDP (arg1) ? SCM_EOL : scm_cons (arg1, args));
#endif
-#ifndef RECKLESS
+#ifndef SCM_RECKLESS
if (scm_badargsp (SCM_CAR (SCM_CODE (proc)), arg1))
goto wrongnumargs;
#endif
}
args = scm_vector (scm_cons (arg1, args));
ve = SCM_VELTS (args);
-#ifndef RECKLESS
+#ifndef SCM_RECKLESS
for (i = SCM_LENGTH (args) - 1; i >= 0; i--)
SCM_ASSERT (SCM_NIMP (ve[i]) && SCM_CONSP (ve[i]), args, SCM_ARG2, s_map);
#endif
}
args = scm_vector (scm_cons (arg1, args));
ve = SCM_VELTS (args);
-#ifndef RECKLESS
+#ifndef SCM_RECKLESS
for (i = SCM_LENGTH (args) - 1; i >= 0; i--)
SCM_ASSERT (SCM_NIMP (ve[i]) && SCM_CONSP (ve[i]), args, SCM_ARG2, s_for_each);
#endif
#endif
}
if SCM_NINUMP(y) {
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_NIMP(y) && SCM_BIGP(y)))
bady: scm_wta(y, (char *)SCM_ARG2, s_quotient);
# endif
return scm_divbigint(x, z, SCM_BIGSIGN(x), 0);
}
if SCM_NINUMP(y) {
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_NIMP(y) && SCM_BIGP(y)))
bady: scm_wta(y, (char *)SCM_ARG2, s_remainder);
# endif
return scm_divbigint(x, z, y < 0, (SCM_BIGSIGN(x) ? (y > 0) : (y < 0)) ? 1 : 0);
}
if SCM_NINUMP(y) {
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_NIMP(y) && SCM_BIGP(y)))
bady: scm_wta(y, (char *)SCM_ARG2, s_modulo);
# endif
# ifdef SCM_BIGDIG
SCM_ASRTGO(SCM_NIMP(x), badx);
if SCM_BIGP(x) return big2str(x, (unsigned int)SCM_INUM(radix));
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_INEXP(x)))
badx: scm_wta(x, (char *)SCM_ARG1, s_number_to_string);
# endif
SCM t;
if SCM_NINUMP(x) {
# ifdef SCM_BIGDIG
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_NIMP(x)))
badx: scm_wta(x, (char *)SCM_ARG1, s_eq_p);
# endif
# ifdef SCM_BIGDIG
SCM_ASRTGO(SCM_NIMP(y), bady);
if SCM_BIGP(y) return SCM_BOOL_F;
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_INEXP(y)))
bady: scm_wta(y, (char *)SCM_ARG2, s_eq_p);
# endif
# else
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_NIMP(y) && SCM_INEXP(y)))
bady: scm_wta(y, (char *)SCM_ARG2, s_eq_p);
# endif
return (0==scm_bigcomp(x, y)) ? SCM_BOOL_T : SCM_BOOL_F;
}
if SCM_NINUMP(y) {
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_NIMP(y) && SCM_BIGP(y)))
bady: scm_wta(y, (char *)SCM_ARG2, s_eq_p);
# endif
#ifdef SCM_FLOATS
if SCM_NINUMP(x) {
# ifdef SCM_BIGDIG
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_NIMP(x)))
badx: scm_wta(x, (char *)SCM_ARG1, s_less_p);
# endif
# ifdef SCM_BIGDIG
SCM_ASRTGO(SCM_NIMP(y), bady);
if SCM_BIGP(y) return SCM_BIGSIGN(y) ? SCM_BOOL_F : SCM_BOOL_T;
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_REALP(y)))
bady: scm_wta(y, (char *)SCM_ARG2, s_less_p);
# endif
# else
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_NIMP(y) && SCM_REALP(y)))
bady: scm_wta(y, (char *)SCM_ARG2, s_less_p);
# endif
return (1==scm_bigcomp(x, y)) ? SCM_BOOL_T : SCM_BOOL_F;
}
if SCM_NINUMP(y) {
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_NIMP(y) && SCM_BIGP(y)))
bady: scm_wta(y, (char *)SCM_ARG2, s_less_p);
# endif
# ifdef SCM_BIGDIG
SCM_ASRTGO(SCM_NIMP(z), badz);
if SCM_BIGP(z) return SCM_BOOL_F;
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_INEXP(z)))
badz: scm_wta(z, (char *)SCM_ARG1, s_zero_p);
# endif
# ifdef SCM_BIGDIG
SCM_ASRTGO(SCM_NIMP(x), badx);
if SCM_BIGP(x) return SCM_TYP16(x)==scm_tc16_bigpos ? SCM_BOOL_T : SCM_BOOL_F;
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_REALP(x)))
badx: scm_wta(x, (char *)SCM_ARG1, s_positive_p);
# endif
# ifdef SCM_BIGDIG
SCM_ASRTGO(SCM_NIMP(x), badx);
if SCM_BIGP(x) return SCM_TYP16(x)==scm_tc16_bigpos ? SCM_BOOL_F : SCM_BOOL_T;
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_REALP(x)))
badx: scm_wta(x, (char *)SCM_ARG1, s_negative_p);
# endif
double z;
#endif
if SCM_UNBNDP(y) {
-#ifndef RECKLESS
+#ifndef SCM_RECKLESS
if (!(SCM_NUMBERP(x)))
badx: scm_wta(x, (char *)SCM_ARG1, s_max);
#endif
# ifdef SCM_BIGDIG
SCM_ASRTGO(SCM_NIMP(y), bady);
if SCM_BIGP(y) return SCM_BIGSIGN(y) ? x : y;
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_REALP(y)))
bady: scm_wta(y, (char *)SCM_ARG2, s_max);
# endif
# else
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_NIMP(y) && SCM_REALP(y)))
bady: scm_wta(y, (char *)SCM_ARG2, s_max);
# endif
return (1==scm_bigcomp(x, y)) ? y : x;
}
if SCM_NINUMP(y) {
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_NIMP(y) && SCM_BIGP(y)))
bady: scm_wta(y, (char *)SCM_ARG2, s_max);
# endif
double z;
#endif
if SCM_UNBNDP(y) {
-#ifndef RECKLESS
+#ifndef SCM_RECKLESS
if (!(SCM_NUMBERP(x)))
badx:scm_wta(x, (char *)SCM_ARG1, s_min);
#endif
# ifdef SCM_BIGDIG
SCM_ASRTGO(SCM_NIMP(y), bady);
if SCM_BIGP(y) return SCM_BIGSIGN(y) ? y : x;
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_REALP(y)))
bady: scm_wta(y, (char *)SCM_ARG2, s_min);
# endif
# else
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_NIMP(y) && SCM_REALP(y)))
bady: scm_wta(y, (char *)SCM_ARG2, s_min);
# endif
return (-1==scm_bigcomp(x, y)) ? y : x;
}
if SCM_NINUMP(y) {
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_NIMP(y) && SCM_BIGP(y)))
bady: scm_wta(y, (char *)SCM_ARG2, s_min);
# endif
{
if SCM_UNBNDP(y) {
if SCM_UNBNDP(x) return SCM_INUM0;
-#ifndef RECKLESS
+#ifndef SCM_RECKLESS
if (!(SCM_NUMBERP(x)))
badx: scm_wta(x, (char *)SCM_ARG1, s_sum);
#endif
# ifdef SCM_BIGDIG
SCM_ASRTGO(SCM_NIMP(y), bady);
if SCM_BIGP(y) {t = x; x = y; y = t; goto bigreal;}
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
else if (!(SCM_INEXP(y)))
bady: scm_wta(y, (char *)SCM_ARG2, s_sum);
# endif
# else
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_NIMP(y) && SCM_INEXP(y)))
bady: scm_wta(y, (char *)SCM_ARG2, s_sum);
# endif
return scm_addbig(SCM_BDIGITS(x), SCM_NUMDIGS(x), SCM_BIGSIGN(x), y, 0);
}
if SCM_NINUMP(y) {
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_NIMP(y) && SCM_BIGP(y)))
bady: scm_wta(y, (char *)SCM_ARG2, s_sum);
# endif
{
#ifdef SCM_FLOATS
if SCM_NINUMP(x) {
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_NIMP(x)))
badx: scm_wta(x, (char *)SCM_ARG1, s_difference);
# endif
return scm_addbig(zdigs, SCM_DIGSPERLONG, (x < 0) ? 0x0100 : 0, y, 0x0100);
# endif
}
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_INEXP(y)))
bady: scm_wta(y, (char *)SCM_ARG2, s_difference);
# endif
# else
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_NIMP(y) && SCM_INEXP(y)))
bady: scm_wta(y, (char *)SCM_ARG2, s_difference);
# endif
}
if SCM_UNBNDP(y) {x = -SCM_INUM(x); goto checkx;}
if SCM_NINUMP(y) {
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_NIMP(y) && SCM_BIGP(y)))
bady: scm_wta(y, (char *)SCM_ARG2, s_difference);
# endif
{
if SCM_UNBNDP(y) {
if SCM_UNBNDP(x) return SCM_MAKINUM(1L);
-#ifndef RECKLESS
+#ifndef SCM_RECKLESS
if (!(SCM_NUMBERP(x)))
badx: scm_wta(x, (char *)SCM_ARG1, s_product);
#endif
# ifdef SCM_BIGDIG
SCM_ASRTGO(SCM_NIMP(y), bady);
if SCM_BIGP(y) {t = x; x = y; y = t; goto bigreal;}
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
else if (!(SCM_INEXP(y)))
bady: scm_wta(y, (char *)SCM_ARG2, s_product);
# endif
# else
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_NIMP(y) && SCM_INEXP(y)))
bady: scm_wta(y, (char *)SCM_ARG2, s_product);
# endif
SCM_BIGSIGN(x) ^ SCM_BIGSIGN(y));
}
if SCM_NINUMP(y) {
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_NIMP(y) && SCM_BIGP(y)))
bady: scm_wta(y, (char *)SCM_ARG2, s_product);
# endif
#ifdef SCM_FLOATS
double d, r, i, a;
if SCM_NINUMP(x) {
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_NIMP(x)))
badx: scm_wta(x, (char *)SCM_ARG1, s_divide);
# endif
SCM z;
if SCM_INUMP(y) {
z = SCM_INUM(y);
-#ifndef RECKLESS
+#ifndef SCM_RECKLESS
if (!z)
scm_num_overflow (s_divide);
#endif
# ifdef SCM_BIGDIG
SCM_ASRTGO(SCM_NIMP(y), bady);
if SCM_BIGP(y) return scm_makdbl(SCM_INUM(x)/scm_big2dbl(y), 0.0);
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_INEXP(y)))
bady: scm_wta(y, (char *)SCM_ARG2, s_divide);
# endif
# else
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_NIMP(y) && SCM_INEXP(y)))
bady: scm_wta(y, (char *)SCM_ARG2, s_divide);
# endif
goto ov;
}
if SCM_NINUMP(y) {
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_NIMP(y) && SCM_BIGP(y)))
bady: scm_wta(y, (char *)SCM_ARG2, s_divide);
# endif
SCM_ASRTGO(SCM_NIMP(z1), badz1);
if SCM_BIGP(z1) xy->x = scm_big2dbl(z1);
else {
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_REALP(z1)))
badz1: scm_wta(z1, (char *)SCM_ARG1, sstring);
# endif
SCM_ASRTGO(SCM_NIMP(z2), badz2);
if SCM_BIGP(z2) xy->y = scm_big2dbl(z2);
else {
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_REALP(z2)))
badz2: scm_wta(z2, (char *)SCM_ARG2, sstring);
# endif
# ifdef SCM_BIGDIG
SCM_ASRTGO(SCM_NIMP(z), badz);
if SCM_BIGP(z) return z;
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_INEXP(z)))
badz: scm_wta(z, (char *)SCM_ARG1, s_real_part);
# endif
# ifdef SCM_BIGDIG
SCM_ASRTGO(SCM_NIMP(z), badz);
if SCM_BIGP(z) return SCM_INUM0;
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_INEXP(z)))
badz: scm_wta(z, (char *)SCM_ARG1, s_imag_part);
# endif
# ifdef SCM_BIGDIG
SCM_ASRTGO(SCM_NIMP(z), badz);
if SCM_BIGP(z) return scm_abs(z);
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_INEXP(z)))
badz: scm_wta(z, (char *)SCM_ARG1, s_magnitude);
# endif
# ifdef SCM_BIGDIG
SCM_ASRTGO(SCM_NIMP(z), badz);
if SCM_BIGP(z) {x = (SCM_TYP16(z)==scm_tc16_bigpos) ? 1.0 : -1.0; goto do_angle;}
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_INEXP(z))) {
badz: scm_wta(z, (char *)SCM_ARG1, s_angle);}
# endif
# ifdef SCM_BIGDIG
SCM_ASRTGO(SCM_NIMP(z), badz);
if SCM_BIGP(z) return z;
-# ifndef RECKLESS
+# ifndef SCM_RECKLESS
if (!(SCM_REALP(z)))
badz: scm_wta(z, (char *)SCM_ARG1, s_inexact_to_exact);
# endif
u -= c;
digits[i] = c;
}
-#ifndef RECKLESS
+#ifndef SCM_RECKLESS
if (u != 0)
scm_num_overflow ("dbl2big");
#endif