1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-08 22:50:27 +02:00
Commit graph

4799 commits

Author SHA1 Message Date
Marius Vollmer
a406c9e946 (scm_uintprint): New, for printing scm_t_uintmax values.
(scm_intprint): Argument type changed to scm_t_intmax.
2004-10-22 13:52:09 +00:00
Marius Vollmer
2881e77b5a (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.
2004-10-22 13:50:39 +00:00
Marius Vollmer
77c2594f2f *** empty log message *** 2004-10-22 13:17:44 +00:00
Marius Vollmer
ee1ac75beb (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.
2004-10-22 13:17:04 +00:00
Marius Vollmer
6191ccecf1 *** empty log message *** 2004-10-22 13:04:09 +00:00
Marius Vollmer
a8255dca08 * 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>.
2004-10-22 13:01:59 +00:00
Marius Vollmer
77600f3e11 *** empty log message *** 2004-10-19 22:51:02 +00:00
Marius Vollmer
14e9281bb3 (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!
2004-10-19 22:49:51 +00:00
Marius Vollmer
192cd79259 *** empty log message *** 2004-10-19 16:02:11 +00:00
Marius Vollmer
1713d319b7 * numbers.c (scm_i_range_error): New.
* conv-integer.i.c, conv-uinteger.i.c: Use it instead of
scm_out_of_range.
2004-10-19 15:59:56 +00:00
Marius Vollmer
3bdf7962a7 (scm_restricted_vector_sort_x): Validate startpos <= endpos. State
inclusiveness/exclusiveness if bounds in docstring.
2004-10-19 15:58:49 +00:00
Marius Vollmer
9b0018a113 (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!
2004-10-19 15:57:18 +00:00
Marius Vollmer
5000379b92 *** empty log message *** 2004-10-19 13:55:18 +00:00
Marius Vollmer
322a2bf7a0 (SCM_DEFAULT_MAX_SEGMENT_SIZE): Increase to 20 Mib. 2004-10-19 13:53:17 +00:00
Marius Vollmer
c17b358f48 (scm_i_get_new_heap_segment): Limit size of new
segment to scm_max_segment_size.
2004-10-19 13:51:22 +00:00
Han-Wen Nienhuys
07b99edbe8 (scm_igc): put scm_gc_running-- before running hooks. 2004-10-07 23:42:41 +00:00
Han-Wen Nienhuys
497eb0b725 (scm_double_cell): abort if GC running.
(scm_cell): idem.
2004-10-07 22:52:22 +00:00
Marius Vollmer
83e1ab6ddf (scm_wrong_type_arg): Do not talk about "argument" for
pos == 0.
2004-10-04 18:52:35 +00:00
Marius Vollmer
aef0bdb420 *** empty log message *** 2004-10-04 18:07:12 +00:00
Marius Vollmer
f13b4400d3 (scm_lreadr): Simply do (symbol->keyword (read)) after
reading '#:' or ':'.  See NEWS for consequences.
2004-10-04 18:03:18 +00:00
Marius Vollmer
db74ed0306 Include discouraged.h and keywords.h. Fixed silly typo. 2004-10-04 18:00:53 +00:00
Marius Vollmer
d7212289db * keywords.c (scm_symbol_to_keyword): Use SCM_ASSERT_TYPE for a
better error message.
2004-10-04 17:59:20 +00:00
Marius Vollmer
ee4140fb99 (SCM_KEYWORD, SCM_GLOBAL_KEYWORD): Use scm_from_locale_keyword instead
of scm_c_make_keyword.
2004-10-04 17:58:40 +00:00
Marius Vollmer
c598539a67 Replaced SCM_KEYWORDP with scm_is_keyword. 2004-10-04 17:02:53 +00:00
Marius Vollmer
265a7997fb * 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.
2004-10-04 17:02:01 +00:00
Marius Vollmer
43c2562635 *** empty log message *** 2004-09-29 18:07:38 +00:00
Marius Vollmer
8631637894 (scm_lreadr): Revert change from 2004-09-22: string literals are now
read-write again (until SCM_STRING_CHARS is removed).
2004-09-29 18:01:36 +00:00
Marius Vollmer
556d75dbb8 (SCM_STRING_CHARS): Explicitely reject read-only strings with an error
message that blames SCM_STRING_CHARS.
2004-09-29 17:58:39 +00:00
Marius Vollmer
81ae25da8c (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.
2004-09-29 17:53:40 +00:00
Marius Vollmer
a2902ecb90 (change_option_setting): Use scm_car instead of explicit type check
plus SCM_CAR.
2004-09-29 17:52:10 +00:00
Marius Vollmer
22e47f69ae (display_frame_expr): Do not remove control characters from the final
string.  Print it directly using scm_display.
2004-09-29 17:40:11 +00:00
Marius Vollmer
818deb1158 *** empty log message *** 2004-09-29 15:50:24 +00:00
Marius Vollmer
4f943a29c2 (scm_array_equal_p): Include scm_tc7_svect in switch. Thanks to
Roland Orre!
2004-09-29 15:48:21 +00:00
Kevin Ryde
d748089e17 *** empty log message *** 2004-09-28 23:55:54 +00:00
Kevin Ryde
21682b207e (scm_regexp_exec): Correction to last change, should
be whole original string in match struct, not offsetted substring.
2004-09-28 23:50:21 +00:00
Marius Vollmer
05d7cf8991 Fixed some typos. 2004-09-28 19:35:09 +00:00
Han-Wen Nienhuys
0ff7e3ff22 (scm_gc_unprotect_object): abort if called during GC. 2004-09-24 09:23:44 +00:00
Marius Vollmer
2edf319f0a *** empty log message *** 2004-09-24 02:12:50 +00:00
Marius Vollmer
b6e738d177 * Makefile.am (EXTRA_DIST): Added gettext.h. 2004-09-24 02:12:09 +00:00
Marius Vollmer
d180337bc3 *** empty log message *** 2004-09-24 01:46:59 +00:00
Marius Vollmer
197b057336 (scm_assert_smob_type): New. 2004-09-24 01:46:09 +00:00
Marius Vollmer
ad7de4b857 *** empty log message *** 2004-09-24 01:30:38 +00:00
Marius Vollmer
5bbc535901 (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.
2004-09-24 01:27:48 +00:00
Marius Vollmer
c648c68150 Docstring fixes. 2004-09-23 18:42:59 +00:00
Marius Vollmer
c9fedf8ada *** empty log message *** 2004-09-23 17:58:07 +00:00
Marius Vollmer
aa79839aac (handler_message): The rest argument is the fourth
argument, not everything after the third.  Call
scm_display_backtrace_with_highlights, passing the rest argument
when appropriate.
2004-09-23 17:53:54 +00:00
Marius Vollmer
2b55be7547 (scm_display_backtrace_with_highlights,
scm_backtrace_with_highlights): New.  Set highlight_objects of
printstate.
2004-09-23 17:51:53 +00:00
Marius Vollmer
cdd8c09128 (scm_error_scm): Document new meaning of data/rest
argument for out-of-range and wrong-type-arg errors.
(scm_out_of_range, scm_out_of_range_pos, scm_wrong_type_arg,
scm_wrong_type_arg_msg): Pass bad_value in rest argument of
exception so that it gets highlighted in the backtrace.
Don't talk about "argument" when not giving a position.
2004-09-23 17:48:25 +00:00
Marius Vollmer
d232520a23 * print.h (scm_print_state): Added highlight_objects.
* print.c (make_print_state, scm_free_print_state): Initialize it
to SCM_EOL.
(scm_iprin1): Wrap output in '{...}' when object is contained in
highlight_objects.
2004-09-23 17:44:40 +00:00
Marius Vollmer
d5ac9b2a8c *** empty log message *** 2004-09-22 21:57:30 +00:00