Improve string library.
[pspp-builds.git] / src / libpspp / ChangeLog
1 Thu Mar 30 16:15:37 2006  Ben Pfaff  <blp@gnu.org>
2
3         * str.c: (ds_create) Adjust capacity selection.
4         (ds_init) Use MAX macro for clarity.
5         (ds_create_substr) Rewrote.
6         (ds_replace) Renamed ds_assign_c_str(), reimplemented.  Changed
7         all callers to use a ds_assign_*() function.
8         (ds_init_substring) New function.
9         (ds_assign_string) New function.
10         (ds_assign_substring) New function.
11         (ds_assign_buffer) New function.
12         (ds_assign_c_str) New function.
13         (ds_truncate) Rewrote for clarity.
14         (ds_rpad) Reimplement in terms of ds_putc_multiple().
15         (ds_ltrim_spaces) Reimplement.
16         (ds_trim_spaces) New function.
17         (ds_separate) New function.
18         (ds_c_str) Make tolerant of null pointer, allowing static
19         initialization of strings.
20         (ds_find) Rename ds_span(), change interface.
21         (ds_n_find) Rename ds_cspan(), change interface.
22         (ds_at) New function.
23         (ds_first) Reimplement in terms of ds_at().
24         (remove_comment) New function.
25         (ds_get_config_line) Reimplement in terms of other functions.
26         Change type of LINE_NUMBER parameter.  Updated all callers.
27         (ds_vprintf) Modify for clarity.
28         (ds_putc) Better to be safe than sorry.
29         (ds_putc_multiple) New function.
30
31         * str.h: (struct string) Reorder members.
32         (macro DS_INITIALIZER) New macro that can be used to initialize a
33         string (as empty).
34         (ds_c_str) Remove inline version.
35
36 Tue Mar 28 13:49:11 WST 2006 John Darrington <john@darrington.wattle.id.au>
37
38         * str.[ch]: New functions ds_create_substr, ds_find, ds_n_find, 
39         ds_ltrim_spaces
40
41 Sat Mar  4 12:59:01 2006  Ben Pfaff  <blp@gnu.org>
42
43         * compiler.h: New file.
44
45 Sat Mar  4 11:55:16 2006  Ben Pfaff  <blp@gnu.org>
46
47         * str.h: Now assume that sprintf() returns the correct value.
48         Always implement spprintf as a static inline function.  Change
49         nsprintf, nvsprintf to simple macros that call sprintf, vsprintf.
50
51         * str.c: Remove spprintf, nsprintf, nvsprintf conditional
52         definitions.
53
54 Thu Mar  2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
55         
56         * Moved files from src directory