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