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