Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
count to protect against nasty code in the equality procedure changing
the lists we're working on. The results don't have to be sensible in
that case, just not hang or access non-cells.
|
|
|
|
|
|
of loop scope so that we do not jump past the initialization of elt.
|
|
|
|
|
|
list-tabulate, not-pair, xcons): Rewrite in C.
|
|
|
|
|
|
lset-adjoin, reduce, reduce-right, span, take!, take-while,
take-while!): Rewrite in C.
|
|
rest argument, that belongs to the caller when reached from apply.
Use a temp vector like scm_srfi1_for_each.
|
|
to check argument is a list, scm_append and scm_append_x don't do that
on their "rest" list (in a normal build).
|
|
|
|
code of 1-arg case.
|
|
instead of an inline loop. Share final list check between all cases
to save some code.
|
|
|
|
|
|
remove! derived from core filter!.
|
|
|
|
SCM_NULLP.
|
|
|
|
|
|
spec is (PRED X elem).
|
|
check, not ARGS.
|
|
appropriate.
|
|
* configure.in (isinf): Let configure find the isinf() function
on MinGW32 systems.
2004-09-03 Stefan Jahn <stefan@lkcc.org>
* threads.c (scm_threads_mark_stacks): Fixed local variable
definitions.
* strings.c (scm_i_substring_copy, s_scm_string_append): Fixed
local variable definitions.
* stime.c (_POSIX_C_SOURCE): Do not define this item on
MinGW32 because it conflicts with its pthread headers.
(s_scm_mktime): Consider the HAVE_STRUCT_TM_TM_ZONE define.
(s_scm_strftime): Using scm_from_locale_string() instead of
scm_makfrom0str().
* posix.c (s_scm_putenv): Fixed typo in the !HAVE_UNSETENV
part.
* numbers.c (scm_init_numbers): Removed check_sanity() call
inside GUILE_DEBUG. The function has been removed somewhen...
* filesys.c (_POSIX_C_SOURCE): Do not define this item on
MinGW32 because it conflicts with its pthread headers.
2004-09-03 Stefan Jahn <stefan@lkcc.org>
* srfi-1.c, srfi-1.h: Renamed any 'lst1' into 'list1' because
lst1 is a #define on Win32 systems.
|
|
deprecated.h. Replaced all uses with scm_is_eq.
|
|
SCM_I_MAKINUM and changed all uses.
|
|
SCM_NEGATE_BOOL, and SCM_BOOLP with scm_is_false, scm_is_true,
scm_from_bool, and scm_is_bool, respectively.
|
|
|
|
from core list-copy but allowing improper lists, per SRFI-1 spec.
|
|
|
|
|
|
* srfi-1.c, srfi-1.h (scm_srfi1_partition), srfi-1.scm (partition):
Re-implement in C to avoid stack overflows for long input lists.
|
|
scm_srfi1_delete_duplicates, scm_srfi1_delete_duplicates_x): New
functions. scm_srfi1_delete_x is derived from scm_delete_x.
|
|
scm_last_pair), libguile/unif.c (l2ra): Prefer !SCM_CONSP over
SCM_NCONSP.
* libguile/unif.c (l2ra): Eliminate redundant check.
Now, guile itself does not include any calls to SCM_NCONSP any
more.
|
|
|
|
with the versions in this module using
scm_c_extend_primitive_generic.
* goops.scm (equal?): Define default method.
* goops.c (scm_primitive_generic_generic): Enable primitive
generic if not enabled.
(scm_sys_goops_loaded): Setup unextended primitive generics.
* goops.c, goops.h (scm_c_extend_primitive_generic): New function.
* snarf.h (SCM_PRIMITIVE_GENERIC, SCM_PRIMITIVE_GENERIC_1): New
snarf macros.
* numbers.c (scm_abs): Use SCM_PRIMITIVE_GENERIC. (This is only a
testing example. All uses of SCM_GPROC should be converted.)
* procprop.c (scm_stand_in_scm_proc): Use scm_assq instead of
scm_assoc.
* eq.c (scm_equal_p): Turned into a primitive generic.
|
|
case of two argument lists. (Thanks to Kevin Ryde.)
|
|
(map, map-in-order, for-each, member, assoc): Replaced by
primitives in srfi-1.c.
(map1): Defined as `map'.
|
|
(map, map-in-order, for-each, member): Replaced by primitives in
srfi-1.c.
* Makefile.am: Added rules for srfi-1.c.
* srfi-1.c, srfi-1.h: New files.
|