(test_cflags, LDFLAGS): Include
[bpt/guile.git] / libguile / ChangeLog
CommitLineData
c9fedf8a
MV
12004-09-23 Marius Vollmer <mvo@zagadka.de>
2
3 * print.h (scm_print_state): Added highlight_objects.
4 * print.c (make_print_state, scm_free_print_state): Initialize it
5 to SCM_EOL.
6 (scm_iprin1): Wrap output in '{...}' when object is contained in
7 highlight_objects.
8
9 * backtrace.h, backtrace.c (scm_display_backtrace_with_highlights,
10 scm_backtrace_with_highlights): New. Set highlight_objects of
11 printstate.
12
13 * error.c (scm_error_scm): Document new meaning of data/rest
14 argument for out-of-range and wrong-type-arg errors.
15 (scm_out_of_range, scm_out_of_range_pos, scm_wrong_type_arg,
16 scm_wrong_type_arg_msg): Pass bad_value in rest argument of
17 exception so that it gets highlighted in the backtrace.
18 Don't talk about "argument" when not giving a position.
19
20 * throw.c (handler_message): The rest argument is the fourth
21 argument, not everything after the third. Call
22 scm_display_backtrace_with_highlights, passing the rest argument
23 when appropriate.
24
d5ac9b2a
MV
252004-09-22 Marius Vollmer <mvo@zagadka.de>
26
27 From Jan Nieuwenhuizen <janneke@gnu.org> and Bruno Haible
28 <bruno@clisp.org>:
29
30 * i18n.c: Handle --disable-nls (thanks Bruno).
31
32 * posix.c (scm_init_posix): Add LC_PAPER, LC_NAME, LC_ADDRESS,
33 LC_TELEPHONE, LC_MEASUREMENT, LC_IDENTIFICATION.
34
35 * i18n.c (scm_i_to_lc_category): New name and export. Support all
36 LC categories.
37
38 * posix.c (s_scm_setlocale): Use it.
39
40 * i18n.h, i18n.c (scm_textdomain, scm_bindtextdomain,
41 scm_bind_textdomain_codeset): Make wrappers similar to C function
42 they wrap.
43
44 * i18n.h: New file.
45 * i18n.c: New file.
46 * gettext.h: New file, taken from GNU gettext.
47 * init.c: Include libguile/i18n.h.
48 (scm_init_guile_1): Add call to scm_init_i18n().
49 * Makefile.am (libguile_la_SOURCES): Add i18n.c.
50 (DOT_X_FILES): Add i18n.x.
51 (DOT_DOC_FILES): Add i18n.doc.
52 (libguile_la_LDFLAGS): Add @LTLIBINTL@.
53 (modinclude_HEADERS): Add i18n.h.
54
d2e53ed6
MV
552004-09-22 Marius Vollmer <mvo@zagadka.de>
56
2cdfe016
MV
57 * gh_list.c: Replaced SCM_CAR, etc with scm_car, etc.
58
d2e53ed6
MV
59 * discouraged.h, tags.h (SCM_CONSP, SCM_NCONSP): Moved to
60 discouraged.h. Replaced all uses with scm_is_pair.
61 (SCM_I_CONSP): New name for SCM_CONSP.
62
63 * pairs.h, pairs.c (scm_is_pair, scm_is_null, scm_car, scm_cdr,
64 scm_i_chase_pairs, SCM_I_A_PAT, SCM_I_D_PAT, etc, scm_caar,
65 scm_cadr, etc): New.
66 (SCM_NULLP, SCM_NNULLP): Moved to discouraged.h. Replaced all
67 uses with scm_is_null.
5dd82006 68
d2e53ed6
MV
69 * eval.c (scm_eval, scm_apply, call_cxr_1): Use scm_i_chase_pairs
70 instead of explicit code.
5dd82006 71
5dfdf243
MV
722004-09-22 Marius Vollmer <mvo@zagadka.de>
73
b50c53e5
MV
74 * srfi-13.c (scm_string_contains, scm_string_contains_ci):
75 Reworded logic a bit so that #f is returned immediately when s1 is
76 too short to contain s2.
77
5dfdf243
MV
78 * regex-posix.c (scm_regexp_exec): Convert string to
79 zero-temrinated locale string before matching against it.
80
81 * strings.h, strings.c (scm_substring_read_only,
82 scm_c_substring_read_only, scm_i_substring_read_only): New.
83 (RO_STRING_TAG, IS_RO_STRING): New.
84 (scm_i_string_writable_chars): Bail on read-only strings.
85
86 * read.c (scm_lreadr): use scm_c_substring_read_only for string
87 literals, thus making them read-only as specified by R5RS.
88
22ab5ba3
MV
892004-09-22 Marius Vollmer <mvo@zagadka.de>
90
91 * eq.c (scm_equal_p): Allow smobs with different flags to be equal
92 by testing for smobs before insisting on equal SCM_CELL_TYPES.
93
2663421c
MV
942004-09-21 Marius Vollmer <mvo@zagadka.de>
95
0d83cb90
MV
96 * numbers.h, numbers.c: Include <gmp.h> in numbers.h, not in
97 numbers.c.
98 (scm_to_mpz, scm_from_mpz): New.
99