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