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

389 commits

Author SHA1 Message Date
Thien-Thi Nguyen
b49dde84fa (time-monotonic->time-monotonic): Spurious; remove from exports. 2001-11-06 22:24:20 +00:00
Thien-Thi Nguyen
23b1bf4b7a *** empty log message *** 2001-11-06 22:22:38 +00:00
Thien-Thi Nguyen
ee4beedcf4 (time-monotonic->time-monotonic): Spurious; remove from exports. 2001-11-06 22:21:29 +00:00
Stefan Jahn
8f99e3f38b 2001-11-04 Stefan Jahn <stefan@lkcc.org>
* NEWS: Corrected remarks about SCM_API.

        * configure.in: Defining USE_DLL_IMPORT definition to indicate
        usage of DLL import macros in `libguile/__scm.h'.
        (LIBOBJS): Removed `fileblocks.o' from the list of object files.
        Somehow Jim Blandy's patch from 1997 did not survive.

2001-11-04  Stefan Jahn  <stefan@lkcc.org>

        * configure.in (EXTRA_DEFS): Follow-up patch.  Using SCM_IMPORT
        instead of __SCM_IMPORT__.

        * readline.c (scm_readline_init_ports): Disable input/output
        stream redirection for Win32.  The readline package for Win32
        does not support this.  The guile-readline library works fine
        for command line editing.

        * readline.h (SCM_RL_API): Renamed __FOO__ macros into FOO.

2001-11-04  Stefan Jahn  <stefan@lkcc.org>

        * Makefile.am (libguile_la_LIBADD): Added $(THREAD_LIBS_LOCAL)
        here (was at guile_LDADD) which describes the dependency
        correctly and allows a clean build on Win32.

        * __scm.h (SCM_API): Follow-up patch.  Renamed __FOO__ macros
        into FOO.

        * __scm.h: USE_DLL_IMPORT indicates the usage of the DLL
        import macros for external libraries (libcrypt, libqthreads,
        libreadline and libregex).

        * coop-defs.h: Include <winsock2.h> for `struct timeval'.

        * posix.c (flock): Added support for flock() in M$-Windows.

        * guile.c (SCM_IMPORT): Follow-up patch.  Use SCM_IMPORT instead
        of __SCM_IMPORT__.

        * fports.c (getflags): Differentiate reading and writing pipes
        descriptors.

        * filesys.c (S_IS*): Redefine all of the S_IS*() macros for
        M$-Windows.

        * coop.c (coop_condition_variable_timed_wait_mutex): Use
        conditionalized error code if `ETIMEDOUT' is not available.
        (scm_thread_usleep): Remove bogus declaration of `struct timeval
        timeout'.

        * numbers.c (PTRDIFF_MIN): Moved this definition where it actually
        belongs.  That is because NO_PREPRO_MAGIC gets undefined after
        each inclusion of `num2integral.i.c'.
        (SIZE_MAX): Define NO_PREPRO_MAGIC if SIZE_MAX is undefined.

2001-11-04  Stefan Jahn  <stefan@lkcc.org>

        * md/Makefile.am (EXTRA_DIST): Added `i386.asm'.

        * md/i386.asm: New file.  Contains the Intel syntax version for
        nasm/tasm/masm of the file `i386.s'.

        * qt.h.in: Definition of QT_API, QT_IMPORT and QT_EXPORT.
        Prefixed each symbols which is meant to go into a DLL.

        * Makefile.am (libqthreads_la_LDFLAGS):  Put `-no-undefined'
        into LDFLAGS to support linkers which do not allow unresolved
        symbols inside shared libraries.
        (EXTRA_DIST): Add `libqthreads.def', which is an export file
        definition for M$-Windows.  It defines exported symbols.  This is
        necessary because the M$VC linker does not know how to export
        assembler symbols into a DLL.

2001-11-04  Stefan Jahn  <stefan@lkcc.org>

        * srfi-13.h, srfi-14.h, srfi-4.h: Follow-up patch.  Renamed
        __FOO__ macros into FOO.

2001-11-04  Stefan Jahn  <stefan@lkcc.org>

        * tests/ports.test: Run (close-port) before (delete-file) if
        necessary/advisory.
