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