}
#undef FUNC_NAME
-GUILE_PROC1 (scm_char_eq_p, "char=?", scm_tc7_rpsubr,
+SCM_DEFINE1 (scm_char_eq_p, "char=?", scm_tc7_rpsubr,
(SCM x, SCM y),
"Return #t iff X is the same character as Y, else #f.")
#define FUNC_NAME s_scm_char_eq_p
#undef FUNC_NAME
-GUILE_PROC1 (scm_char_less_p, "char<?", scm_tc7_rpsubr,
+SCM_DEFINE1 (scm_char_less_p, "char<?", scm_tc7_rpsubr,
(SCM x, SCM y),
"Return #t iff X is less than Y in the Ascii sequence, else #f.")
#define FUNC_NAME s_scm_char_less_p
}
#undef FUNC_NAME
-GUILE_PROC1 (scm_char_leq_p, "char<=?", scm_tc7_rpsubr,
+SCM_DEFINE1 (scm_char_leq_p, "char<=?", scm_tc7_rpsubr,
(SCM x, SCM y),
"Return #t iff X is less than or equal to Y in the Ascii sequence, else #f.")
#define FUNC_NAME s_scm_char_leq_p
}
#undef FUNC_NAME
-GUILE_PROC1 (scm_char_gr_p, "char>?", scm_tc7_rpsubr,
+SCM_DEFINE1 (scm_char_gr_p, "char>?", scm_tc7_rpsubr,
(SCM x, SCM y),
"Return #t iff X is greater than Y in the Ascii sequence, else #f.")
#define FUNC_NAME s_scm_char_gr_p
}
#undef FUNC_NAME
-GUILE_PROC1 (scm_char_geq_p, "char>=?", scm_tc7_rpsubr,
+SCM_DEFINE1 (scm_char_geq_p, "char>=?", scm_tc7_rpsubr,
(SCM x, SCM y),
"Return #t iff X is greater than or equal to Y in the Ascii sequence, else #f.")
#define FUNC_NAME s_scm_char_geq_p
}
#undef FUNC_NAME
-GUILE_PROC1 (scm_char_ci_eq_p, "char-ci=?", scm_tc7_rpsubr,
+SCM_DEFINE1 (scm_char_ci_eq_p, "char-ci=?", scm_tc7_rpsubr,
(SCM x, SCM y),
"Return #t iff X is the same character as Y ignoring case, else #f.")
#define FUNC_NAME s_scm_char_ci_eq_p
}
#undef FUNC_NAME
-GUILE_PROC1 (scm_char_ci_less_p, "char-ci<?", scm_tc7_rpsubr,
+SCM_DEFINE1 (scm_char_ci_less_p, "char-ci<?", scm_tc7_rpsubr,
(SCM x, SCM y),
"Return #t iff X is less than Y in the Ascii sequence ignoring case, else #f.")
#define FUNC_NAME s_scm_char_ci_less_p
}
#undef FUNC_NAME
-GUILE_PROC1 (scm_char_ci_leq_p, "char-ci<=?", scm_tc7_rpsubr,
+SCM_DEFINE1 (scm_char_ci_leq_p, "char-ci<=?", scm_tc7_rpsubr,
(SCM x, SCM y),
"Return #t iff X is less than or equal to Y in the Ascii sequence ignoring case, else #f.")
#define FUNC_NAME s_scm_char_ci_leq_p
}
#undef FUNC_NAME
-GUILE_PROC1 (scm_char_ci_gr_p, "char-ci>?", scm_tc7_rpsubr,
+SCM_DEFINE1 (scm_char_ci_gr_p, "char-ci>?", scm_tc7_rpsubr,
(SCM x, SCM y),
"Return #t iff X is greater than Y in the Ascii sequence ignoring case, else #f.")
#define FUNC_NAME s_scm_char_ci_gr_p
}
#undef FUNC_NAME
-GUILE_PROC1 (scm_char_ci_geq_p, "char-ci>=?", scm_tc7_rpsubr,
+SCM_DEFINE1 (scm_char_ci_geq_p, "char-ci>=?", scm_tc7_rpsubr,
(SCM x, SCM y),
"Return #t iff X is greater than or equal to Y in the Ascii sequence ignoring case, else #f.")
#define FUNC_NAME s_scm_char_ci_geq_p
#include "scm_validate.h"
#include "eq.h"
\f
-GUILE_PROC1 (scm_eq_p, "eq?", scm_tc7_rpsubr,
+SCM_DEFINE1 (scm_eq_p, "eq?", scm_tc7_rpsubr,
(SCM x, SCM y),
"")
#define FUNC_NAME s_scm_eq_p
#undef FUNC_NAME
-GUILE_PROC1 (scm_eqv_p, "eqv?", scm_tc7_rpsubr,
+SCM_DEFINE1 (scm_eqv_p, "eqv?", scm_tc7_rpsubr,
(SCM x, SCM y),
"")
#define FUNC_NAME s_scm_eqv_p
#undef FUNC_NAME
-GUILE_PROC1 (scm_equal_p, "equal?", scm_tc7_rpsubr,
+SCM_DEFINE1 (scm_equal_p, "equal?", scm_tc7_rpsubr,
(SCM x, SCM y),
"")
#define FUNC_NAME s_scm_equal_p
/* GJB:FIXME:: why does this return scm_nil instead of SCM_BOOL_F?
Could use SCM_BOOL, below, otherwise */
-GUILE_PROC1 (scm_nil_eq, "nil-eq", scm_tc7_rpsubr,
+SCM_DEFINE1 (scm_nil_eq, "nil-eq", scm_tc7_rpsubr,
(SCM x, SCM y),
"")
#define FUNC_NAME s_scm_nil_eq
#endif
#ifndef scm_long2num
-GUILE_PROC1 (scm_logand, "logand", scm_tc7_asubr,
+SCM_DEFINE1 (scm_logand, "logand", scm_tc7_asubr,
(SCM n1, SCM n2),
"Returns the integer which is the bit-wise AND of the two integer
arguments.
}
#undef FUNC_NAME
-GUILE_PROC1 (scm_logior, "logior", scm_tc7_asubr,
+SCM_DEFINE1 (scm_logior, "logior", scm_tc7_asubr,
(SCM n1, SCM n2),
"Returns the integer which is the bit-wise OR of the two integer
arguments.
}
#undef FUNC_NAME
-GUILE_PROC1 (scm_logxor, "logxor", scm_tc7_asubr,
+SCM_DEFINE1 (scm_logxor, "logxor", scm_tc7_asubr,
(SCM n1, SCM n2),
"Returns the integer which is the bit-wise XOR of the two integer
arguments.
#else
-GUILE_PROC1 (scm_logand, "logand", scm_tc7_asubr,
+SCM_DEFINE1 (scm_logand, "logand", scm_tc7_asubr,
(SCM n1, SCM n2),
"")
#define FUNC_NAME s_scm_logand
}
#undef FUNC_NAME
-GUILE_PROC1 (scm_logior, "logior", scm_tc7_asubr,
+SCM_DEFINE1 (scm_logior, "logior", scm_tc7_asubr,
(SCM n1, SCM n2),
"")
#define FUNC_NAME s_scm_logior
}
#undef FUNC_NAME
-GUILE_PROC1 (scm_logxor, "logxor", scm_tc7_asubr,
+SCM_DEFINE1 (scm_logxor, "logxor", scm_tc7_asubr,
(SCM n1, SCM n2),
"")
#define FUNC_NAME s_scm_logxor
}
-GUILE_PROC1 (scm_gr_p, ">", scm_tc7_rpsubr,
+SCM_DEFINE1 (scm_gr_p, ">", scm_tc7_rpsubr,
(SCM x, SCM y),
"")
#define FUNC_NAME s_scm_gr_p
-GUILE_PROC1 (scm_leq_p, "<=", scm_tc7_rpsubr,
+SCM_DEFINE1 (scm_leq_p, "<=", scm_tc7_rpsubr,
(SCM x, SCM y),
"")
#define FUNC_NAME s_scm_leq_p
-GUILE_PROC1 (scm_geq_p, ">=", scm_tc7_rpsubr,
+SCM_DEFINE1 (scm_geq_p, ">=", scm_tc7_rpsubr,
(SCM x, SCM y),
"")
#define FUNC_NAME s_scm_geq_p
}
#if 0
-/* GJB:FIXME:: Why not use GUILE_PROC1 for array-equal? */
-GUILE_PROC1(scm_array_equal_p, "array-equal?", scm_tc7_rpsubr,
+/* GJB:FIXME:: Why not use SCM_DEFINE1 for array-equal? */
+SCM_DEFINE1 (scm_array_equal_p, "array-equal?", scm_tc7_rpsubr,
(SCM ra0, SCM ra1),
"Returns @code{#t} iff all arguments are arrays with the same shape, the
same type, and have corresponding elements which are either
#define SCM_DEFINE(FNAME, PRIMNAME, REQ, OPT, VAR, ARGLIST, DOCSTRING) \
static const char s_ ## FNAME [] = PRIMNAME; \
SCM FNAME ARGLIST
-#define GUILE_PROC1(FNAME, PRIMNAME, TYPE, ARGLIST, DOCSTRING) \
+#define SCM_DEFINE1(FNAME, PRIMNAME, TYPE, ARGLIST, DOCSTRING) \
static const char s_ ## FNAME [] = PRIMNAME; \
SCM FNAME ARGLIST
%%% scm_make_gsubr (s_ ## FNAME, REQ, OPT, VAR, (SCM (*)(...)) FNAME); \
$$$P PRIMNAME #ARGLIST | REQ | OPT | VAR | __FILE__:__LINE__ | @@@ DOCSTRING @!!!
-#define GUILE_PROC1(FNAME, PRIMNAME, TYPE, ARGLIST, DOCSTRING) \
+#define SCM_DEFINE1(FNAME, PRIMNAME, TYPE, ARGLIST, DOCSTRING) \
%%% scm_make_subr (s_ ## FNAME, TYPE, FNAME); \
$$$1 PRIMNAME #ARGLIST | 2 | 0 | 0 | __FILE__:__LINE__ | @@@ DOCSTRING @!!!
%%% scm_make_gsubr (s_ ## FNAME, REQ, OPT, VAR, (SCM (*)()) FNAME); \
$$$P PRIMNAME #ARGLIST | REQ | OPT | VAR | __FILE__:__LINE__ | @@@ DOCSTRING @!!!
-#define GUILE_PROC1(FNAME, PRIMNAME, TYPE, ARGLIST, DOCSTRING) \
+#define SCM_DEFINE1(FNAME, PRIMNAME, TYPE, ARGLIST, DOCSTRING) \
%%% scm_make_subr (s_ ## FNAME, TYPE, FNAME); \
$$$1 PRIMNAME #ARGLIST | 2 | 0 | 0 | __FILE__:__LINE__ | @@@ DOCSTRING @!!!
#include "strorder.h"
\f
-GUILE_PROC1 (scm_string_equal_p, "string=?", scm_tc7_rpsubr,
+SCM_DEFINE1 (scm_string_equal_p, "string=?", scm_tc7_rpsubr,
(SCM s1, SCM s2),
"")
#define FUNC_NAME s_scm_string_equal_p
}
#undef FUNC_NAME
-GUILE_PROC1 (scm_string_ci_equal_p, "string-ci=?", scm_tc7_rpsubr,
+SCM_DEFINE1 (scm_string_ci_equal_p, "string-ci=?", scm_tc7_rpsubr,
(SCM s1, SCM s2),
"")
#define FUNC_NAME s_scm_string_ci_equal_p
}
#undef FUNC_NAME
-GUILE_PROC1 (scm_string_less_p, "string<?", scm_tc7_rpsubr,
+SCM_DEFINE1 (scm_string_less_p, "string<?", scm_tc7_rpsubr,
(SCM s1, SCM s2),
"")
#define FUNC_NAME s_scm_string_less_p
}
#undef FUNC_NAME
-GUILE_PROC1 (scm_string_leq_p, "string<=?", scm_tc7_rpsubr,
+SCM_DEFINE1 (scm_string_leq_p, "string<=?", scm_tc7_rpsubr,
(SCM s1, SCM s2),
"")
#define FUNC_NAME s_scm_string_leq_p
}
#undef FUNC_NAME
-GUILE_PROC1 (scm_string_gr_p, "string>?", scm_tc7_rpsubr,
+SCM_DEFINE1 (scm_string_gr_p, "string>?", scm_tc7_rpsubr,
(SCM s1, SCM s2),
"")
#define FUNC_NAME s_scm_string_gr_p
}
#undef FUNC_NAME
-GUILE_PROC1 (scm_string_geq_p, "string>=?", scm_tc7_rpsubr,
+SCM_DEFINE1 (scm_string_geq_p, "string>=?", scm_tc7_rpsubr,
(SCM s1, SCM s2),
"")
#define FUNC_NAME s_scm_string_geq_p
}
#undef FUNC_NAME
-GUILE_PROC1 (scm_string_ci_less_p, "string-ci<?", scm_tc7_rpsubr,
+SCM_DEFINE1 (scm_string_ci_less_p, "string-ci<?", scm_tc7_rpsubr,
(SCM s1, SCM s2),
"")
#define FUNC_NAME s_scm_string_ci_less_p
}
#undef FUNC_NAME
-GUILE_PROC1 (scm_string_ci_leq_p, "string-ci<=?", scm_tc7_rpsubr,
+SCM_DEFINE1 (scm_string_ci_leq_p, "string-ci<=?", scm_tc7_rpsubr,
(SCM s1, SCM s2),
"")
#define FUNC_NAME s_scm_string_ci_leq_p
}
#undef FUNC_NAME
-GUILE_PROC1 (scm_string_ci_gr_p, "string-ci>?", scm_tc7_rpsubr,
+SCM_DEFINE1 (scm_string_ci_gr_p, "string-ci>?", scm_tc7_rpsubr,
(SCM s1, SCM s2),
"")
#define FUNC_NAME s_scm_string_ci_gr_p
}
#undef FUNC_NAME
-GUILE_PROC1 (scm_string_ci_geq_p, "string-ci>=?", scm_tc7_rpsubr,
+SCM_DEFINE1 (scm_string_ci_geq_p, "string-ci>=?", scm_tc7_rpsubr,
(SCM s1, SCM s2),
"")
#define FUNC_NAME s_scm_string_ci_geq_p