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