2001-11-04 15:52:30 +00:00
Marius Vollmer
836b65573d *** empty log message *** 2001-11-03 23:06:47 +00:00
Marius Vollmer
56b0cb03eb (libguile_srfi_srfi_4_la_LIBADD, libguile_srfi_srfi_13_14_la_LIBADD):
Refer to build directory, not the source directory, for libguile.la.
Thanks to Ken Raeburn.
2001-11-03 23:06:40 +00:00
Marius Vollmer
f712d833cc *** empty log message *** 2001-11-02 00:21:34 +00:00
Marius Vollmer
064a03fd19 Defined SCM_SRFI4_API. Prefixed each exported
symbol with SCM_SRFI4_API.
2001-11-02 00:21:25 +00:00
Marius Vollmer
88a9347187 Defined SCM_SRFI1314_API. Prefixed each
exported symbol with SCM_SRFI1314_API.
2001-11-02 00:21:17 +00:00
Marius Vollmer
cb0abacf36 Put `-no-undefined' into LDFLAGS to support linkers
which do not allow unresolved symbols inside shared libraries.
2001-11-02 00:19:42 +00:00
Thien-Thi Nguyen
4558e398fe *** empty log message *** 2001-10-31 18:37:08 +00:00
Thien-Thi Nguyen
6cd036ce4f (scm_string_to_char_set, scm_string_to_char_set_x): Use `size_t'
instead of deprecated `scm_sizet'.
2001-10-31 18:34:38 +00:00
Mikael Djurfeldt
1a179b03b0 * lib.scm: Move module the system directives `export',
`export-syntax', `re-export' and `re-export-syntax' into the
  `define-module' form.  This is the recommended way of exporting
  bindings.

* srfi-2.scm, srfi-4.scm, srfi-8.scm, srfi-9.scm, srfi-10.scm,
srfi-11.scm, srfi-14.scm, srfi-16.scm: Move module the system
directives `export', `export-syntax', `re-export' and
`re-export-syntax' into the `define-module' form.  This is the
recommended way of exporting bindings.

* goops.scm, goops/active-slot.scm, goops/compile.scm,
goops/composite-slot.scm, goops/describe.scm, goops/dispatch.scm,
goops/old-define-method.scm, goops/save.scm, goops/util.scm: Move
module the system directives `export', `export-syntax',
`re-export' and `re-export-syntax' into the `define-module' form.
This is the recommended way of exporting bindings.

* slib.scm (array-indexes): New procedure.
(*features*): Extend.  (Probably some of these options should be
set elsewhere.)  (Thanks to Aubrey Jaffer.)

* and-let-star-compat.scm, and-let-star.scm, calling.scm,
  channel.scm, common-list.scm, debug.scm, debugger.scm,
  expect.scm, hcons.scm, lineio.scm, ls.scm, mapping.scm,
  null.scm, optargs.scm, poe.scm, popen.scm, pretty-print.scm,
  q.scm, r5rs.scm, rdelim.scm, regex.scm, runq.scm, safe-r5rs.scm,
  safe.scm, session.scm, slib.scm, streams.scm, string-fun.scm,
  syncase.scm, threads.scm: Move module the system directives
  `export', `export-syntax', `re-export' and `re-export-syntax'
  into the `define-module' form.  This is the recommended way of
  exporting bindings.
