Internationalisation.
[pspp-builds.git] / src / libpspp / ChangeLog
1 Tue May 30 19:45:12 WST 2006 John Darrington <john@darrington.wattle.id.au>
2
3         * i18n.c i18n.h: New files.
4
5 Tue May 16 06:50:35 2006  Ben Pfaff  <blp@gnu.org>
6
7         * automake.mk (src/libpspp/version.c): Removed groff_font_path,
8         which is no longer used.
9
10         * message.c (request_bug_report_and_abort): Don't print
11         groff_font_path, which no longer exists.
12
13         * version.h (locale_dir): Removed groff_font_path.
14
15 Sun May 14 22:06:53 2006  Ben Pfaff  <blp@gnu.org>
16
17         * str.c (spprintf): Moved definition of spprintf() here, from
18         str.h.
19
20         * str.h: (nsprintf) Removed.  Changed all users to use sprintf()
21         instead.
22         (nvsprintf) Removed.  Changed all users to use vsprintf() instead.
23
24 Sun May 14 20:52:20 2006  Ben Pfaff  <blp@gnu.org>
25
26         * str.c (ds_init): Remove `capacity' argument and just initialize
27         the string to a capacity of zero.  Updated all callers.
28
29 Tue May  9 09:56:57 2006  Ben Pfaff  <blp@gnu.org>
30
31         * va_copy.h: Removed.  Now use va_copy() provided by gnulib
32         instead.
33
34         * automake.mk: (src_libpspp_libpspp_a_SOURCES) Removed va_copy.h.
35
36 Sun May  7 18:17:32 2006  Ben Pfaff  <blp@gnu.org>
37
38         * pool.c (pool_vasprintf): New function.
39         (pool_asprintf) New function.
40
41 Sun May  7 17:09:54 2006  Ben Pfaff  <blp@gnu.org>
42
43         * compiler.h: (macro WARN_UNUSED_RESULT) New macro.
44
45 Sun May  7 14:32:25 2006  Ben Pfaff  <blp@gnu.org>
46
47         * va_copy.h: New header.
48
49         * str.c: Use header instead of inlining va_copy() macro
50         implementation.
51
52 Sun May  7 10:06:29 WST 2006 John Darrington <john@darrington.wattle.id.au>
53
54         * array.c array.h: Constness of sort.
55
56 Thu May  4 18:01:37 WST 2006 John Darrington <john@darrington.wattle.id.au>
57
58         * message.c message.h: Added functions to create and copy a msg.
59
60 Tue May  2 15:41:50 2006  Ben Pfaff  <blp@gnu.org>
61
62         * str.c (ds_append_uninit): No need to add 1 to arg passed to
63         ds_extend(), because the argument does not include space for a
64         null terminator.  Also, fix warning.
65
66 Tue Apr 25 11:07:19 2006  Ben Pfaff  <blp@gnu.org>
67
68         Finish reforming error message support.  In this phase, move
69         message.c into libpspp.
70         
71         * message.c: Move here from src/.  Also remove a few unneeded
72         headers.
73
74         * automake.mk (src_libpspp_libpspp_a_SOURCES): Add message.c. 
75
76 Tue Apr 25 10:54:44 2006  Ben Pfaff  <blp@gnu.org>
77
78         Continue reforming error message support.  In this phase, drop
79         actual message printing from core code, substituting a callback,
80         and add the callback to each UI.  Also, move verbose_msg() into
81         its own module.
82
83         * automake.mk (src_libpspp_libpspp_a_SOURCES): Added
84         verbose-msg.c, verbose-msg.h.
85
86         * verbose-msg.c: New file.
87
88         * verbose-msg.h: New file.
89
90 Mon Apr 24 17:26:47 2006  Ben Pfaff  <blp@gnu.org>
91
92         Continue reforming error message support.  In this phase, rename
93         all the message functions and types to start with "msg", except
94         for the ones that will be moving to other modules anyway.
95
96         All references to the identifiers below were updated likewise.
97         
98         * message.h: (enum file_locator) Renamed `enum msg_locator'.
99         (struct error) Renamed `struct msg'.
100         (err_assert_fail) Renamed msg_assert_fail().
101
102 Sun Apr 23 22:07:06 2006  Ben Pfaff  <blp@gnu.org>
103
104         Continue reforming error message support.  In this phase, get rid
105         of message "titles" and put the message text in `struct error'.
106         Now `struct error' encapsulates a message more properly.
107         
108         * message.h: (struct error) Remove `title' member.  Add `text'
109         member.
110         
111 Sun Apr 16 20:43:35 2006  Ben Pfaff  <blp@gnu.org>
112
113         Continue reforming error message support.  In this phase, we
114         divide the classification of messages along "category" and
115         "severity" axes.
116
117         * message.h: (enum msg_class) Named this set of enumerations.
118         (enum msg_category) New enum: MSG_GENERAL, MSG_SYNTAX, MSG_DATA.
119         (enum msg_severity) New enum: MSG_ERROR, MSG_WARNING, MSG_NOTE.
120         (msg_class_to_category) New inline function.
121         (msg_class_to_severity) New inline function.
122         (msg_class_from_category_and_severity) New inline function.
123         (struct error) Removed `class' member, added `category',
124         `severity'.  Updated all users of this struct to use the new
125         members.
126
127 Sun Apr 16 20:33:19 2006  Ben Pfaff  <blp@gnu.org>
128
129         * str.c (ds_vprintf): Don't try to write into the string if it is
130         null.
131
132 Sun Apr 16 18:52:41 2006  Ben Pfaff  <blp@gnu.org>
133
134         GNU standards require "file name" instead of "filename" in
135         documentation.  It's nice for our code to follow the convention
136         too.
137         
138         * message.h: (struct file_locator) Rename filename member to
139         file_name.  Updated all references.
140
141 Sun Apr 16 16:05:43 2006  Ben Pfaff  <blp@gnu.org>
142
143         Continue reforming error message support.  In this phase, we get
144         rid of VM() and the other msg() support for "verbosity", replacing
145         it by a new function verbose_msg().
146
147         * message.h: (enum ERR_CLASS_COUNT) Renamed ERR_CLASS_CNT.
148         (enum ERR_CLASS_MASK) Removed.
149         (enum ERR_VERBOSITY_SHIFT) Removed.
150         (enum ERR_VERBOSITY_MASK) Removed.
151         (macro VM) Removed.
152
153 Sun Apr 16 11:48:07 2006  Ben Pfaff  <blp@gnu.org>
154
155         Start reforming error message support.  In this phase, we get rid
156         of "installation errors" and change all uses of msg() in the
157         output drivers to uses of error() or error_at_line().
158
159         * message.h: Remove IE, IS enums.
160
161 Mon Apr  3 11:10:21 2006  Ben Pfaff  <blp@gnu.org>
162
163         * str.c: (ds_separate) Change interface for cleanliness and
164         consistency with ds_tokenize(), and rewrite to shorten and
165         simplify.  Updated all callers.
166         (ds_tokenize) New function.
167
168 Fri Mar 31 10:38:46 2006  Ben Pfaff  <blp@gnu.org>
169
170         Add freaderror() analogous to fwriteerror() in gnulib.
171
172         * freaderror.c: New file.
173
174         * freaderror.h: New file.
175
176 Thu Mar 30 16:15:37 2006  Ben Pfaff  <blp@gnu.org>
177
178         * str.c: (ds_create) Adjust capacity selection.
179         (ds_init) Use MAX macro for clarity.
180         (ds_create_substr) Rewrote.
181         (ds_replace) Renamed ds_assign_c_str(), reimplemented.  Changed
182         all callers to use a ds_assign_*() function.
183         (ds_init_substring) New function.
184         (ds_assign_string) New function.
185         (ds_assign_substring) New function.
186         (ds_assign_buffer) New function.
187         (ds_assign_c_str) New function.
188         (ds_truncate) Rewrote for clarity.
189         (ds_rpad) Reimplement in terms of ds_putc_multiple().
190         (ds_ltrim_spaces) Reimplement.
191         (ds_trim_spaces) New function.
192         (ds_separate) New function.
193         (ds_c_str) Make tolerant of null pointer, allowing static
194         initialization of strings.
195         (ds_find) Rename ds_span(), change interface.
196         (ds_n_find) Rename ds_cspan(), change interface.
197         (ds_at) New function.
198         (ds_first) Reimplement in terms of ds_at().
199         (remove_comment) New function.
200         (ds_get_config_line) Reimplement in terms of other functions.
201         Change type of LINE_NUMBER parameter.  Updated all callers.
202         (ds_vprintf) Modify for clarity.
203         (ds_putc) Better to be safe than sorry.
204         (ds_putc_multiple) New function.
205
206         * str.h: (struct string) Reorder members.
207         (macro DS_INITIALIZER) New macro that can be used to initialize a
208         string (as empty).
209         (ds_c_str) Remove inline version.
210
211 Tue Mar 28 13:49:11 WST 2006 John Darrington <john@darrington.wattle.id.au>
212
213         * str.[ch]: New functions ds_create_substr, ds_find, ds_n_find, 
214         ds_ltrim_spaces
215
216 Sat Mar  4 12:59:01 2006  Ben Pfaff  <blp@gnu.org>
217
218         * compiler.h: New file.
219
220 Sat Mar  4 11:55:16 2006  Ben Pfaff  <blp@gnu.org>
221
222         * str.h: Now assume that sprintf() returns the correct value.
223         Always implement spprintf as a static inline function.  Change
224         nsprintf, nvsprintf to simple macros that call sprintf, vsprintf.
225
226         * str.c: Remove spprintf, nsprintf, nvsprintf conditional
227         definitions.
228
229 Thu Mar  2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
230         
231         * Moved files from src directory