Ludovic Courtès
074f69cdf2
Merge branch 'master' into boehm-demers-weiser-gc
...
Conflicts:
libguile/Makefile.am
libguile/threads.c
2008-10-11 19:25:54 +02:00
Ludovic Courtès
1ffa692322
Add test case to make sure `read' returns mutable strings.
...
* test-suite/tests/reader.test ("reading")["returned strings are
mutable"]: New test, as reported by szgyg <szgyg@ludens.elte.hu>.
2008-10-09 22:32:16 +02:00
Ludovic Courtès
45a9f43049
Revert "Make literal strings (i.e., returned by `read') read-only."
...
This reverts commit fb2f8886c4
.
The rationale is that `read' must return mutable strings, as reported
by szgyg <szgyg@ludens.elte.hu>.
2008-10-09 22:21:33 +02:00
Han-Wen Nienhuys
89bc270db3
Remove GH and its traces.
2008-09-28 18:42:02 -03:00
Ludovic Courtès
76ed3e877f
Enclose `regexp.test' in a module.
...
* test-suite/tests/regexp.test: Add `define-module' clause.
2008-09-25 21:36:14 +02:00
Ludovic Courtès
c633310265
Fix handling of the FLAGS argument in `fold-matches'.
...
* ice-9/regex.scm (fold-matches): If FLAGS is non-null, use
`(car flags)', not `flags'.
* test-suite/tests/regexp.test ("fold-matches"): New test prefix.
* NEWS: Update.
2008-09-25 21:07:06 +02:00
Ludovic Courtès
b66a552487
Merge branch 'master' into boehm-demers-weiser-gc
2008-09-23 19:01:01 +02:00
Ludovic Courtès
fb2f8886c4
Make literal strings (i.e., returned by `read') read-only.
...
* libguile/read.c (scm_read_string): Use `scm_i_make_read_only_string ()' to
return a read-only string, as mandated by R5RS. Reported by Bill
Schottstaedt <bil@ccrma.Stanford.EDU>.
* libguile/strings.c (scm_i_make_read_only_string): New function.
(scm_i_shared_substring_read_only): Special-case the empty string
so that the read-only and read-write empty strings are `eq?'. This
optimization is relied on by the `substring/shared' `empty string'
test case in `srfi-13.test'.
* libguile/strings.h (scm_i_make_read_only_string): New declaration.
* test-suite/tests/strings.test ("string-set!")["literal string"]: New test.
* NEWS: Update.
2008-09-23 18:45:27 +02:00
Ludovic Courtès
fd2b17b9cb
Make `symbol->string' return a read-only string.
...
* libguile/strings.c (scm_i_symbol_substring): Return a read-only string
since R5RS requires `symbol->string' to return a read-only string.
Reported by Bill Schottstaedt <bil@ccrma.Stanford.EDU>.
* test-suite/tests/symbols.test: Add `define-module' clause.
(exception:immutable-string): Adjust to current exception.
("symbol->string")["result is an immutable string"]: Use
`pass-if-exception' instead of `expect-fail-exception'.
* NEWS: Update.
2008-09-23 18:44:27 +02:00
Neil Jerram
1dd797921c
Fix for incorrect (gcd -2) => -2; should give 2.
...
(reported by Bill Schottstaedt)
* libguile/numbers.c (scm_gcd): When only one arg given, use scm_abs
to ensure that result is non-negative.
* test-suite/tests/numbers.test ("gcd"): New test, (gcd -2).
2008-09-22 21:21:20 +01:00
Ludovic Courtès
44e268898b
Merge branch 'master' into boehm-demers-weiser-gc
...
Conflicts:
lib/Makefile.am
libguile/gc-card.c
libguile/gc-freelist.c
libguile/gc-mark.c
libguile/gc-segment.c
libguile/gc.c
libguile/gc.h
libguile/gc_os_dep.c
libguile/private-gc.h
m4/.cvsignore
m4/gnulib-cache.m4
m4/gnulib-comp.m4
2008-09-13 22:51:27 +02:00
Ludovic Courtès
3394818c0a
Include <config.h> in standalone tests.
...
* test-suite/standalone/Makefile.am (test_cflags): Add `-I$(top_builddir)' so
that <config.h> can be found.
(snarfcppopts): Likewise.
* test-suite/standalone/*.c: Include <config.h>.
2008-09-13 20:09:08 +02:00
Ludovic Courtès
61db429e25
Add `ChangeLog-2008' files to the distribution.
2008-09-12 21:57:52 +02:00
Ludovic Courtès
afb59d75b8
Rename ChangeLog' files to
ChangeLog-2008'.
2008-09-12 21:49:58 +02:00
Ludovic Courtès
85ca88c68b
Remove `.cvsignore' files.
2008-09-11 21:28:21 +02:00
Ludovic Courtès
6f03035fe8
Merge branch 'master' into boehm-demers-weiser-gc
...
Conflicts:
libguile/Makefile.am
libguile/coop-defs.h
libguile/gc-card.c
libguile/gc-freelist.c
libguile/gc-malloc.c
libguile/gc-mark.c
libguile/gc-segment.c
libguile/gc.c
libguile/gc.h
libguile/gc_os_dep.c
libguile/hashtab.c
libguile/hashtab.h
libguile/inline.h
libguile/private-gc.h
libguile/struct.c
libguile/struct.h
libguile/threads.c
libguile/threads.h
libguile/vectors.h
libguile/weaks.h
test-suite/tests/gc.test
2008-09-10 23:09:30 +02:00
Ludovic Courtes
328efeb9a6
Document the failure of `gc.test' wrt. unused modules.
...
* test-suite/tests/gc.test (Unused modules are removed): Use guardians
instead of `gc-live-object-stats'. Explain failure (FIXME).
* ice-9/boot-9.scm (make-module): Add `FIXME' about circular reference.
git-archimport-id: lcourtes@laas.fr--2006-libre/guile-core--boehm-gc--0--patch-9
2008-09-10 22:52:21 +02:00
Ludovic Courtès
e0513d4d77
Merge commit ' 2e77f7202b
' into boehm-demers-weiser-gc
...
Conflicts:
libguile/threads.c
2008-09-10 22:51:46 +02:00
Ludovic Courtès
6774820f1e
Merge commit ' 29776e85da
' into boehm-demers-weiser-gc
...
Conflicts:
libguile/gc-card.c
libguile/gc.c
libguile/gc.h
libguile/ports.c
2008-09-10 22:50:04 +02:00
Ludovic Courtès
e9b8556ec9
Merge commit ' 7337d56d57
' into boehm-demers-weiser-gc
...
Conflicts:
libguile/struct.c
2008-09-10 22:44:31 +02:00
Ludovic Courtès
4a4849dbe0
Merge commit ' 0329137392
' into boehm-demers-weiser-gc
...
Conflicts:
libguile/gc.c
libguile/srcprop.c
libguile/srcprop.h
2008-09-10 22:33:40 +02:00
Ludovic Courtès
35a9197ccc
Merge commit ' f30e1bdf97
' into boehm-demers-weiser-gc
...
Conflicts:
libguile/Makefile.am
libguile/coop-pthreads.c
libguile/gc-freelist.c
libguile/gc-segment.c
libguile/gc.c
libguile/private-gc.h
test-suite/tests/environments.nottest
2008-09-10 22:27:30 +02:00
Ludovic Courtes
e13f1cbdff
Fixed `guardians.test' so that it does not use symbols.
...
* test-suite/tests/guardians.test: Use strings instead of symbols for
`g3-garbage' et al.
git-archimport-id: lcourtes@laas.fr--2005-libre/guile-core--boehm-gc--1.9--patch-42
2008-09-10 20:28:03 +02:00
Ludovic Courtès
53f4876abc
Merge branch 'master' into strftime-gnulib
...
Conflicts:
libguile/ChangeLog
srfi/ChangeLog
test-suite/ChangeLog
2008-09-09 22:03:42 +02:00
Ludovic Courtes
080ecf3f7b
Disabled the `environments' unit test.
...
* test-suite/Makefile.am (SCM_TESTS): Removed `tests/environments.test'.
* test-suite/tests/environments.nottest: Disabled.
git-archimport-id: lcourtes@laas.fr--2005-libre/guile-core--boehm-gc--1.9--patch-19
2008-09-05 00:48:47 +02:00
Ludovic Courtès
69f23174d3
Use Gnulib's `strftime' to address bug #24130 .
...
* libguile/stime.c (scm_strftime): Use `nstrftime ()' from Gnulib.
This provides the same semantics on all platforms, thereby fixing
bug #24130 .
* doc/ref/posix.texi (Time): Remove note about non-portable `%Z'
behavior. Describe the new, portable behavior.
* test-suite/tests/time.test ("strftime")["strftime %Z doesn't return
garbage"]: Reinstate.
["C99 %z format"](have-strftime-%z): Remove.
("GMT", "EST+5"): Don't use `have-strftime-%z'.
2008-09-02 21:58:58 +02:00
Julian Graham
d0b6ad3491
Raise error on SRFI-18 load if Guile built without threading support
...
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2008-08-30 21:08:50 +02:00
Ludovic Courtès
70eca63557
Fix builds `--without-threads'.
2008-08-27 23:05:44 +02:00
Ludovic Courtès
582a4997ab
Use $(GCC_CFLAGS) for `-Werror' et al. so that it's not used to compile
...
Gnulib code.
2008-08-25 22:11:53 +02:00
Ludovic Courtès
bfb2e11358
Use $(GCC_CFLAGS) for `-Werror' et al. so that it's not used to compile
...
Gnulib code.
2008-08-25 22:08:45 +02:00
Ludovic Courtès
82d8d6d9e8
Add test case for the GOOPS `class-redefinition' memory corruption.
2008-08-20 00:44:20 +02:00
Ludovic Courtès
8722d99a45
Use `-q' when running standalone tests.
2008-07-06 23:58:38 +02:00
Ludovic Courtès
fcbc08686c
Support systems whose <inttypes.h> doesn't define `PRIiMAX'.
2008-06-02 21:34:57 +02:00
Ludovic Courtès
102dbb6f6c
Add `SCM_INTERNAL' macro, use it.
2008-05-31 23:21:02 +02:00
Julian Graham
b046219e51
Scheme SRFI-18 implementation and tests file
2008-05-24 10:44:09 +01:00
Neil Jerram
241d9cea20
Delete trailing whitespace.
2008-05-15 00:00:57 +01:00
Julian Graham
184af225b8
ChangeLog updates for latest set of SRFI-18 changes
2008-05-14 23:58:50 +01:00
Neil Jerram
74926120a3
Delete trailing whitespace.
2008-05-14 23:52:49 +01:00
Julian Graham
adc085f17c
latest set of SRFI-18 support changes to core threads
2008-05-14 23:33:16 +01:00
Ludovic Courtès
0fb11ae432
Fix type-checking of SRFI-1 `partition'.
2008-04-28 18:03:27 +02:00
Ludovic Courtès
56ae214817
Only run `test-with-guile-module' when pthread support is built.
2008-04-26 21:56:02 +02:00
Ludovic Courtès
816e3edf15
Make (srfi srfi-35)' visible through
cond-expand'.
2008-04-26 21:09:40 +02:00
Ludovic Courtès
189681f55b
Add `(srfi srfi-88)'.
2008-04-26 19:34:37 +02:00
Ludovic Courtès
ef4cbc08c8
Add support for SRFI-88-like postfix keyword read syntax.
2008-04-15 19:52:43 +02:00
Ludovic Courtès
cac3960028
Test the interaction of GOOPS objects with `struct-{ref,set!}'.
2008-04-13 20:41:23 +02:00
Ludovic Courtès
5995c6d801
Fix "#include" directives in stand-alone C tests.
2008-04-07 23:59:36 +02:00
Ludovic Courtès
89e3e0dcea
More `.gitignore'.
2008-04-07 23:48:48 +02:00
Ludovic Courtès
eedcb08a25
Honor $TMPDIR in the test suite.
2008-03-13 14:03:58 +00:00
Ludovic Courtès
62c5382b88
Fix SRFI-37 `args-fold' with short option names of argument-less options.
2008-03-12 17:01:19 +00:00
Neil Jerram
6180e336b2
Core enhancements, by Julian Graham, to Guile's thread, mutex and
...
condvar primitives, in preparation for SRFI-18 support.
2008-03-08 16:22:40 +00:00