2001-10-21 09:49:19 +00:00
Mikael Djurfeldt
7338fb2827 * srfi-2.scm, srfi-4.scm, srfi-8.scm, srfi-9.scm, srfi-10.scm,
srfi-11.scm, srfi-14.scm, srfi-16.scm: Move module the system
directives `export', `export-syntax', `re-export' and
`re-export-syntax' into the `define-module' form.  This is the
recommended way of exporting bindings.
2001-10-18 19:43:07 +00:00
Mikael Djurfeldt
b21cccf315 * srfi-19.scm (priv:split-real): Inserted missing call to
inexact->exact.
2001-09-22 21:17:31 +00:00
Mikael Djurfeldt
7bed0fdaf0 * srfi-19.scm (priv:split-real): Inserted missing call to
inexact->exact.
2001-09-22 21:15:40 +00:00
Rob Browning
0b073f0f14 *** empty log message *** 2001-09-21 17:58:04 +00:00
Rob Browning
cc0ce1e764 * srfi-14.c (SCM_CHARSET_SET): need 1L, not just 1 in "<<".
(scm_char_set_hash): val needs to be long, not just unsigned.
(scm_char_set): need 1L, not just 1 in "<<".
(scm_list_to_char_set): need 1L, not just 1 in "<<".
(scm_list_to_char_set_x): need 1L, not just 1 in "<<".
(scm_list_to_char_set_x): FUNC_NAME was wrong - added a _x.
(scm_string_to_char_set): string length var needed to be
scm_sizet, not int.
(scm_string_to_char_set): need 1L, not just 1 in "<<".
(scm_string_to_char_set_x): string length var needed to be
scm_sizet, not int.
(scm_string_to_char_set_x): need 1L, not just 1 in "<<".
(scm_char_set_filter): need 1L, not just 1 in "<<".
(scm_char_set_filter_x): need 1L, not just 1 in "<<".
(scm_ucs_range_to_char_set): need 1L, not just 1 in "<<".
(scm_ucs_range_to_char_set_x): need 1L, not just 1 in "<<".
(scm_char_set_adjoin): need 1L, not just 1 in "<<".
(scm_char_set_delete): need 1L, not just 1 in "<<".
(scm_char_set_adjoin_x): need 1L, not just 1 in "<<".
(scm_char_set_delete_x): need 1L, not just 1 in "<<".
2001-09-21 17:55:07 +00:00
Rob Browning
3a868e486c * srfi-14.h (SCM_CHARSET_GET): need 1L, not just 1 in "<<". 2001-09-21 17:54:56 +00:00
Rob Browning
2f3b3004fb *** empty log message *** 2001-09-21 17:52:07 +00:00
Rob Browning
437424988d * srfi-14.c (SCM_CHARSET_SET): need 1L, not just 1 in "<<".
(scm_char_set_hash): val needs to be long, not just unsigned.
(scm_char_set): need 1L, not just 1 in "<<".
(scm_list_to_char_set): need 1L, not just 1 in "<<".
(scm_list_to_char_set_x): need 1L, not just 1 in "<<".
(scm_list_to_char_set_x): FUNC_NAME was wrong - added a _x.
(scm_string_to_char_set): string length var needed to be
scm_sizet, not int.
(scm_string_to_char_set): need 1L, not just 1 in "<<".
(scm_string_to_char_set_x): string length var needed to be
scm_sizet, not int.
(scm_string_to_char_set_x): need 1L, not just 1 in "<<".
(scm_char_set_filter): need 1L, not just 1 in "<<".
(scm_char_set_filter_x): need 1L, not just 1 in "<<".
(scm_ucs_range_to_char_set): need 1L, not just 1 in "<<".
(scm_ucs_range_to_char_set_x): need 1L, not just 1 in "<<".
(scm_char_set_adjoin): need 1L, not just 1 in "<<".
(scm_char_set_delete): need 1L, not just 1 in "<<".
(scm_char_set_adjoin_x): need 1L, not just 1 in "<<".
(scm_char_set_delete_x): need 1L, not just 1 in "<<".
2001-09-21 17:48:50 +00:00
Rob Browning
f477475abd * srfi-14.h (SCM_CHARSET_GET): need 1L, not just 1 in "<<". 2001-09-21 17:48:35 +00:00
Gary Houston
6ddd941279 2001-09-12 Gary Houston <ghouston@arglist.com>
* srfi-1.scm (filter): change "caller" to "filter" in check-arg-type.
2001-09-12 19:15:33 +00:00
Dirk Herrmann
8c494e9973 * Removed lots of deprecated stuff. 2001-08-31 14:42:31 +00:00
Thien-Thi Nguyen
f4f1c79032 *** empty log message *** 2001-08-25 19:07:24 +00:00
Thien-Thi Nguyen
f1454a13dc (add-duration): Fix bug: Call `add-duration!' w/ two args.
Thanks to Alex Shinn.
2001-08-25 19:06:09 +00:00
Thien-Thi Nguyen
fa5a8c00ec *** empty log message *** 2001-08-25 19:05:07 +00:00
Thien-Thi Nguyen
afb47f6d45 (add-duration): Fix bug: Call `add-duration!' w/ two args.
Thanks to Alex Shinn.
2001-08-25 18:40:11 +00:00
Marius Vollmer
b573e74455 *** empty log message *** 2001-08-25 16:12:28 +00:00
Marius Vollmer
3307df9557 (AUTOMAKE_OPTIONS): Change "foreign" to "gnu". 2001-08-25 16:05:04 +00:00
Thien-Thi Nguyen
dfcbae095d *** empty log message *** 2001-08-24 22:16:40 +00:00
Thien-Thi Nguyen
ad9a257283 (string-for-each-index): New exported proc. 2001-08-24 22:13:26 +00:00
Thien-Thi Nguyen
9a6b38abe1 (scm_string_for_each): Reverse order of first 2 args.
(scm_string_for_each_index): New func.

Thanks to Alex Shinn.
2001-08-24 22:12:45 +00:00
Thien-Thi Nguyen
24205ce1cd (scm_string_map, scm_string_map_x,
scm_string_for_each): Reverse order of first two args.
(scm_string_for_each_index): New proc.

Thanks to Alex Shinn.
2001-08-24 22:10:29 +00:00
Thien-Thi Nguyen
e9313ed7f8 *** empty log message *** 2001-08-24 22:07:20 +00:00
Thien-Thi Nguyen
4cf7528804 (string-for-each-index): New exported proc. 2001-08-24 22:00:45 +00:00
Thien-Thi Nguyen
0f21643339 (scm_string_for_each): Reverse order of first 2 args.
(scm_string_for_each_index): New func.

