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