1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-01 04:10:18 +02:00
Commit graph

389 commits

Author SHA1 Message Date
Kevin Ryde
4dd6bd8431 (take): Make this an alias for list-head.
(drop): Make this an alias for list-tail.
2003-05-09 22:38:54 +00:00
Neil Jerram
a1a5dfa888 SRFI 34 2003-04-30 00:06:33 +00:00
Marius Vollmer
2d2f76fc5f *** empty log message *** 2003-04-22 22:41:39 +00:00
Marius Vollmer
2a3264974b Removed stray "o" from exports list. 2003-04-22 22:41:19 +00:00
Dirk Herrmann
1685446c0d * srfi/srfi-1.c (srfi1_ilength), libguile/list.c (scm_ilength,
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.
2003-04-21 01:59:57 +00:00
Marius Vollmer
73be1d9e8e Changed license terms to the plain LGPL thru-out. 2003-04-05 19:15:35 +00:00
Rob Browning
e583edd0a3 * srfi-4.c: replace typedefs for basic types with typedefs using
new standard int types (i.e. scm_t_uint8, etc.) -- should probably
remove typedefs altogether later.
2003-03-26 00:02:26 +00:00
Rob Browning
e3c0c3b9cd *** empty log message *** 2003-03-26 00:02:20 +00:00
Mikael Djurfeldt
b8b0abf067 * srfi-1.scm: Re-export all srfi-1 bindings implemented by the
core.  (Thanks to Kevin Ryde.)
2003-03-24 09:13:35 +00:00
Mikael Djurfeldt
d57da08b6d * srfi-13.scm: Mark replacements.
* srfi-17.scm: Mark replacements.

* boot-9.scm (module-make-local-var!): Use module-add!.
(module-primitive-add!): New function.
(resolve-interface): Use
(call-with-deferred-observers, module-call-observers): New
functions.
(module-defer-observers, module-defer-observers-mute,
module-defer-observers-table): New variables.
(process-define-module, process-use-modules, export, re-export):
Use call-with-deferred-observers.

* syncase.scm (eval): Mark as replacement.

* boot-9.scm (defmacro-public): Use export-syntax instead of export.
2003-03-12 14:11:42 +00:00
Mikael Djurfeldt
c614a00b8c * srfi-1.scm (filter, filter!): Removed. (Now implemented in the core.)
* goops/util.scm (filter): Removed.  (Now supplied by core.)

* list.c, list.h (scm_filter, scm_filter_x): New functions.

* debugger/command-loop.scm: Prefix all commands imported from
(ice-9 debugger command-loop) with debugger:.

* boot-9.scm (resolve-interface): Process #:hide; Name custom interfaces
appropriately.
(module-use!, module-use-interfaces!): Remove existing interfaces
on the use-list based on module name rather than interface
identity so that custom interfaces truly replaces their previous
version.
2003-03-11 19:58:14 +00:00
Mikael Djurfeldt
f595ccfefc * srfi-1.scm (iota map for-each map-in-order list-index member
delete delete! assoc): Marked as replacements.

* goops.scm (define-extended-generics): New syntax.
(<class> <operator-class> <entity-class> <entity>): Marked as
replacements.

* boot-9.scm (module-override!, make-mutable-parameter,
lookup-duplicates-handlers, default-module-duplicates-handler):
New functions.
(process-duplicates): Don't call duplicates handlers for duplicate
bindings of the same variable.
(process-define-module): Process #:replace.
(compile-interface-spec, resolve-interface): Process #:prefix.

* format.scm (format): Marked as replacement.

* threads.scm (future, future-ref): Marked as replacements.
2003-03-10 23:18:05 +00:00
Mikael Djurfeldt
a48d60b1c0 * srfi-1.c (scm_init_srfi_1): Extend root module map and for-each
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.
2003-03-06 12:51:57 +00:00
Mikael Djurfeldt
f9ac1c2df8 * srfi-1.c (srfi1_for_each): Corrected argument checking for the
case of two argument lists.  (Thanks to Kevin Ryde.)
2003-02-03 14:48:25 +00:00
Rob Browning
eaaae3ed2f *** empty log message *** 2003-02-01 17:50:45 +00:00
Rob Browning
fe401116ba * Makefile.am: move built files to nodist_ targets so they don't
end up in the dist tarfile.
(libguile_srfi_srfi_4_v_@LIBGUILE_SRFI_SRFI_4_MAJOR@_la_SOURCES):
remove srfi-4.x.
(nodist_libguile_srfi_srfi_4_v_@LIBGUILE_SRFI_SRFI_4_MAJOR@_la_SOURCES): add srfi-4.x.
(libguile_srfi_srfi_13_14_v_@LIBGUILE_SRFI_SRFI_13_14_MAJOR@_la_SOURCES): remove srfi-13.x srfi-14.x.
(nodist_libguile_srfi_srfi_13_14_v_@LIBGUILE_SRFI_SRFI_13_14_MAJOR@_la_SOURCES): add srfi-13.x srfi-14.x.
2003-02-01 17:49:13 +00:00
Rob Browning
b2cbe8d8a2 *** empty log message *** 2002-12-09 00:51:53 +00:00
Rob Browning
efb5821894 * Makefile.am (srfidir): VERSION -> GUILE_EFFECTIVE_VERSION. 2002-12-09 00:42:40 +00:00
Rob Browning
9ccfa5bf15 *** empty log message *** 2002-12-08 21:03:40 +00:00
Rob Browning
5a3300a23b * Makefile.am (srfidir): VERSION -> GUILE_EFFECTIVE_VERSION. 2002-12-08 20:44:03 +00:00
Marius Vollmer
2ab05d7843 *** empty log message *** 2002-12-02 01:18:31 +00:00
Marius Vollmer
d9d40de4ac (srfiinclude_HEADERS): Added srfi-1.h. 2002-12-02 01:18:20 +00:00
Mikael Djurfeldt
7692d26b31 * srfi-1.scm: Load srfi-1 extension.
(map, map-in-order, for-each, member, assoc): Replaced by
primitives in srfi-1.c.
(map1): Defined as `map'.
2002-12-01 13:56:11 +00:00
Mikael Djurfeldt
ee6aac9733 * srfi-1.scm: Load srfi-1 extension.
(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.
2002-12-01 13:10:51 +00:00
Rob Browning
18765d593e *** empty log message *** 2002-10-10 04:26:08 +00:00
Rob Browning
3b463c07ea * Makefile.am (srfiinclude_HEADERS, srfiincludedir): install the
srfi headers into guile/srfi/.
2002-10-10 04:25:48 +00:00
Rob Browning
aae9a22bfb * Makefile.am (srfiinclude_HEADERS, srfiincludedir): install the
srfi headers into guile/srfi/.
2002-10-09 21:56:00 +00:00
Rob Browning
a3a173b01a *** empty log message *** 2002-07-20 20:21:57 +00:00
Rob Browning
6d816e8d41 * srfi-4.scm: load libguile-srfi-srfi-4-v-MAJOR now. 2002-07-20 20:20:58 +00:00
Rob Browning
ead6015e21 * srfi-14.scm: load libguile-srfi-srfi-13-14-v-MAJOR now. 2002-07-20 20:20:51 +00:00
Rob Browning
d1f6bda7ba * srfi-13.scm: load libguile-srfi-srfi-13-14-v-MAJOR now. 2002-07-20 20:20:45 +00:00
Rob Browning
427bab0596 * Makefile.am (lib_LTLIBRARIES): just name dlsymable libs with
their major version number, not the whole version.  That should be
sufficient for now.
2002-07-20 20:20:38 +00:00
Marius Vollmer
beac3691b7 *** empty log message *** 2002-05-06 18:44:09 +00:00
Marius Vollmer
c8519a82f2 (scm_string_tokenize): Instead of using "isgraphic" as the subtitute
for char-set:graphic when then token-set hsa been defaulted, grab the
real char-set:graphic from (srfi srfi-14).
2002-05-06 18:44:02 +00:00
Marius Vollmer
139e5cb2fb (SCM_CHARSET_GET): Cast IDX to unsigned char so that it works for
8-bit characters.  Thanks to Matthias Koeppe!  No, make that "Köppe".
2002-05-06 18:43:54 +00:00
Marius Vollmer
a3119b740f *** empty log message *** 2002-05-06 18:43:12 +00:00
Marius Vollmer
45b2947945 (SCM_CHARSET_GET): Cast IDX to unsigned char so that it works for
8-bit characters.  Thanks to Matthias Koeppe!  No, make that "Köppe".
2002-05-06 18:43:06 +00:00
Marius Vollmer
c1855462dd *** empty log message *** 2002-04-26 19:20:55 +00:00
Marius Vollmer
65f5dbae9a (s_scm_string_tokenize): Only take character sets as the second arg.
Collect characters belonging to this set into tokens (as specified by
the SRFI), instead of splitting at these characters.  Default to an
equivalent of char-set:graphic instead of everything-but-whitespace.
Thanks to Matthias Koeppe!
2002-04-26 19:16:38 +00:00
Marius Vollmer
54d4ac1f44 *** empty log message *** 2002-04-26 18:35:42 +00:00
Marius Vollmer
aa6a37ea2e (s_scm_string_tokenize): Only take character sets as the second arg.
Collect characters belonging to this set into tokens (as specified by
the SRFI), instead of splitting at these characters.  Default to an
equivalent of char-set:graphic instead of everything-but-whitespace.
Thanks to Matthias Koeppe!
2002-04-26 18:34:21 +00:00
Rob Browning
21550b108e *** empty log message *** 2002-04-11 04:41:40 +00:00
Rob Browning
caa6d6ecec * .cvsignore: add *.c.clean.c. 2002-04-11 04:31:09 +00:00
Rob Browning
cec1f414cc *** empty log message *** 2002-04-09 17:27:46 +00:00
Rob Browning
852b06e2f4 * srfi-4.scm: hack around dynamic-link problems by
using painfully explicit lib names.
2002-04-09 17:27:35 +00:00
Rob Browning
667f6c2fbd * srfi-14.scm: hack around dynamic-link problems by
using painfully explicit lib names.
2002-04-09 17:27:28 +00:00
Rob Browning
a2174d4286 * srfi-13.scm: hack around dynamic-link problems by
using painfully explicit lib names.
2002-04-09 17:27:22 +00:00
Rob Browning
87cf132b41 * Makefile.am: hack around dynamic-link problems by
using painfully explicit lib names.
2002-04-09 17:26:37 +00:00
Rob Browning
0b829ad07e * .cvsignore: add *.c.clean.c. 2002-04-02 01:41:13 +00:00
Thien-Thi Nguyen
96d1f6eb64 *** empty log message *** 2002-03-28 01:53:18 +00:00