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