Thanks to Alex Shinn.
2001-08-24 21:59:50 +00:00
Thien-Thi Nguyen
8c67d05cef (scm_string_map, scm_string_map_x,
scm_string_for_each): Reverse order of first two args.
(scm_string_for_each_index): New proc.

Thanks to Alex Shinn.
2001-08-24 21:57:52 +00:00
Thien-Thi Nguyen
691365f22a *** empty log message *** 2001-08-23 19:09:08 +00:00
Thien-Thi Nguyen
fd8a9f4b35 (string-map): Swapped order of string and proc args to
conform with the srfi.  (Thanks to Alex Shinn.)
2001-08-23 19:02:41 +00:00
Mikael Djurfeldt
80fdeb4e5a * tests/srfi-13.test (string-map): Swapped order of string and
proc args to conform with the srfi.  (Thanks to Alex Shinn.)

* srfi-13.c (string-map): Swapped order of string and proc args to
conform with the srfi.  (Thanks to Alex Shinn.)
2001-08-22 12:00:06 +00:00
Gary Houston
5753f02f67 * srfi-1.scm (check-arg-type, non-negative-integer?): a couple of new
internal definitions.
	(list-tabulate, iota): check for bad arguments that otherwise
	give weird output.
	(filter): check for proper list, to avoid infinite recursion on
	a circular list.
2001-08-05 10:12:37 +00:00
Gary Houston
848458d990 * srfi-1.scm (filter): replaced with a tail-recursive version.
(remove): implement using filter, to make it tail-recursive.
2001-08-04 18:37:08 +00:00
Gary Houston
aaf41af6d5 * srfi-14.c (scm_char_set_diff_plus_intersection): wasn't correctly
accounting for the (char-set-union cs2...) in the spec.  i.e.,
	(char-set-diff+intersection a) -> copy-of-a, empty-set
	and the following are equivalent:
	(char-set-diff+intersection a (char-set #\a) (char-set #\b))
	(char-set-diff+intersection a (char-set #\a #\b))

	(scm_char_set_xor_x): disabled the side-effecting code, since it
	gives inconsistent results to scm_char_set_xor for the case
	(char-set-xor! a a a).

	(scm_char_set_diff_plus_intersection_x): added cs2 argument, since
	two arguments are compulsory in final spec.  also similar changes
	as for scm_char_set_diff_plus_intersection.
	* srfi-14.h (scm_char_set_diff_plus_intersection_x): added cs2.
2001-07-31 21:50:30 +00:00
Gary Houston
9be745030e * srfi-14.c (scm_char_set_diff_plus_intersection): wasn't correctly
accounting for the (char-set-union cs2...) in the spec.  i.e.,
	(char-set-diff+intersection a) -> copy-of-a, empty-set
	and the following are equivalent:
	(char-set-diff+intersection a (char-set #\a) (char-set #\b))
	(char-set-diff+intersection a (char-set #\a #\b))

	(scm_char_set_xor_x): disabled the side-effecting code, since it
	gives inconsistent results to scm_char_set_xor for the case
	(char-set-xor! a a a).

	(scm_char_set_diff_plus_intersection_x): added cs2 argument, since
	two arguments are compulsory in final spec.  also similar changes
	as for scm_char_set_diff_plus_intersection.
	* srfi-14.h (scm_char_set_diff_plus_intersection_x): added cs2.
2001-07-31 21:42:24 +00:00
Gary Houston
3eb5076d65 Reverse the n-ary logxor change. The behaviour is weird in a set
context, but consistent with logxor and scsh.  Maybe it should get
     the benefit of the doubt.
2001-07-22 23:22:07 +00:00
Gary Houston
d95744e986 Reverse the n-ary logxor change. The behaviour is weird in a set
context, but consistent with logxor and scsh.  Maybe it should get
     the benefit of the doubt.
2001-07-22 23:21:03 +00:00
Gary Houston
714dd5fadf (scm_char_set_xor): bug fix: characters should only be included if
they occur in exactly one argument, but were included if they
	occured an odd number of times >= 3, e.g, in (char-set-xor a a a)
	where a is (char-set #\a).  fix it with a "mask" array.
2001-07-22 22:03:47 +00:00
Gary Houston
42b54c05a9 (scm_char_set_xor): bug fix: characters should only be included if
they occur in exactly one argument, but were included if they
	occured an odd number of times >= 3, e.g, in (char-set-xor a a a)
	where a is (char-set #\a).  fix it with a "mask" array.
2001-07-22 22:01:50 +00:00
Gary Houston
a6ec2a3cef * srfi-14.c (scm_char_set_intersection, scm_char_set_xor): remove
the compulsory cs1 arguments: all args are optional in final spec.
	* srfi-14.h: declarations updated.
2001-07-22 20:19:12 +00:00