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