Marius Vollmer [Fri, 22 Oct 2004 15:13:12 +0000 (15:13 +0000)]
* variable.c, threads.c, struct.c, stackchk.c, smob.c, root.c,
print.c, ports.c, mallocs.c, hooks.c, hashtab.c, fports.c,
guardians.c, filesys.c, coop-pthreads.c, continuations.c: Use
scm_uintprint to print unsigned integers, raw heap words, and
adresses, using a cast to scm_t_bits to turn pointers into
integers.
Marius Vollmer [Fri, 22 Oct 2004 15:11:39 +0000 (15:11 +0000)]
Include "libguile/print.h".
Marius Vollmer [Fri, 22 Oct 2004 13:58:43 +0000 (13:58 +0000)]
*** empty log message ***
Marius Vollmer [Fri, 22 Oct 2004 13:58:34 +0000 (13:58 +0000)]
(print_int64, print_uint64): Removed. (uvec_print): Use scm_intprint
for signed elemets and scm_uintprint for unsigned ones. Do not use
print_int64 and print_uint64 since scm_intprint and scm_Uintprint can
handle 64 bits now.
Marius Vollmer [Fri, 22 Oct 2004 13:52:22 +0000 (13:52 +0000)]
*** empty log message ***
Marius Vollmer [Fri, 22 Oct 2004 13:52:09 +0000 (13:52 +0000)]
(scm_uintprint): New, for printing scm_t_uintmax values.
(scm_intprint): Argument type changed to scm_t_intmax.
Marius Vollmer [Fri, 22 Oct 2004 13:50:39 +0000 (13:50 +0000)]
(SCM_T_INTBUFLEN): Increased to cover
scm_t_intmax values.
(scm_uint2str): New, for scm_t_uintmax.
(scm_iint2str): Argument type changed to scm_t_intmax,
reimplemented in terms of scm_uint2str.
Marius Vollmer [Fri, 22 Oct 2004 13:17:44 +0000 (13:17 +0000)]
*** empty log message ***
Marius Vollmer [Fri, 22 Oct 2004 13:17:04 +0000 (13:17 +0000)]
(quicksort, scm_merge, scm_merge_list_x,
scm_merge_list_step, scm_merge_vector_step): Inserted SCM_TICKs at
strategic places so that the loops can be interrupted.
Marius Vollmer [Fri, 22 Oct 2004 13:04:09 +0000 (13:04 +0000)]
*** empty log message ***
Marius Vollmer [Fri, 22 Oct 2004 13:01:59 +0000 (13:01 +0000)]
* Makefile.am (INCLUDES): Use @LTDLINC@ instead of
"-I$(top_srcdir)/libguile-ltdl".
(libguile_la_LIBADD): Use @LIBLTDL@ instead of
"../libguile-ltdl/libguile-ltdl.a".
* guile.c, dynl.c: Switched to using libltdl directly. Replaced
all references to scm_lt_* with just lt_*. Include <ltdl.h>
instead of <libguile-ltdl.h>.
Marius Vollmer [Fri, 22 Oct 2004 13:01:32 +0000 (13:01 +0000)]
* configure.in: Call AC_LIBLTDL_INSTALLABLE instead of
AC_LIB_LTDL.
(AC_CONFIG_SUBDIRS): Added libltdl.
(DLPREOPEN, LTDLINC, LIBLTDL): Moved AC_SUBST near other libtool
stuff. Also subst LTDLINC instead of INCLTDL.
(AC_CONFIG_FILES): Removed libguile-ltdl/Makefile and
libguile-ltdl/upstream/Makefile.
* Makefile.am (SUBDIRS): Replaced libguile-ltdl with libltdl.
Marius Vollmer [Tue, 19 Oct 2004 22:51:02 +0000 (22:51 +0000)]
*** empty log message ***
Marius Vollmer [Tue, 19 Oct 2004 22:49:51 +0000 (22:49 +0000)]
(quicksort): Copy pivot out of the array while constructing the
partitions; it could get overwritten otherwise. Because of the
ultimate insertion sort, this bug did not cause quicksort to fail, it
just put all the burdon on the insertion sort and was thus very slow.
Thanks to Rolan Orre for reporting the slowness!
Marius Vollmer [Tue, 19 Oct 2004 16:02:11 +0000 (16:02 +0000)]
*** empty log message ***
Marius Vollmer [Tue, 19 Oct 2004 15:59:56 +0000 (15:59 +0000)]
* numbers.c (scm_i_range_error): New.
* conv-integer.i.c, conv-uinteger.i.c: Use it instead of
scm_out_of_range.
Marius Vollmer [Tue, 19 Oct 2004 15:58:49 +0000 (15:58 +0000)]
(scm_restricted_vector_sort_x): Validate startpos <= endpos. State
inclusiveness/exclusiveness if bounds in docstring.
Marius Vollmer [Tue, 19 Oct 2004 15:57:18 +0000 (15:57 +0000)]
(scm_array_p): When no prototype is given, explicitely test for
allowable types, do not simply return true. Thanks to Roland Orre for
reporting this!
Marius Vollmer [Tue, 19 Oct 2004 13:55:18 +0000 (13:55 +0000)]
*** empty log message ***
Marius Vollmer [Tue, 19 Oct 2004 13:55:06 +0000 (13:55 +0000)]
(smob mark function): List admissible functions
to call.
Marius Vollmer [Tue, 19 Oct 2004 13:53:17 +0000 (13:53 +0000)]
(SCM_DEFAULT_MAX_SEGMENT_SIZE): Increase to 20 Mib.
Marius Vollmer [Tue, 19 Oct 2004 13:51:22 +0000 (13:51 +0000)]
(scm_i_get_new_heap_segment): Limit size of new
segment to scm_max_segment_size.
Marius Vollmer [Mon, 18 Oct 2004 15:26:50 +0000 (15:26 +0000)]
*** empty log message ***
Marius Vollmer [Mon, 18 Oct 2004 15:26:41 +0000 (15:26 +0000)]
(format:obj->str): Simplified considerably by using
object->string or display instead of implementing our own printer.
Handle format:read-proof here. Unreadable objects are recognized
by their "#<" prefix instead of by being unknown to the custom
printer (which would treat keywords as unprintable, for example).
(format:iobj->str): Removed.
Han-Wen Nienhuys [Fri, 8 Oct 2004 10:22:26 +0000 (10:22 +0000)]
remove display-separated.
(build-link): cleanup.
(build-compile): remove space between -I and path.
Han-Wen Nienhuys [Fri, 8 Oct 2004 10:03:14 +0000 (10:03 +0000)]
remove display-separated.
(build-link): cleanup.
(build-compile): remove space between -I and path.
Han-Wen Nienhuys [Fri, 8 Oct 2004 09:46:23 +0000 (09:46 +0000)]
remove display-separated.
(build-link): cleanup.
(build-compile): remove space between -I and path.
Han-Wen Nienhuys [Thu, 7 Oct 2004 23:42:41 +0000 (23:42 +0000)]
(scm_igc): put scm_gc_running-- before running hooks.
Han-Wen Nienhuys [Thu, 7 Oct 2004 22:52:22 +0000 (22:52 +0000)]
(scm_double_cell): abort if GC running.
(scm_cell): idem.
Marius Vollmer [Mon, 4 Oct 2004 18:54:43 +0000 (18:54 +0000)]
*** empty log message ***
Marius Vollmer [Mon, 4 Oct 2004 18:54:32 +0000 (18:54 +0000)]
Synced from libguile/
Marius Vollmer [Mon, 4 Oct 2004 18:54:18 +0000 (18:54 +0000)]
* api-data.texi: Removed primitive keyword section, updated
keyword docs.
* api-undocumented.texi: Moved keyword dash-symbol docs here.
Marius Vollmer [Mon, 4 Oct 2004 18:52:35 +0000 (18:52 +0000)]
(scm_wrong_type_arg): Do not talk about "argument" for
pos == 0.
Marius Vollmer [Mon, 4 Oct 2004 18:07:12 +0000 (18:07 +0000)]
*** empty log message ***
Marius Vollmer [Mon, 4 Oct 2004 18:03:18 +0000 (18:03 +0000)]
(scm_lreadr): Simply do (symbol->keyword (read)) after
reading '#:' or ':'. See NEWS for consequences.
Marius Vollmer [Mon, 4 Oct 2004 18:00:53 +0000 (18:00 +0000)]
Include discouraged.h and keywords.h. Fixed silly typo.
Marius Vollmer [Mon, 4 Oct 2004 17:59:20 +0000 (17:59 +0000)]
* keywords.c (scm_symbol_to_keyword): Use SCM_ASSERT_TYPE for a
better error message.
Marius Vollmer [Mon, 4 Oct 2004 17:58:40 +0000 (17:58 +0000)]
(SCM_KEYWORD, SCM_GLOBAL_KEYWORD): Use scm_from_locale_keyword instead
of scm_c_make_keyword.
Marius Vollmer [Mon, 4 Oct 2004 17:57:39 +0000 (17:57 +0000)]
(symbol->keyword, keyword->symbol): Removed, they are
now implemented in C.
Marius Vollmer [Mon, 4 Oct 2004 17:02:53 +0000 (17:02 +0000)]
Replaced SCM_KEYWORDP with scm_is_keyword.
Marius Vollmer [Mon, 4 Oct 2004 17:02:01 +0000 (17:02 +0000)]
* keywords.h, keywords.c, deprecated.h, deprecated.c
(SCM_KEYWORDP, SCM_KEYWORDSYM): Deprecated and implemented in
terms of scm_is_keyword and scm_keyword_dash_symbol.
* keywords.h, keywords.c, discouraged.h, discouraged.c
(scm_make_keyword_from_dash_symbol, scm_keyword_dash_symbol,
scm_c_make_keyword): Discouraged.
* keywords.h, keywords.c (scm_symbol_to_keyword,
scm_keyword_to_symbol): Implemented in C.
(scm_is_keyword, scm_from_locale_keyword,
scm_from_locale_keywordn): New.
Dirk Herrmann [Sun, 3 Oct 2004 06:15:22 +0000 (06:15 +0000)]
* tests/syntax.test: Added tests for unmemoization.
Marius Vollmer [Thu, 30 Sep 2004 11:59:36 +0000 (11:59 +0000)]
*** empty log message ***
Marius Vollmer [Thu, 30 Sep 2004 11:58:26 +0000 (11:58 +0000)]
(string-set!): Explicitely construct read-only string. String
literals are not yet read-only.
Marius Vollmer [Wed, 29 Sep 2004 18:13:40 +0000 (18:13 +0000)]
Added section about highlighting in backtraces.
Marius Vollmer [Wed, 29 Sep 2004 18:07:38 +0000 (18:07 +0000)]
*** empty log message ***
Marius Vollmer [Wed, 29 Sep 2004 18:01:36 +0000 (18:01 +0000)]
(scm_lreadr): Revert change from 2004-09-22: string literals are now
read-write again (until SCM_STRING_CHARS is removed).
Marius Vollmer [Wed, 29 Sep 2004 17:59:32 +0000 (17:59 +0000)]
Removed section about string literals being read-only.
Marius Vollmer [Wed, 29 Sep 2004 17:58:39 +0000 (17:58 +0000)]
(SCM_STRING_CHARS): Explicitely reject read-only strings with an error
message that blames SCM_STRING_CHARS.
Marius Vollmer [Wed, 29 Sep 2004 17:53:40 +0000 (17:53 +0000)]
(SCM_PRINT_HIGHLIGHT_PREFIX,
SCM_PRINT_HIGHLIGHT_SUFFIX): New printer options.
(scm_iprin1): Use them instead of the previoulsy hardcoded
strings.
(scm_init_print): Initialize them.
Marius Vollmer [Wed, 29 Sep 2004 17:52:10 +0000 (17:52 +0000)]
(change_option_setting): Use scm_car instead of explicit type check
plus SCM_CAR.
Marius Vollmer [Wed, 29 Sep 2004 17:40:11 +0000 (17:40 +0000)]
(display_frame_expr): Do not remove control characters from the final
string. Print it directly using scm_display.
Marius Vollmer [Wed, 29 Sep 2004 15:50:24 +0000 (15:50 +0000)]
*** empty log message ***
Marius Vollmer [Wed, 29 Sep 2004 15:49:38 +0000 (15:49 +0000)]
(array-equal?): New test.
Marius Vollmer [Wed, 29 Sep 2004 15:48:21 +0000 (15:48 +0000)]
(scm_array_equal_p): Include scm_tc7_svect in switch. Thanks to
Roland Orre!
Kevin Ryde [Tue, 28 Sep 2004 23:55:54 +0000 (23:55 +0000)]
*** empty log message ***
Kevin Ryde [Tue, 28 Sep 2004 23:53:02 +0000 (23:53 +0000)]
(match:string): New tests.
Kevin Ryde [Tue, 28 Sep 2004 23:50:21 +0000 (23:50 +0000)]
(scm_regexp_exec): Correction to last change, should
be whole original string in match struct, not offsetted substring.
Marius Vollmer [Tue, 28 Sep 2004 19:57:59 +0000 (19:57 +0000)]
*** empty log message ***
Marius Vollmer [Tue, 28 Sep 2004 19:57:16 +0000 (19:57 +0000)]
New file.
Marius Vollmer [Tue, 28 Sep 2004 19:40:32 +0000 (19:40 +0000)]
*** empty log message ***
Marius Vollmer [Tue, 28 Sep 2004 19:39:00 +0000 (19:39 +0000)]
Do use AM_GNU_GETTEXT, since gettextize is not run
with autoconf 2.59.
Marius Vollmer [Tue, 28 Sep 2004 19:35:09 +0000 (19:35 +0000)]
Fixed some typos.
Marius Vollmer [Tue, 28 Sep 2004 19:33:40 +0000 (19:33 +0000)]
New version, from automake 1.9.
Kevin Ryde [Sat, 25 Sep 2004 22:36:34 +0000 (22:36 +0000)]
*** empty log message ***
Kevin Ryde [Sat, 25 Sep 2004 22:35:59 +0000 (22:35 +0000)]
(Streams): New section.
Kevin Ryde [Sat, 25 Sep 2004 22:33:29 +0000 (22:33 +0000)]
(Block Comments): More cindex entries.
Kevin Ryde [Sat, 25 Sep 2004 22:32:24 +0000 (22:32 +0000)]
(Conversion to/from C): Braces {} around char* return.
Kevin Ryde [Sat, 25 Sep 2004 22:29:20 +0000 (22:29 +0000)]
(Streams): New section.
Kevin Ryde [Sat, 25 Sep 2004 22:09:03 +0000 (22:09 +0000)]
*** empty log message ***
Kevin Ryde [Sat, 25 Sep 2004 22:08:32 +0000 (22:08 +0000)]
(let-keywords, let-keywords*, let-optional,
let-optional*): Add tests of internal defines when no bindings.
Kevin Ryde [Sat, 25 Sep 2004 22:06:01 +0000 (22:06 +0000)]
(let-optional-template, let-keywords-template): Change
"(begin body)" to "(let () body)" for empty bindings, since the former
allows "internal defines" in body leak out to the surrounding
environment.
Marius Vollmer [Sat, 25 Sep 2004 01:02:09 +0000 (01:02 +0000)]
*** empty log message ***
Marius Vollmer [Sat, 25 Sep 2004 01:01:42 +0000 (01:01 +0000)]
Do not use AM_GNU_GETTEXT for now, it causes gettextize to run during
autogen.sh, which we do not want. Explicitely check for libintl,
gettext, bindtextdomain, and textdomain instead.
Marius Vollmer [Sat, 25 Sep 2004 00:09:58 +0000 (00:09 +0000)]
*** empty log message ***
Marius Vollmer [Sat, 25 Sep 2004 00:09:45 +0000 (00:09 +0000)]
(AM_LDFLAGS, LD_FLAGS): Use AM_LDFLAGS
instead of LDFLAGS; the latter is a user variable.
Marius Vollmer [Fri, 24 Sep 2004 23:11:20 +0000 (23:11 +0000)]
*** empty log message ***
Marius Vollmer [Fri, 24 Sep 2004 23:11:09 +0000 (23:11 +0000)]
More words abot what a free function is allowed to do.
Han-Wen Nienhuys [Fri, 24 Sep 2004 09:23:44 +0000 (09:23 +0000)]
(scm_gc_unprotect_object): abort if called during GC.
Marius Vollmer [Fri, 24 Sep 2004 02:12:50 +0000 (02:12 +0000)]
*** empty log message ***
Marius Vollmer [Fri, 24 Sep 2004 02:12:09 +0000 (02:12 +0000)]
* Makefile.am (EXTRA_DIST): Added gettext.h.
Marius Vollmer [Fri, 24 Sep 2004 02:11:03 +0000 (02:11 +0000)]
Updated from manual.
Marius Vollmer [Fri, 24 Sep 2004 02:10:38 +0000 (02:10 +0000)]
Updated output of example.
Marius Vollmer [Fri, 24 Sep 2004 02:07:41 +0000 (02:07 +0000)]
Bugfix in example code, use SCM_NEWSMOB
correctly. Use scm_assert_smob_type instead of SCM_ASSERT
baroqueness.
Marius Vollmer [Fri, 24 Sep 2004 02:06:01 +0000 (02:06 +0000)]
Added scm_assert_smob_type docs.
Marius Vollmer [Fri, 24 Sep 2004 02:05:18 +0000 (02:05 +0000)]
Include <gmp.h> outside of extern "C" block. (Note that numbers.h
still includes gmp.h to make it self-contained.)
Marius Vollmer [Fri, 24 Sep 2004 01:50:55 +0000 (01:50 +0000)]
(GUILE_LIBS): fixed typo.
Marius Vollmer [Fri, 24 Sep 2004 01:46:59 +0000 (01:46 +0000)]
*** empty log message ***
Marius Vollmer [Fri, 24 Sep 2004 01:46:09 +0000 (01:46 +0000)]
(scm_assert_smob_type): New.
Marius Vollmer [Fri, 24 Sep 2004 01:30:38 +0000 (01:30 +0000)]
*** empty log message ***
Marius Vollmer [Fri, 24 Sep 2004 01:30:23 +0000 (01:30 +0000)]
(test_cflags, LDFLAGS): Include
GUILE_CFLAGS.
Marius Vollmer [Fri, 24 Sep 2004 01:27:48 +0000 (01:27 +0000)]
(guile_CFLAGS, guile_LDFLAGS, libguile_la_CFLAGS, ):
Include GUILE_CFLAGS.
(libguile_la_LIBADD): Removed THREAD_LIBS_LOCAL, which is unused
now.
(libpath.h): Put GUILE_CFLAGS in the build-info.
Marius Vollmer [Fri, 24 Sep 2004 01:24:33 +0000 (01:24 +0000)]
*** empty log message ***
Marius Vollmer [Fri, 24 Sep 2004 01:24:00 +0000 (01:24 +0000)]
Do not include PTHREAD_CFLAGS in CFLAGS, CFLAGS is
for the user and is often overwritten temporarily.
(GUILE_CFLAGS): New, include PTHREAD_CFLAGS here.
(GUILE_LIBS): Remove THREAD_LIBS_INSTALLED, which is unused now.
Marius Vollmer [Fri, 24 Sep 2004 01:19:16 +0000 (01:19 +0000)]
*** empty log message ***
Marius Vollmer [Fri, 24 Sep 2004 01:19:05 +0000 (01:19 +0000)]
(build-link, build-compile): Include CFLAGS in output. This is needed
to get "-pthread" into the builds, for example.
Marius Vollmer [Fri, 24 Sep 2004 01:17:06 +0000 (01:17 +0000)]
(EXTRA_DIST): Removed qthreads.m4.
Marius Vollmer [Thu, 23 Sep 2004 23:09:03 +0000 (23:09 +0000)]
Synched docstrings from libguile/
Marius Vollmer [Thu, 23 Sep 2004 18:51:10 +0000 (18:51 +0000)]
Mention gettext.
Marius Vollmer [Thu, 23 Sep 2004 18:47:04 +0000 (18:47 +0000)]
*** empty log message ***