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
Marius Vollmer
9361f7621b
* 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.
2004-09-22 21:54:50 +00:00
Marius Vollmer
8868655524
* 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.
2004-09-22 21:54:30 +00:00
Marius Vollmer
2cdfe01695
*** empty log message ***
2004-09-22 17:49:30 +00:00
Marius Vollmer
5e9e56edda
Replaced SCM_CAR, etc with scm_car, etc.
2004-09-22 17:48:13 +00:00
Marius Vollmer
d2e53ed6f8
*** empty log message ***
2004-09-22 17:41:37 +00:00
Marius Vollmer
a61f4e0c61
(scm_eval, scm_apply, call_cxr_1): Use scm_i_chase_pairs
...
instead of explicit code.
2004-09-22 17:38:44 +00:00
Marius Vollmer
6fcc7d48e4
* 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.
2004-09-22 17:37:01 +00:00
Marius Vollmer
5dd82006b0
*** empty log message ***
2004-09-22 15:23:20 +00:00
Marius Vollmer
ddda5e8fa7
(scm_car, scm_cdr, scm_i_chase_pairs, SCM_I_A_PAT, SCM_I_D_PAT, etc,
...
scm_caar, scm_cadr, etc): New.
2004-09-22 15:21:00 +00:00
Marius Vollmer
b50c53e55f
*** empty log message ***
2004-09-22 15:06:47 +00:00
Marius Vollmer
4a310f1c92
(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.
2004-09-22 15:03:17 +00:00
Marius Vollmer
5dfdf243d2
*** empty log message ***
2004-09-22 14:43:50 +00:00
Marius Vollmer
1eff9c2f70
(scm_regexp_exec): Convert string to zero-temrinated locale string
...
before matching against it.
2004-09-22 14:21:52 +00:00
Marius Vollmer
ec82b7c251
(scm_lreadr): use scm_c_substring_read_only for string
...
literals, thus making them read-only as specified by R5RS.
2004-09-22 13:55:15 +00:00
Marius Vollmer
ed35de727a
(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.
2004-09-22 13:54:15 +00:00
Marius Vollmer
22ab5ba3d2
*** empty log message ***
2004-09-21 22:05:51 +00:00
Marius Vollmer
789d2fc8dd
(scm_equal_p): Allow smobs with different flags to be equal by testing
...
for smobs before insisting on equal SCM_CELL_TYPES.
2004-09-21 22:05:11 +00:00
Marius Vollmer
0d83cb901c
*** empty log message ***
2004-09-21 00:44:29 +00:00
Marius Vollmer
cd0362604b
Include <gmp.h> in numbers.h, not in
...
numbers.c.
(scm_to_mpz, scm_from_mpz): New.
Thanks to Andreas Vögele!
2004-09-21 00:42:30 +00:00
Marius Vollmer
2663421ccf
*** empty log message ***
2004-09-20 23:56:37 +00:00
Marius Vollmer
ef80ed5ebc
(skip_scsh_block_comment): Recognize "!#" everywhere, not just on a
...
line of its own.
2004-09-20 23:55:38 +00:00
Marius Vollmer
1a82a4606c
(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.
2004-09-20 22:50:31 +00:00
Marius Vollmer
b00b73f98f
*** empty log message ***
2004-09-20 21:48:18 +00:00
Marius Vollmer
274acbda3f
Fixed comment.
2004-09-20 21:47:41 +00:00
Marius Vollmer
b17810e6f0
(SCM_MARK_BACKING_STORE): Removed, it was unused.
2004-09-20 21:47:09 +00:00
Marius Vollmer
5915272270
(scm_threads_mark_stacks): Call SCM_MARK_BACKING_STORE. Also, do not
...
use stack_len local, it was only used once.
2004-09-20 21:46:07 +00:00
Han-Wen Nienhuys
adba74f3a6
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.
2004-09-14 21:10:56 +00:00
Kevin Ryde
f6de32c817
*** empty log message ***
2004-09-08 23:04:08 +00:00
Kevin Ryde
464ee095ff
(_POSIX_C_SOURCE): Use this only on hpux, it
...
causes too many problems elsewhere (glibc, freebsd, mingw). Reported
by Andreas Vögele.
2004-09-08 22:14:59 +00:00
Marius Vollmer
eb8d0af1f5
*** empty log message ***
2004-09-08 17:15:43 +00:00
Marius Vollmer
f731051e38
(EXTRA_libguile_la_SOURCES): Removed "alloca.c".
2004-09-08 17:15:21 +00:00
Marius Vollmer
e548be5fe6
*** empty log message ***
2004-09-08 14:36:16 +00:00
Marius Vollmer
0e12d408bd
(real_eqv): Pretend that all NaNs are equal.
2004-09-08 14:32:47 +00:00
Marius Vollmer
0bafe73b5d
(scm_integer_expt): Do not accept inexact integers.
2004-09-08 14:09:01 +00:00
Marius Vollmer
874fbad116
*** empty log message ***
2004-09-08 10:37:38 +00:00
Kevin Ryde
1e35a229f0
Revert this:
...
(scm_integer_p): +/-inf is not an integer.
2004-09-08 01:03:06 +00:00
Marius Vollmer
616775edb7
(scm_string_trim_right, scm_string_xcopy_x): Correctly use size_t for
...
some locals instead of int.
2004-09-07 13:48:49 +00:00
Marius Vollmer
e7acba81f1
*** empty log message ***
2004-09-07 09:19:24 +00:00
Marius Vollmer
0520c32088
(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.
2004-09-07 09:18:59 +00:00
Kevin Ryde
5de126589a
*** empty log message ***
2004-09-07 00:36:48 +00:00
Kevin Ryde
20e0b1661a
(scm_access): Update docstring per manual.
2004-09-07 00:26:48 +00:00
Kevin Ryde
9268038891
(SCM_ZEROCOL, SCM_DECCOL): New macros.
2004-09-07 00:23:39 +00:00
Kevin Ryde
a727f4f629
(scm_getc, scm_lfwrite): Recognise \a \b and \r for port column.
2004-09-07 00:22:19 +00:00