* automake.mk: Add new file.
[pspp-builds.git] / src / libpspp / ChangeLog
1 2007-11-08  Ben Pfaff  <blp@gnu.org>
2
3         * str.c (ds_read_stream): Change return value semantics to be more
4         useful.  Update all users.
5
6 2007-11-03 John Darrington <john@darrington.wattle.id.au>
7
8         * i18n.c i18n.h: Added convertor from UTF8 to system.
9         This is needed for reading gnumeric files (and possibly others).
10
11 2007-10-11  Ben Pfaff  <blp@gnu.org>
12
13         * xalloc.h: Removed.  Changed all users to include "xalloc.h" from
14         gnulib instead.
15
16         * xalloc.c: Removed.
17
18 2007-10-11  Ben Pfaff  <blp@gnu.org>
19
20         * alloc.h (local_alloc): Removed.  Changed all users to use
21         xmalloca instead.
22         (local_free): Removed.  Changed all users to use freea instead.
23
24 2007-10-11  Ben Pfaff  <blp@gnu.org>
25
26         * float-format.c (float_get_lowest): New function.
27         
28         * magic.c: Removed.
29
30         * magic.h: Removed.  Changed all references to NOT_INT,
31         NOT_DOUBLE, and NOT_LONG to use other constants.  Changed
32         references to second_lowest_value to call float_get_lowest.
33
34 2007-10-10  Ben Pfaff  <blp@gnu.org>
35
36         We assume IEEE-754 now.
37
38         * float-format.h (enum float_format): Don't check for
39         FPREP_IEEE754 macro any longer.
40
41         * magic.h: Ditto.
42
43 2007-09-16  Ben Pfaff  <blp@gnu.org>
44
45         * copyleft.c: Add trailing new-lines to lack-of-warranty
46         statement.
47
48 2007-09-05 John Darrington <john@darrington.wattle.id.au>
49
50         * getl.c: Add extra members to struct getl_source, to maintain the
51         error mode and the syntax_mode. 
52
53 2007-07-25  Ben Pfaff  <blp@gnu.org>
54
55         * getl.c (getl_append_source): Add source to *end* of list.
56         Otherwise the list ends up in reverse order.
57
58         * automake.mk (src/libpspp/version.c): Use $HOME instead of ~ in
59         paths.  We don't interpolate ~.
60
61 2007-07-22  Ben Pfaff  <blp@gnu.org>
62
63         * str.h: Include xstrndup.h also.
64
65         * float-format.c (float_get_double): New function.
66
67 2007-07-06  Ben Pfaff  <blp@gnu.org>
68
69         * copyleft.c (legal): Update startup notice to use format
70         recommended by latest GNU coding standards.
71
72 2007-06-06  Ben Pfaff  <blp@gnu.org>
73
74         * array.c (binary_search): Fix assertion.
75
76 2007-06-06  Ben Pfaff  <blp@gnu.org>
77
78         Add error propagation layer.  Patch #5916, slightly revised.
79
80         * automake.mk: Add new files.
81         
82         * taint.c: New file.
83
84         * taint.h: New file.
85
86 2007-06-03  Ben Pfaff  <blp@gnu.org>
87
88         Add ability for reverse iteration to tower code.
89         
90         * tower.c (tower_last): New function.
91         (tower_prev): New function.
92         (abt_to_tower_node): New function.
93         (first_node): Use abt_to_tower_node.
94         (last_node): New function.
95         (next_ndoe): Use abt_to_tower_node.
96         (prev_node): New function.
97
98 2007-06-03  Ben Pfaff  <blp@gnu.org>
99
100         * tower.c: Cache repeated lookups of a single tower element.  This
101         turns such lookups into O(1) operations without harming the big-O
102         of other operations.
103
104         * tower.h (struct tower): Add members for caching.
105
106         * range-set.c (range_set_clone): New function.
107
108         * array.c (insert_range): New function.
109         (insert_element): New function.
110         (move_range): New function.
111
112 2007-04-25  Ben Pfaff  <blp@gnu.org>
113
114         * model-checker.c: Don't use type sighandler_t, which is a GNU
115         extension.  Reported by "Daniel E WILLIAMS"
116         <Daniel.E.Williams@state.or.us>.
117
118 2007-04-25 John Darrington <john@darrington.wattle.id.au>
119
120         * i18n.c: Fixed bug converting long strings
121
122 2007-04-22  Ben Pfaff  <blp@gnu.org>
123
124         Patch #5884.
125         
126         * ll.h (ll_for_each_reverse): New macro.
127         (ll_for_each_reverse_continue): New macro.
128         (ll_for_each_reverse_safe): New macro.
129         (ll_for_each_safe_reverse_continue): New macro.
130         (ll_for_each_reverse_preremove): New macro.
131         (ll_for_each_reverse_postremove): New macro.
132         (ll_remove__): Removed (dead code).
133         (ll_tail__): New macro.
134         (ll_prev__): New macro.
135
136 2007-04-22  Ben Pfaff  <blp@gnu.org>
137
138         Implement model checker for testing purposes.
139
140         Patch #5873.
141         
142         * automake.mk (src_libpspp_libpspp_a_SOURCES): Add
143         model-checker.[ch].  Alphabetize.
144
145         * model-checker.c: New file.
146
147         * model-checker.h: New file.
148
149 2007-04-03  Ben Pfaff  <blp@gnu.org>
150
151         Apply patches #5828, #5837, #5841, #5843.
152
153         * abt.c (insert_relative): New function.
154         (abt_insert_after): New function.
155         (abt_insert_before): New function.
156
157         * range-map.c: New file.
158
159         * range-map.h: New file.
160
161         * range-set.c: New file.
162
163         * range-set.h: New file.
164
165         * tower.c: New file.
166
167         * tower.h: New file.
168
169 2007-04-01  Ben Pfaff  <blp@gnu.org>
170
171         * bt.c: Need #include <limits.h>.  Thanks to "John McCabe-Dansted"
172         <gmatht@gmail.com> for pointing this out.
173
174 2007-03-31  Ben Pfaff  <blp@gnu.org>
175
176         Patch #5827.
177
178         * automake.mk (src_libpspp_libpspp_a_SOURCES): Add bt.c.
179
180         * bt.h: New file.
181
182         * bt.c: New file.
183
184 2007-03-30  Ben Pfaff  <blp@gnu.org>
185
186         Patch #5829.
187
188         * automake.mk (src_libpspp_libpspp_a_SOURCES): Add deque.c.
189
190         * deque.h: Completely rewrote.  Adapted client to new interface.
191
192         * deque.c: New file.
193
194 2007-03-25  Ben Pfaff  <blp@gnu.org>
195
196         * automake.mk (src_libpspp_libpspp_a_SOURCES): Add
197         sparse-array.[ch].
198
199         * pool.c (pool_zalloc): New function.
200         (pool_calloc): New function.
201
202         * sparse-array.c: New file.
203
204         * sparse-array.h: New file.
205
206 Mon Mar  5 20:55:49 CET 2007 John Darrington <john@darrington.wattle.id.au>
207
208         * i18n.c: Cast second argument of iconv using ICONV_CONST
209
210 2007-02-22  Ben Pfaff  <blp@gnu.org>
211
212         * string.h: Don't include vsnprintf.h any more, because gnulib has
213         now absorbed it into string.h.
214
215 Thu Feb 22 12:25:52 CET 2007 John Darrington <john@darrington.wattle.id.au>
216
217         * syntax-gen.h syntax-gen.c: New files.
218
219 Sun Feb 18 11:21:41 2007  Ben Pfaff  <blp@gnu.org>
220
221         * alloc.h: Remove useless parentheses in #if "defined" operator.
222
223         * misc.h: Ditto.
224
225 Tue Feb  6 20:00:13 2007  Ben Pfaff  <blp@gnu.org>
226
227         * misc.h [!HAVE_ISINF] (isinf): Define only if isinf is not
228         defined as a macro, because mingw seems to have the macro without
229         the function.
230         [!HAVE_ISNAN] (isnan): Ditto, for symmetry only.
231         [!AHVE_FINITE] (finite): Ditto, for symmetry only.
232
233 Tue Feb  6 19:58:46 2007  Ben Pfaff  <blp@gnu.org>
234
235         * compiler.h (PRINTF_FORMAT): Use __printf__ instead of printf to
236         avoid problem with "#define printf libintl_printf" that libintl is
237         fond of doing.
238         (SCANF_FORMAT): Ditto, for symmetry only.
239
240 Tue Feb  6 19:47:10 2007  Ben Pfaff  <blp@gnu.org>
241
242         * float-format.h: [FPREP_IEEE754] [WORDS_BIGENDIAN] Add missing
243         comma.
244
245 Wed Jan 24 21:13:32 2007  Ben Pfaff  <blp@gnu.org>
246
247         * abt.c: New file.
248
249         * abt.h: New file.
250
251         * automake.mk: Add abt.c, abt.h to sources.
252
253 Sun Jan 14 21:44:18 2007  Ben Pfaff  <blp@gnu.org>
254
255         * automake.mk: Add deque.h to sources.
256         
257         * deque.h: New file.
258
259 Wed Jan 10 06:49:38 2007  Ben Pfaff  <blp@gnu.org>
260
261         * automake.mk: Add heap.c, heap.h to sources.
262
263         * heap.c: New file.
264
265         * heap.h: New file.
266
267 Sun Dec 10 13:54:03 2006  Ben Pfaff  <blp@gnu.org>
268
269         * str.c (ss_tokenize): Skip the first delimiter character
270         following the token.  Otherwise, changing delimiters from token to
271         token can't have a sensible effect, because we'll get the previous
272         delimiter as part of the next token.
273         (ss_match_string): New function.
274
275 Sat Dec  9 18:48:55 2006  Ben Pfaff  <blp@gnu.org>
276
277         * misc.h (macro range): Removed, as it was unused.
278
279 Sat Dec  9 07:19:01 WST 2006 John Darrington <john@darrington.wattle.id.au>
280
281         * array.c: Removed gratuitous #include
282
283 Thu Dec  7 20:33:23 WST 2006 John Darrington <john@darrington.wattle.id.au>
284
285         * getl.c getl.h : Changed signature of create function to take a 
286         string indicating the initial include path.
287
288 Sun Dec  3 11:36:10 2006  Ben Pfaff  <blp@gnu.org>
289
290         * str.h (SS_LITERAL_INITIALIZER): Cast the string literal to "char
291         *".  This normally does nothing but when GCC's -Wwrite-strings is
292         used it fixes a warning that otherwise can't be avoided.
293
294 Sun Dec  3 11:35:35 2006  Ben Pfaff  <blp@gnu.org>
295
296         * str.c (ss_alloc_substring_pool): New function.
297         (ss_alloc_uninit_pool) New function.
298
299 Sun Dec  3 11:28:06 2006  Ben Pfaff  <blp@gnu.org>
300
301         * getl.h: (enum getl_syntax) New enumeration to distinguish
302         between "batch" and "interactive" in a clearer way than a bool.
303         (struct getl_interface) Add an arg to "read" to return the
304         intended syntax mode.  Add an arg to "filter" to specify the
305         syntax mode of the line to filter.
306
307         * getl.c (do_read_line): Instead of returning the syntax type of
308         the line read based on whether the source itself is interactive,
309         return it based on whether the line itself should be treated as
310         having batch or interactive syntax.  Also, adapt interface to the
311         new interfaces of lex_init() and getl_interface.
312
313 Wed Nov 29 19:35:44 WST 2006 John Darrington <john@darrington.wattle.id.au>
314
315         * getl.c getl.h: New files. Created interface from base of 
316         language/line-buffer.[ch]
317
318         * msg-locator.c msg-locator.h: New files. Moved from
319         language/line-buffer.[ch]
320
321 Fri Nov 24 17:27:00 2006  Ben Pfaff  <blp@gnu.org>
322
323         * misc.h: (min) Removed.  All references updated to use MIN, from
324         minmax.h provided by gnulib.
325         (max) Ditto (for MAX).
326
327 Sun Nov 19 09:22:26 2006  Ben Pfaff  <blp@gnu.org>
328
329         * str.c (ss_get_long): New function.
330         (ss_compare_case) Ditto.
331         (ss_equals) Ditto.
332         (ss_equals_case) Ditto.
333
334 Tue Oct 31 19:28:19 2006  Ben Pfaff  <blp@gnu.org>
335
336         * str.h: [!HAVE_STRCHR] Drop compatibility code, because now we
337         assume a C89 compliant library.  (Gnulib makes this assumption so
338         we might as well too.)
339         [!HAVE_STRRCHR] Ditto.
340
341 Thu Oct 26 20:19:50 2006  Ben Pfaff  <blp@gnu.org>
342
343         * automake.mk: Add the new files.
344
345         * legacy-encoding.c: New file.
346
347         * legacy-encoding.h: New file.
348
349         * float-format.c: New file.
350
351         * float-format.h: New file.
352
353         * integer-format.c: New file.
354
355         * integer-format.h: New file.
356
357 Sun Oct 15 09:49:50 WST 2006 John Darrington <john@darrington.wattle.id.au>
358
359         * hash.c hash.h: Added hsh_create_pool, a hash which uses a pool
360         for its memory allocation.
361
362 Mon Jul 31 15:49:46 2006  Ben Pfaff  <blp@gnu.org>
363
364         * compiler.h: (macro CONST_FUNCTION) New macro.
365         (macro PURE_FUNCTION) New macro.
366
367 Sun Jul 16 21:07:35 2006  Ben Pfaff  <blp@gnu.org>
368
369         * message.c: (static int messages_disabled) New variable.
370         (msg_emit) Don't emit the message if messages are disabled.
371         (msg_disable) New function.
372         (msg_enable) New function.
373
374         * str.c: (free_string) New function.
375         (ds_register_pool) New function.
376         (ds_unregister_pool) New function.
377         (ds_set_length) New function.
378
379 Mon Jul 10 17:26:58 WST 2006 John Darrington <john@darrington.wattle.id.au>
380
381         * llx.c: #included compiler.h and removed explicit preprocessor cruft.
382
383 Fri Jul  7 20:01:26 2006  Ben Pfaff  <blp@gnu.org>
384
385         * automake.mk: (src_libpspp_libpspp_a_SOURCES) Add assertion.h.
386         
387         * assertion.h: New file.  Replaced usage of assert(0) and abort()
388         with NOT_REACHED() from this file throughout the source tree.
389
390         * message.c: (request_bug_report_and_abort) Revise message printed
391         to include request to include lines above the message, which
392         should include an assertion failure message in many cases.
393         (msg_assert_fail) Removed.
394
395         * message.h: (assert) Removed.
396         (request_bug_report_and_abort) Mark NO_RETURN.
397
398 Mon Jul  3 09:36:42 WST 2006 John Darrington <john@darrington.wattle.id.au>
399
400         * i18n.c: Made character conversion tolerant of failure to create the 
401         necessary iconv structs.
402
403 Sat Jul  1 15:32:54 2006  Ben Pfaff  <blp@gnu.org>
404
405         * automake.mk: (src_libpspp_libpspp_a_SOURCES) Add new files.
406
407         * ll.c: New file.
408
409         * ll.h: New file.
410
411         * llx.c: New file.
412
413         * llx.h: New file.
414
415 Sun Jun 25 22:35:28 2006  Ben Pfaff  <blp@gnu.org>
416
417         Optimize rehashing: we know that none of the entries in the hash
418         table are equal, so we need not compare them to each other during
419         rehashing.
420         
421         * hash.c: (locate_empty_entry) New function.
422         (rehash) Use locate_empty_entry() instead of
423         locate_matching_entry().
424
425 Fri Jun  9 14:03:29 2006  Ben Pfaff  <blp@gnu.org>
426
427         Reform string library.
428         
429         * str.c (ss_empty): New function.  Replaces some uses of ls_init()
430         or ls_null().
431         (ss_cstr) New function.  Replaces some uses of ls_init().
432         (ss_buffer) New function.  Replaces some uses of ls_init().
433         (ss_substr) New function.
434         (ss_head) New function.
435         (ss_tail) New function.
436         (ss_alloc_substring) New function.  Replaces use of ls_create().
437         (ss_alloc_uninit) New function.
438         (ss_dealloc) New function.  Replaces use of ls_destroy().
439         (ss_truncate) New function.
440         (ss_rtrim) New function.
441         (ss_ltrim) New function.
442         (ss_trim) New function.
443         (ss_chomp) New function.
444         (ss_separate) New function.
445         (ss_tokenize) New function.
446         (ss_advance) New function.
447         (ds_create) Renamed ds_init_cstr().  Updated all callers.
448         (ss_match_char) New function.
449         (ss_get_char) New function.
450         (ss_get_until) New function.
451         (ss_get_chars) New function.
452         (ss_is_empty) New function.
453         (ss_length) New function.  Replaces ls_length().
454         (ss_data) New function.  Replaces many uses of ls_c_str().
455         (ss_end) New function.  Replaces ls_end().
456         (ss_at) New function.
457         (ss_first) New function.
458         (ss_last) New function.
459         (ss_span) New function.
460         (ss_cspan) New function.
461         (ss_compare) New function.
462         (ss_pointer_to_position) New function.
463         (ss_xstrdup) New function.
464         (ds_init) Renamed ds_init_empty().  All callers updated.
465         (ds_init_string) New function.
466         (ds_init_substring) Changed interface to take a struct substring.
467         Updated all callers.
468         (ds_init_cstr) New function.  Replaces ds_create().  All callers
469         updated.
470         (ds_assign_substring) Changed interface to take a struct
471         substring.  Updated all callers.
472         (ds_assign_buffer) Removed.  Changed all callers to use
473         ds_assign_substring().
474         (ds_assign_c_str) Renamed ds_assign_cstr().  All callers updated.
475         (ds_ss) New function.
476         (ds_substr) New function.
477         (ds_head) New function.
478         (ds_tail) New function.
479         (ds_rtrim) New function.  Replaces ds_rtrim_spaces().  All callers
480         updated.
481         (ds_ltrim) New function.  Replaces ds_ltrim_spaces().  All callers
482         updated.
483         (ds_trim) New function.  Replaces ds_trim_spaces().  All callers
484         updated.
485         (ds_rtrim_spaces) Removed.
486         (ds_ltrim_spaces) Removed.
487         (ds_trim_spaces) Removed.
488         (ds_separate) Changed interface to use substrings.  All callers
489         updated.
490         (ds_tokenize) Changed interface to use substrings.  All callers
491         updated.
492         (ds_c_str) Renamed ds_cstr().  All callers updated.
493         (ds_span) Changed interface to use substring for SKIP_SET and
494         dropped OFS.  All callers updated.
495         (ds_cspan) Changed interface to use substring for STOP_SET and
496         dropped OFS.  All callers updated.
497         (ds_find_char) New function.
498         (ds_compare) New function.
499         (ds_pointer_to_position) New function.
500         (ds_xstrdup) New function.  Replaced all users of
501         xstrdup(ds_c_str(s)) by a call to this function.
502         (ds_gets) Renamed ds_read_line().  All callers updated.
503         (ds_get_config_line) Renamed ds_read_config_line().  All callers
504         updated.
505         (ds_puts) Renamed ds_put_cstr().  All callers updated.
506         (ds_put_substring) New function.  Replaces ds_concat().  All
507         callers updated.
508         (ds_concat) Removed.
509         (ds_append_uninit) Renamed ds_put_uninit().  All callers updated.
510         (ds_printf) Renamed ds_put_format().  All callers updated.
511         (ds_vprintf) Renamed ds_put_vformat().  All callers updated.
512         (ds_putc) Renamed ds_put_char().  All callers updated.
513         (ds_putc_multiple) Renamed ds_put_char_multiple().  All callers
514         updated.
515         (ls_create) Removed.  Replaced by ss_alloc_substring().
516         (ls_create_buffer) Removed.  Replaced by ss_alloc_substring().
517         (ls_init) Removed.  Replaced by ss_buffer().
518         (ls_shallow_copy) Removed.  Just use assignment.
519         (ls_destroy) Removed.  Replaced by ss_dealloc().
520         (ls_null) Removed.
521         (ls_null_p) Removed.
522         (ls_empty_p) Removed.  Replaced by ss_is_empty().
523         (ls_c_str) Removed.
524         (ls_end) Removed.  Replaced by ss_end().
525
526         * str.h (struct fixed_string): Renamed struct substring, updated
527         all users.
528         (CC_SPACES) New macro.
529         (CC_DIGITS) Ditto.
530         (CC_XDIGITS) Ditto.
531         (CC_LETTERS) Ditto.
532         (CC_ALNUM) Ditto.
533         (SS_EMPTY_INITIALIZER) Ditto.
534         (SS_LITERAL_INITIALIZER) Ditto.
535         (struct string) Removed string, length members.  Add substring
536         member.
537         (DS_INITIALIZER) Rename DS_EMPTY_INITIALIZER.
538
539 Tue May 30 19:45:12 WST 2006 John Darrington <john@darrington.wattle.id.au>
540
541         * i18n.c i18n.h: New files.
542
543 Tue May 16 06:50:35 2006  Ben Pfaff  <blp@gnu.org>
544
545         * automake.mk (src/libpspp/version.c): Removed groff_font_path,
546         which is no longer used.
547
548         * message.c (request_bug_report_and_abort): Don't print
549         groff_font_path, which no longer exists.
550
551         * version.h (locale_dir): Removed groff_font_path.
552
553 Sun May 14 22:06:53 2006  Ben Pfaff  <blp@gnu.org>
554
555         * str.c (spprintf): Moved definition of spprintf() here, from
556         str.h.
557
558         * str.h: (nsprintf) Removed.  Changed all users to use sprintf()
559         instead.
560         (nvsprintf) Removed.  Changed all users to use vsprintf() instead.
561
562 Sun May 14 20:52:20 2006  Ben Pfaff  <blp@gnu.org>
563
564         * str.c (ds_init): Remove `capacity' argument and just initialize
565         the string to a capacity of zero.  Updated all callers.
566
567 Tue May  9 09:56:57 2006  Ben Pfaff  <blp@gnu.org>
568
569         * va_copy.h: Removed.  Now use va_copy() provided by gnulib
570         instead.
571
572         * automake.mk: (src_libpspp_libpspp_a_SOURCES) Removed va_copy.h.
573
574 Sun May  7 18:17:32 2006  Ben Pfaff  <blp@gnu.org>
575
576         * pool.c (pool_vasprintf): New function.
577         (pool_asprintf) New function.
578
579 Sun May  7 17:09:54 2006  Ben Pfaff  <blp@gnu.org>
580
581         * compiler.h: (macro WARN_UNUSED_RESULT) New macro.
582
583 Sun May  7 14:32:25 2006  Ben Pfaff  <blp@gnu.org>
584
585         * va_copy.h: New header.
586
587         * str.c: Use header instead of inlining va_copy() macro
588         implementation.
589
590 Sun May  7 10:06:29 WST 2006 John Darrington <john@darrington.wattle.id.au>
591
592         * array.c array.h: Constness of sort.
593
594 Thu May  4 18:01:37 WST 2006 John Darrington <john@darrington.wattle.id.au>
595
596         * message.c message.h: Added functions to create and copy a msg.
597
598 Tue May  2 15:41:50 2006  Ben Pfaff  <blp@gnu.org>
599
600         * str.c (ds_append_uninit): No need to add 1 to arg passed to
601         ds_extend(), because the argument does not include space for a
602         null terminator.  Also, fix warning.
603
604 Tue Apr 25 11:07:19 2006  Ben Pfaff  <blp@gnu.org>
605
606         Finish reforming error message support.  In this phase, move
607         message.c into libpspp.
608         
609         * message.c: Move here from src/.  Also remove a few unneeded
610         headers.
611
612         * automake.mk (src_libpspp_libpspp_a_SOURCES): Add message.c. 
613
614 Tue Apr 25 10:54:44 2006  Ben Pfaff  <blp@gnu.org>
615
616         Continue reforming error message support.  In this phase, drop
617         actual message printing from core code, substituting a callback,
618         and add the callback to each UI.  Also, move verbose_msg() into
619         its own module.
620
621         * automake.mk (src_libpspp_libpspp_a_SOURCES): Added
622         verbose-msg.c, verbose-msg.h.
623
624         * verbose-msg.c: New file.
625
626         * verbose-msg.h: New file.
627
628 Mon Apr 24 17:26:47 2006  Ben Pfaff  <blp@gnu.org>
629
630         Continue reforming error message support.  In this phase, rename
631         all the message functions and types to start with "msg", except
632         for the ones that will be moving to other modules anyway.
633
634         All references to the identifiers below were updated likewise.
635         
636         * message.h: (enum file_locator) Renamed `enum msg_locator'.
637         (struct error) Renamed `struct msg'.
638         (err_assert_fail) Renamed msg_assert_fail().
639
640 Sun Apr 23 22:07:06 2006  Ben Pfaff  <blp@gnu.org>
641
642         Continue reforming error message support.  In this phase, get rid
643         of message "titles" and put the message text in `struct error'.
644         Now `struct error' encapsulates a message more properly.
645         
646         * message.h: (struct error) Remove `title' member.  Add `text'
647         member.
648         
649 Sun Apr 16 20:43:35 2006  Ben Pfaff  <blp@gnu.org>
650
651         Continue reforming error message support.  In this phase, we
652         divide the classification of messages along "category" and
653         "severity" axes.
654
655         * message.h: (enum msg_class) Named this set of enumerations.
656         (enum msg_category) New enum: MSG_GENERAL, MSG_SYNTAX, MSG_DATA.
657         (enum msg_severity) New enum: MSG_ERROR, MSG_WARNING, MSG_NOTE.
658         (msg_class_to_category) New inline function.
659         (msg_class_to_severity) New inline function.
660         (msg_class_from_category_and_severity) New inline function.
661         (struct error) Removed `class' member, added `category',
662         `severity'.  Updated all users of this struct to use the new
663         members.
664
665 Sun Apr 16 20:33:19 2006  Ben Pfaff  <blp@gnu.org>
666
667         * str.c (ds_vprintf): Don't try to write into the string if it is
668         null.
669
670 Sun Apr 16 18:52:41 2006  Ben Pfaff  <blp@gnu.org>
671
672         GNU standards require "file name" instead of "filename" in
673         documentation.  It's nice for our code to follow the convention
674         too.
675         
676         * message.h: (struct file_locator) Rename filename member to
677         file_name.  Updated all references.
678
679 Sun Apr 16 16:05:43 2006  Ben Pfaff  <blp@gnu.org>
680
681         Continue reforming error message support.  In this phase, we get
682         rid of VM() and the other msg() support for "verbosity", replacing
683         it by a new function verbose_msg().
684
685         * message.h: (enum ERR_CLASS_COUNT) Renamed ERR_CLASS_CNT.
686         (enum ERR_CLASS_MASK) Removed.
687         (enum ERR_VERBOSITY_SHIFT) Removed.
688         (enum ERR_VERBOSITY_MASK) Removed.
689         (macro VM) Removed.
690
691 Sun Apr 16 11:48:07 2006  Ben Pfaff  <blp@gnu.org>
692
693         Start reforming error message support.  In this phase, we get rid
694         of "installation errors" and change all uses of msg() in the
695         output drivers to uses of error() or error_at_line().
696
697         * message.h: Remove IE, IS enums.
698
699 Mon Apr  3 11:10:21 2006  Ben Pfaff  <blp@gnu.org>
700
701         * str.c: (ds_separate) Change interface for cleanliness and
702         consistency with ds_tokenize(), and rewrite to shorten and
703         simplify.  Updated all callers.
704         (ds_tokenize) New function.
705
706 Fri Mar 31 10:38:46 2006  Ben Pfaff  <blp@gnu.org>
707
708         Add freaderror() analogous to fwriteerror() in gnulib.
709
710         * freaderror.c: New file.
711
712         * freaderror.h: New file.
713
714 Thu Mar 30 16:15:37 2006  Ben Pfaff  <blp@gnu.org>
715
716         * str.c: (ds_create) Adjust capacity selection.
717         (ds_init) Use MAX macro for clarity.
718         (ds_create_substr) Rewrote.
719         (ds_replace) Renamed ds_assign_c_str(), reimplemented.  Changed
720         all callers to use a ds_assign_*() function.
721         (ds_init_substring) New function.
722         (ds_assign_string) New function.
723         (ds_assign_substring) New function.
724         (ds_assign_buffer) New function.
725         (ds_assign_c_str) New function.
726         (ds_truncate) Rewrote for clarity.
727         (ds_rpad) Reimplement in terms of ds_putc_multiple().
728         (ds_ltrim_spaces) Reimplement.
729         (ds_trim_spaces) New function.
730         (ds_separate) New function.
731         (ds_c_str) Make tolerant of null pointer, allowing static
732         initialization of strings.
733         (ds_find) Rename ds_span(), change interface.
734         (ds_n_find) Rename ds_cspan(), change interface.
735         (ds_at) New function.
736         (ds_first) Reimplement in terms of ds_at().
737         (remove_comment) New function.
738         (ds_get_config_line) Reimplement in terms of other functions.
739         Change type of LINE_NUMBER parameter.  Updated all callers.
740         (ds_vprintf) Modify for clarity.
741         (ds_putc) Better to be safe than sorry.
742         (ds_putc_multiple) New function.
743
744         * str.h: (struct string) Reorder members.
745         (macro DS_INITIALIZER) New macro that can be used to initialize a
746         string (as empty).
747         (ds_c_str) Remove inline version.
748
749 Tue Mar 28 13:49:11 WST 2006 John Darrington <john@darrington.wattle.id.au>
750
751         * str.[ch]: New functions ds_create_substr, ds_find, ds_n_find, 
752         ds_ltrim_spaces
753
754 Sat Mar  4 12:59:01 2006  Ben Pfaff  <blp@gnu.org>
755
756         * compiler.h: New file.
757
758 Sat Mar  4 11:55:16 2006  Ben Pfaff  <blp@gnu.org>
759
760         * str.h: Now assume that sprintf() returns the correct value.
761         Always implement spprintf as a static inline function.  Change
762         nsprintf, nvsprintf to simple macros that call sprintf, vsprintf.
763
764         * str.c: Remove spprintf, nsprintf, nvsprintf conditional
765         definitions.
766
767 Thu Mar  2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
768         
769         * Moved files from src directory