Marius Vollmer [Wed, 22 Sep 2004 21:57:30 +0000 (21:57 +0000)]
*** empty log message ***
Marius Vollmer [Wed, 22 Sep 2004 21:54:50 +0000 (21:54 +0000)]
* i18n.c: Handle --disable-nls (thanks Bruno).
* posix.c (scm_init_posix): Add LC_PAPER, LC_NAME, LC_ADDRESS,
LC_TELEPHONE, LC_MEASUREMENT, LC_IDENTIFICATION.
* i18n.c (scm_i_to_lc_category): New name and export. Support all
LC categories.
* posix.c (s_scm_setlocale): Use it.
* i18n.h, i18n.c (scm_textdomain, scm_bindtextdomain,
scm_bind_textdomain_codeset): Make wrappers similar to C function
they wrap.
* i18n.h: New file.
* i18n.c: New file.
* gettext.h: New file, taken from GNU gettext.
* init.c: Include libguile/i18n.h.
(scm_init_guile_1): Add call to scm_init_i18n().
* Makefile.am (libguile_la_SOURCES): Add i18n.c.
(DOT_X_FILES): Add i18n.x.
(DOT_DOC_FILES): Add i18n.doc.
(libguile_la_LDFLAGS): Add @LTLIBINTL@.
(modinclude_HEADERS): Add i18n.h.
Marius Vollmer [Wed, 22 Sep 2004 21:54:30 +0000 (21:54 +0000)]
* i18n.h: New file.
* i18n.c: New file.
* gettext.h: New file, taken from GNU gettext.
* init.c: Include libguile/i18n.h.
(scm_init_guile_1): Add call to scm_init_i18n().
* Makefile.am (libguile_la_SOURCES): Add i18n.c.
(DOT_X_FILES): Add i18n.x.
(DOT_DOC_FILES): Add i18n.doc.
(libguile_la_LDFLAGS): Add @LTLIBINTL@.
(modinclude_HEADERS): Add i18n.h.
Marius Vollmer [Wed, 22 Sep 2004 21:53:46 +0000 (21:53 +0000)]
Refer to scm_string_copy_x as a subst for gh_set_substring.
Marius Vollmer [Wed, 22 Sep 2004 21:53:07 +0000 (21:53 +0000)]
Add AM_GNU_GETTEXT invocation. From Bruno Haible.
Marius Vollmer [Wed, 22 Sep 2004 17:49:30 +0000 (17:49 +0000)]
*** empty log message ***
Marius Vollmer [Wed, 22 Sep 2004 17:48:13 +0000 (17:48 +0000)]
Replaced SCM_CAR, etc with scm_car, etc.
Marius Vollmer [Wed, 22 Sep 2004 17:46:55 +0000 (17:46 +0000)]
Mention scm_car, etc as the replacement for gh_car, etc.
Marius Vollmer [Wed, 22 Sep 2004 17:46:37 +0000 (17:46 +0000)]
Document scm_car, scm_cdr, scm_caar, scm_cadr, etc.
Marius Vollmer [Wed, 22 Sep 2004 17:41:37 +0000 (17:41 +0000)]
*** empty log message ***
Marius Vollmer [Wed, 22 Sep 2004 17:38:44 +0000 (17:38 +0000)]
(scm_eval, scm_apply, call_cxr_1): Use scm_i_chase_pairs
instead of explicit code.
Marius Vollmer [Wed, 22 Sep 2004 17:37:01 +0000 (17:37 +0000)]
* discouraged.h, tags.h (SCM_CONSP, SCM_NCONSP): Moved to
discouraged.h. Replaced all uses with scm_is_pair.
(SCM_I_CONSP): New name for SCM_CONSP.
* pairs.h, pairs.c (scm_is_pair, scm_is_null, scm_car, scm_cdr,
scm_i_chase_pairs, SCM_I_A_PAT, SCM_I_D_PAT, etc, scm_caar,
scm_cadr, etc): New.
(SCM_NULLP, SCM_NNULLP): Moved to discouraged.h. Replaced all
uses with scm_is_null.
Marius Vollmer [Wed, 22 Sep 2004 15:23:20 +0000 (15:23 +0000)]
*** empty log message ***
Marius Vollmer [Wed, 22 Sep 2004 15:21:00 +0000 (15:21 +0000)]
(scm_car, scm_cdr, scm_i_chase_pairs, SCM_I_A_PAT, SCM_I_D_PAT, etc,
scm_caar, scm_cadr, etc): New.
Marius Vollmer [Wed, 22 Sep 2004 15:06:47 +0000 (15:06 +0000)]
*** empty log message ***
Marius Vollmer [Wed, 22 Sep 2004 15:03:17 +0000 (15:03 +0000)]
(scm_string_contains, scm_string_contains_ci): Reworded logic a bit so
that #f is returned immediately when s1 is too short to contain s2.
Marius Vollmer [Wed, 22 Sep 2004 14:59:23 +0000 (14:59 +0000)]
*** empty log message ***
Marius Vollmer [Wed, 22 Sep 2004 14:46:18 +0000 (14:46 +0000)]
Docs for substring/read-only.
Marius Vollmer [Wed, 22 Sep 2004 14:43:50 +0000 (14:43 +0000)]
*** empty log message ***
Marius Vollmer [Wed, 22 Sep 2004 14:33:00 +0000 (14:33 +0000)]
*** empty log message ***
Marius Vollmer [Wed, 22 Sep 2004 14:32:47 +0000 (14:32 +0000)]
* tests/ports.test ("string ports"): Copy string literal so that
it can be modified.
* tests/srfi-13.test ("string-copy!"): Likewise.
* tests/strings.test ("substring/shared"): Likewise.
Marius Vollmer [Wed, 22 Sep 2004 14:25:47 +0000 (14:25 +0000)]
("string ports"): Copy string literal so that it can be modified.
Marius Vollmer [Wed, 22 Sep 2004 14:21:52 +0000 (14:21 +0000)]
(scm_regexp_exec): Convert string to zero-temrinated locale string
before matching against it.
Marius Vollmer [Wed, 22 Sep 2004 13:55:15 +0000 (13:55 +0000)]
(scm_lreadr): use scm_c_substring_read_only for string
literals, thus making them read-only as specified by R5RS.
Marius Vollmer [Wed, 22 Sep 2004 13:54:15 +0000 (13:54 +0000)]
(scm_substring_read_only,
scm_c_substring_read_only, scm_i_substring_read_only): New.
(RO_STRING_TAG, IS_RO_STRING): New.
(scm_i_string_writable_chars): Bail on read-only strings.
Marius Vollmer [Tue, 21 Sep 2004 22:05:51 +0000 (22:05 +0000)]
*** empty log message ***
Marius Vollmer [Tue, 21 Sep 2004 22:05:11 +0000 (22:05 +0000)]
(scm_equal_p): Allow smobs with different flags to be equal by testing
for smobs before insisting on equal SCM_CELL_TYPES.
Marius Vollmer [Tue, 21 Sep 2004 00:44:29 +0000 (00:44 +0000)]
*** empty log message ***
Marius Vollmer [Tue, 21 Sep 2004 00:43:34 +0000 (00:43 +0000)]
docs for scm_to_mpz and scm_from_mpz.
Marius Vollmer [Tue, 21 Sep 2004 00:42:30 +0000 (00:42 +0000)]
Include <gmp.h> in numbers.h, not in
numbers.c.
(scm_to_mpz, scm_from_mpz): New.
Thanks to Andreas Vögele!
Marius Vollmer [Tue, 21 Sep 2004 00:10:02 +0000 (00:10 +0000)]
*** empty log message ***
Marius Vollmer [Tue, 21 Sep 2004 00:09:47 +0000 (00:09 +0000)]
* acinclude.m4 (ACX_PTHREAD): New.
* configure.in: Use it instead of simply looking for -lpthread.
Thanks to Andreas Vögele!
Marius Vollmer [Mon, 20 Sep 2004 23:56:37 +0000 (23:56 +0000)]
*** empty log message ***
Marius Vollmer [Mon, 20 Sep 2004 23:55:38 +0000 (23:55 +0000)]
(skip_scsh_block_comment): Recognize "!#" everywhere, not just on a
line of its own.
Marius Vollmer [Mon, 20 Sep 2004 22:50:31 +0000 (22:50 +0000)]
(scm_string_any, scm_string_every,
scm_string_tabulate, string_upcase_x, string_down_case_x,
string_titlecase_x, string_reverse_x, scm_string_tokenize): Use
size_t instead of int for indices into strings. Make sure that no
over- or underflow occurs. Thanks to Andreas Vögele!
(scm_xsubstring, scm_string_xcopy_x): Use ints for 'extended'
indices, which can also be negative.
Marius Vollmer [Mon, 20 Sep 2004 21:48:18 +0000 (21:48 +0000)]
*** empty log message ***
Marius Vollmer [Mon, 20 Sep 2004 21:47:41 +0000 (21:47 +0000)]
Fixed comment.
Marius Vollmer [Mon, 20 Sep 2004 21:47:09 +0000 (21:47 +0000)]
(SCM_MARK_BACKING_STORE): Removed, it was unused.
Marius Vollmer [Mon, 20 Sep 2004 21:46:07 +0000 (21:46 +0000)]
(scm_threads_mark_stacks): Call SCM_MARK_BACKING_STORE. Also, do not
use stack_len local, it was only used once.
Marius Vollmer [Mon, 20 Sep 2004 21:41:49 +0000 (21:41 +0000)]
*** empty log message ***
Kevin Ryde [Wed, 15 Sep 2004 22:33:13 +0000 (22:33 +0000)]
*** empty log message ***
Kevin Ryde [Wed, 15 Sep 2004 22:30:59 +0000 (22:30 +0000)]
(Equality): Revise for clarity.
Han-Wen Nienhuys [Tue, 14 Sep 2004 21:10:56 +0000 (21:10 +0000)]
2004-09-13 Jan Nieuwenhuizen <janneke@gnu.org>
* srfi-13.c (scm_string_contains, s_scm_string_contains_ci):
Bugfix: when subtracting unsigned values, make sure that result
does not wrap.
Kevin Ryde [Wed, 8 Sep 2004 23:19:23 +0000 (23:19 +0000)]
*** empty log message ***
Kevin Ryde [Wed, 8 Sep 2004 23:16:53 +0000 (23:16 +0000)]
(time-proc): Make result inexact, since format ~f doesn't
support fractions currently.
Kevin Ryde [Wed, 8 Sep 2004 23:14:34 +0000 (23:14 +0000)]
*** empty log message ***
Kevin Ryde [Wed, 8 Sep 2004 23:04:08 +0000 (23:04 +0000)]
*** empty log message ***
Kevin Ryde [Wed, 8 Sep 2004 22:51:08 +0000 (22:51 +0000)]
New file.
Kevin Ryde [Wed, 8 Sep 2004 22:43:10 +0000 (22:43 +0000)]
(stream-for-each-many): Correction, should recurse into
itself, not stream-for-each-one.
Kevin Ryde [Wed, 8 Sep 2004 22:14:59 +0000 (22:14 +0000)]
(_POSIX_C_SOURCE): Use this only on hpux, it
causes too many problems elsewhere (glibc, freebsd, mingw). Reported
by Andreas Vögele.
Marius Vollmer [Wed, 8 Sep 2004 17:15:43 +0000 (17:15 +0000)]
*** empty log message ***
Marius Vollmer [Wed, 8 Sep 2004 17:15:21 +0000 (17:15 +0000)]
(EXTRA_libguile_la_SOURCES): Removed "alloca.c".
Marius Vollmer [Wed, 8 Sep 2004 17:15:13 +0000 (17:15 +0000)]
Fail when alloca can not be found natively.
Marius Vollmer [Wed, 8 Sep 2004 17:01:34 +0000 (17:01 +0000)]
*** empty log message ***
Marius Vollmer [Wed, 8 Sep 2004 17:00:04 +0000 (17:00 +0000)]
Synced from libguile/
Marius Vollmer [Wed, 8 Sep 2004 16:59:49 +0000 (16:59 +0000)]
(integer-expt): Updated from docstring.
Marius Vollmer [Wed, 8 Sep 2004 16:20:21 +0000 (16:20 +0000)]
*** empty log message ***
Marius Vollmer [Wed, 8 Sep 2004 16:19:51 +0000 (16:19 +0000)]
Don't expect (expt 1/2 2.0) to yield an exact result, use (expt 1/2 2)
instead.
Marius Vollmer [Wed, 8 Sep 2004 16:18:29 +0000 (16:18 +0000)]
(scripts_sources): Added snarf-guile-m4-docs.
Marius Vollmer [Wed, 8 Sep 2004 16:17:55 +0000 (16:17 +0000)]
(CLEANFILES, MAINTAINERCLEANFILES): Moved autoconf-macros.texi to
MAINTAINERCLEANFILES. It is in the tarball and we shouldn't clean it,
then.
Marius Vollmer [Wed, 8 Sep 2004 14:36:16 +0000 (14:36 +0000)]
*** empty log message ***
Marius Vollmer [Wed, 8 Sep 2004 14:34:51 +0000 (14:34 +0000)]
(expt): Only call integer-expt for an exact integer exponent, not for
an inexact integer one. Also, let integer-expt handle negative
exponents instead of doing it here.
Marius Vollmer [Wed, 8 Sep 2004 14:32:47 +0000 (14:32 +0000)]
(real_eqv): Pretend that all NaNs are equal.
Marius Vollmer [Wed, 8 Sep 2004 14:09:01 +0000 (14:09 +0000)]
(scm_integer_expt): Do not accept inexact integers.
Marius Vollmer [Wed, 8 Sep 2004 10:37:38 +0000 (10:37 +0000)]
*** empty log message ***
Kevin Ryde [Wed, 8 Sep 2004 01:23:35 +0000 (01:23 +0000)]
*** empty log message ***
Kevin Ryde [Wed, 8 Sep 2004 01:22:37 +0000 (01:22 +0000)]
Correction to:
(integer?): Exercise nan and +/-inf.
+/-inf should be #t.
Kevin Ryde [Wed, 8 Sep 2004 01:20:52 +0000 (01:20 +0000)]
(port-column): Further tests, of new \a \b \r.
Kevin Ryde [Wed, 8 Sep 2004 01:03:06 +0000 (01:03 +0000)]
Revert this:
(scm_integer_p): +/-inf is not an integer.
Marius Vollmer [Tue, 7 Sep 2004 13:48:49 +0000 (13:48 +0000)]
(scm_string_trim_right, scm_string_xcopy_x): Correctly use size_t for
some locals instead of int.
Marius Vollmer [Tue, 7 Sep 2004 09:19:24 +0000 (09:19 +0000)]
*** empty log message ***
Marius Vollmer [Tue, 7 Sep 2004 09:18:59 +0000 (09:18 +0000)]
(scm_flush_ws): Detect "#!"-style comments here.
(scm_lreadr): Abort on seeing "#!", which should no longer happen.
(skip_scsh_block_comment): Use scm_input_error instead of
scm_misc_error in case of EOF.
Kevin Ryde [Tue, 7 Sep 2004 01:06:20 +0000 (01:06 +0000)]
*** empty log message ***
Kevin Ryde [Tue, 7 Sep 2004 01:02:12 +0000 (01:02 +0000)]
(System Identification): Remove software-type, it doesn't
exist in the guile core.
Kevin Ryde [Tue, 7 Sep 2004 01:00:25 +0000 (01:00 +0000)]
(SRFI-10): Revise and expand.
Kevin Ryde [Tue, 7 Sep 2004 00:36:48 +0000 (00:36 +0000)]
*** empty log message ***
Kevin Ryde [Tue, 7 Sep 2004 00:33:33 +0000 (00:33 +0000)]
(Parallel Forms): In parallel, letpar, par-map,
n-par-map and n-for-each-par-map, describe each form as being in its
own thread, not a new thread, since for instance the calling thread is
used when only one form. Plus typo in n-for-each-par-map example
equivalent for-each + n-par-map.
Kevin Ryde [Tue, 7 Sep 2004 00:30:44 +0000 (00:30 +0000)]
(Locales): Use @var for category arg.
Kevin Ryde [Tue, 7 Sep 2004 00:28:54 +0000 (00:28 +0000)]
*** empty log message ***
Kevin Ryde [Tue, 7 Sep 2004 00:28:14 +0000 (00:28 +0000)]
(let-keywords Reference): Typo, should be let-keywords* @deffnx.
Kevin Ryde [Tue, 7 Sep 2004 00:26:48 +0000 (00:26 +0000)]
(scm_access): Update docstring per manual.
Kevin Ryde [Tue, 7 Sep 2004 00:23:39 +0000 (00:23 +0000)]
(SCM_ZEROCOL, SCM_DECCOL): New macros.
Kevin Ryde [Tue, 7 Sep 2004 00:22:19 +0000 (00:22 +0000)]
(scm_getc, scm_lfwrite): Recognise \a \b and \r for port column.
Kevin Ryde [Tue, 7 Sep 2004 00:20:37 +0000 (00:20 +0000)]
(integer-expt): New tests, of infinite exponents.
(integer?): Exercise nan and +/-inf.
Kevin Ryde [Tue, 7 Sep 2004 00:17:49 +0000 (00:17 +0000)]
(gmtime, strptime): New tests, but unresolved.
(internal-time-units-per-second): New test.
Kevin Ryde [Tue, 7 Sep 2004 00:15:48 +0000 (00:15 +0000)]
(scm_current_time, scm_gettimeofday, scm_strptime): Don't
throw error before unlocking mutex with SCM_ALLOW_INTS.
Kevin Ryde [Tue, 7 Sep 2004 00:12:45 +0000 (00:12 +0000)]
(scm_integer_expt): Reject exponent +/-inf.
(scm_integer_p): +/-inf is not an integer.
Bug report by Bill Schottstaedt.
Kevin Ryde [Tue, 7 Sep 2004 00:06:18 +0000 (00:06 +0000)]
(scm_nice): Correction to error detection. Reported by
Matthias Koeppe.
Kevin Ryde [Mon, 6 Sep 2004 01:47:50 +0000 (01:47 +0000)]
*** empty log message ***
Kevin Ryde [Mon, 6 Sep 2004 01:29:04 +0000 (01:29 +0000)]
(SCM_TIME_UNITS_PER_SECOND): Use sysconf(_SC_CLK_TCK) when
available. This also gets around CLK_TCK being absent when
_GNU_SOURCE and _POSIX_C_SOURCE are defined in stime.c.
Stefan Jahn [Fri, 3 Sep 2004 19:45:37 +0000 (19:45 +0000)]
2004-09-03 Stefan Jahn <stefan@lkcc.org>
* 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.
Kevin Ryde [Thu, 2 Sep 2004 00:13:20 +0000 (00:13 +0000)]
*** empty log message ***
Kevin Ryde [Thu, 2 Sep 2004 00:12:44 +0000 (00:12 +0000)]
(Formatted Output): Excess arguments are ignored.
In ~*, correction N parameter cannot be negative. In ~t, note
port-column used.
Kevin Ryde [Wed, 1 Sep 2004 23:49:01 +0000 (23:49 +0000)]
*** empty log message ***
Kevin Ryde [Wed, 1 Sep 2004 23:36:47 +0000 (23:36 +0000)]
New tests of excess arguments now ignored.
Kevin Ryde [Wed, 1 Sep 2004 23:33:16 +0000 (23:33 +0000)]
(format:out): Ignore excess arguments, per common lisp.
Kevin Ryde [Wed, 1 Sep 2004 23:17:11 +0000 (23:17 +0000)]
(format:out-num-padded): Print "+" on 0 under @ modifier.
Kevin Ryde [Wed, 1 Sep 2004 23:10:23 +0000 (23:10 +0000)]
Oops, didn't mean to put ~t yet.
Kevin Ryde [Wed, 1 Sep 2004 23:05:19 +0000 (23:05 +0000)]
*** empty log message ***
Kevin Ryde [Wed, 1 Sep 2004 22:54:28 +0000 (22:54 +0000)]
(~@d): New tests.