mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-16 08:40:19 +02:00
* scm_validate.h: Added SCM_NUM2LONG_DEF macro. Make
SCM_OUT_OF_RANGE use SCM_MAKINUM, not scm_long2num. Added SCM_COERCE_ROSTRING macro. Added SCM_VALIDATE_NONEMPTYLIST macro. Fix SCM_VALIDATE_STRINGORSUBSTR macro to not use SLOPPY variants. * ports.c (scm_port_closed_p): Validate that the arg is a PORT, then return whether it's an open port (was validating that it was an open port -- this was a bug I introduced back in December, but my careful reading of diffs caught it). * numbers.c: Recombine the two conditional-compilation paths for all the log* primitives -- they were split based on #ifndef scm_long2num; factored out a SCM_LOGOP_RETURN macro, and fixed some bugs and inconsistencies in the two sets of implementations. (scm_lognot) Fixed *atrocious* re-use of a SCM as an integer! * ioext.c: Use SCM_ASSERT_RANGE in a couple places, and SCM_VALIDATE_INUM_COPY once where it should've been used. * fluids.c (scm_internal_with_fluids): Use SCM_VALIDATE_LIST_COPYLEN. * filesys.c: Use SCM_NUM2LONG instead of SCM_VALIDATE_INUM_COPY; this is questionable as it relaxes type safety, but other changes were useful and all SCM_NUM2LONG's should probably be revisited. Use SCM_OUT_OF_RANGE, SCM_WRONG_TYPE_ARG. * evalext.c: line-break change on 1 line. * eval.c (nconc2last): Takes a non-empty list as its first argument, not just a list. * dynl.c: Use new SCM_COERCE_ROSTRING macro.
This commit is contained in:
parent
d61f6b0288
commit
c1bfcf602b
10 changed files with 51 additions and 123 deletions
|
@ -367,7 +367,7 @@ as the @var{lib} argument to the following functions.")
|
|||
struct dynl_obj *d;
|
||||
int flags = DYNL_GLOBAL;
|
||||
|
||||
fname = scm_coerce_rostring (fname, FUNC_NAME, SCM_ARG1);
|
||||
SCM_COERCE_ROSTRING (1, fname);
|
||||
|
||||
/* collect flags */
|
||||
while (SCM_CONSP (rest))
|
||||
|
@ -475,7 +475,7 @@ needed or not and will add it when necessary.
|
|||
struct dynl_obj *d;
|
||||
void (*func) ();
|
||||
|
||||
symb = scm_coerce_rostring (symb, FUNC_NAME, SCM_ARG1);
|
||||
SCM_COERCE_ROSTRING (1, symb);
|
||||
d = get_dynl_obj (dobj, FUNC_NAME, SCM_ARG2);
|
||||
|
||||
SCM_DEFER_INTS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue