From c751e5e3c31588f8b32c628519efa2c515c1a617 Mon Sep 17 00:00:00 2001 From: "Greg J. Badros" Date: Wed, 5 Jan 2000 18:48:07 +0000 Subject: * guile-snarf.awk.in: Do argument/number mismatch checking and print warnings in an Emacs compile-mode parseable format. * struct.c: Use SCM_ASSERT_RANGE instead of SCM_ASSERT w/ SCM_OUTOFRANGE as 3rd argument. * random.c: Fix argument/number mismatch (that I introduced :-( ). * __scm.h: Do not #define SCM_ARG* when snarfing; lets us distinguish between 1 and SCM_ARG1 when snarfing as only the former (using the number) requires the argument to match the formal in the current argument snarfing check. * ramap.c: Remove extraneous #undef FUNC_NAME. --- libguile/struct.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libguile/struct.c') diff --git a/libguile/struct.c b/libguile/struct.c index 1c039f1d5..e0aeff348 100644 --- a/libguile/struct.c +++ b/libguile/struct.c @@ -552,7 +552,7 @@ integer value small enough to fit in one machine word.") fields_desc = (unsigned char *) SCM_CHARS (layout); n_fields = data[scm_struct_i_n_words]; - SCM_ASSERT (p < n_fields, pos, SCM_OUTOFRANGE, FUNC_NAME); + SCM_ASSERT_RANGE(1,pos, p < n_fields); if (p * 2 < SCM_LENGTH (layout)) { @@ -629,7 +629,7 @@ GUILE_PROC (scm_struct_set_x, "struct-set!", 3, 0, 0, fields_desc = (unsigned char *)SCM_CHARS (layout); n_fields = data[scm_struct_i_n_words]; - SCM_ASSERT (p < n_fields, pos, SCM_OUTOFRANGE, FUNC_NAME); + SCM_ASSERT_RANGE (1,pos, p < n_fields); if (p * 2 < SCM_LENGTH (layout)) { -- cgit v1.2.3