diff options
author | Darin Adler <darin@src.gnome.org> | 2000-08-17 21:37:18 +0000 |
---|---|---|
committer | Darin Adler <darin@src.gnome.org> | 2000-08-17 21:37:18 +0000 |
commit | 4010a5acb2be1747e60a0e844a508dbf0f55a149 (patch) | |
tree | 54a40b6b92f6f06b1291c0bf2cc41f66044a2795 /ChangeLog.pre-2-8 | |
parent | f17ed7ee26e447fe6d32201d3bb9c5801dbf4d30 (diff) | |
download | glib-4010a5acb2be1747e60a0e844a508dbf0f55a149.tar.gz |
Return the data left behind. Return the data left behind.
* glib.h:
* garray.c: (g_array_free), (g_ptr_array_free),
(g_byte_array_free): Return the data left behind.
* gstring.c: (g_string_free): Return the data left behind.
Changed the free calls that leave data behind so they
return a pointer to the left-behind data, NULL if told not
to leave anything behind. This makes these calls easier
to use correctly, without any incompatible API change for
callers that don't know about the return value. Of course,
it would be even clearer if the free calls weren't dual-purpose
in the first place.
Diffstat (limited to 'ChangeLog.pre-2-8')
-rw-r--r-- | ChangeLog.pre-2-8 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 5b9fa6085..843ac4aee 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,18 @@ +2000-08-17 Darin Adler <darin@eazel.com> + + * glib.h: + * garray.c: (g_array_free), (g_ptr_array_free), + (g_byte_array_free): Return the data left behind. + * gstring.c: (g_string_free): Return the data left behind. + + Changed the free calls that leave data behind so they + return a pointer to the left-behind data, NULL if told not + to leave anything behind. This makes these calls easier + to use correctly, without any incompatible API change for + callers that don't know about the return value. Of course, + it would be even clearer if the free calls weren't dual-purpose + in the first place. + 2000-08-12 Tor Lillqvist <tml@iki.fi> * giowin32.c: Some indentation and spacing fixes. Add some more |