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