1 Tue Nov 1 16:24:20 2005 Tim Janik <timj@imendio.com>
3 * glib/gmem.[hc]: prepared deprecation of GMemChunk and GAllocator.
4 added g_slice_*() API to allocate and cache small bits of memory.
5 an actuall allocator implementation for g_slice_*() is still pending.
7 * glib/gthread.[hc]: changes from a patch by Matthias Clasen.
8 changed GRealThread list to use in-structure *next; fields instead
9 of GSList, in order for thread iteration to not depenend on g_slice_*()
11 _g_thread_mem_private_get():
12 _g_thread_mem_private_set(): added accessors for private memory,
13 needed because the ordinary GPrivate implementation relies on GArray
14 and GSList and therefore indirectly on working g_slice_*() allocations.
17 g_thread_foreach(): new public API function to loop over all existing threads.
31 removed GAllocator and free list usages and accompanying locks.
32 use g_slice_*() API to allocate and cache small bits of memory.
34 * glib/ghook.h: removed GMemChunk field from public API.
37 * glib/glist.h: deprecate allocator API, provide _free1() for consistency.
39 * glib/gnode.h: deprecate allocator API.
41 * glib/gmain.c: reordered GPollRec fields so g_slice_free_chain() can
42 be used for poll rec lists.
44 * glib/grel.c: removed mem chunk usage, and allocated tuples via g_slice_*().
45 g_relation_destroy(): free all tuples from the all_tuples hash table,
46 this effectively maintains the life time track keeping of tuples.
47 g_relation_delete_tuple(): free tuples which are removed from the
48 all_tuples hash table. this fixes a temporary leak that was present
49 in the memchunk code until the destruction of the relation.
51 2005-10-29 Matthias Clasen <mclasen@redhat.com>
53 * tests/convert-test.c: Add some tests for conversions between
54 UTF-8, UCS-4 and UTF-16.
56 * glib/gutf8.c (g_utf8_to_ucs4, g_utf8_to_utf16): Fix handling
57 of len == -1, noticed by Morten Welinder.
59 2005-10-27 Erdal Ronahi <erdal.ronahi@gmail.com>
61 * configure.in: Added ku (Kurdish) to ALL_LINGUAS
63 2005-10-26 Matthias Clasen <mclasen@redhat.com>
65 * glib/gutf8.c (g_ucs4_to_utf8): Don't set items_read twice
66 in the error case, and add some documentation. (#319806, Morten
69 2005-10-19 Manish Singh <yosh@gimp.org>
71 * configure.in: Use AC_CHECK_FUNCS for _NSGetEnviron, to get the
72 config.h symbol automatically. Fixes bug #313731.
74 2005-10-19 Tor Lillqvist <tml@novell.com>
76 * glib/gwin32.c (g_win32_get_package_installation_directory):
77 Return a g_strdup()ed copy of the value stored in the hash table,
78 so that it can be g_free()d without leaving a dangling pointer in
79 the hash table. (#319232)
81 2005-10-06 Matthias Clasen <mclasen@redhat.com>
83 * glib/gunicollate.c (g_utf8_collate_key_for_filename): Handle
84 all-zero sequences correctly. (#317930, Sebastien Bacher)
86 2005-10-05 Matthias Clasen <mclasen@redhat.com>
88 * glib/gmarkup.c (g_markup_escape_text): Doc addition
90 * Makefile.am: Add Collation tests.
92 * tests/collate/*: Inputs and expected outputs for collation tests.
94 * tests/run-collate-tests.sh: Script to run collation tests.
96 * tests/unicode-collate.c (main): Rework slightly to make
97 it usable in unit tests. Also test g_utf8_collate_key_for_filename().
99 2005-10-01 Behdad Esfahbod <behdad@gnome.org>
101 * docs/reference/glib/tmpl/unicode.sgml:
102 * glib/gen-unicode-tables.pl:
104 * glib/gunichartables.h:
106 * tests/casefold.txt:
107 * tests/casemap.txt: Updated to Unicode 4.1. There are five new
108 GUnicodeBreakType types. That may break some applications, like
111 2005-09-26 Matthias Clasen <mclasen@redhat.com>
113 * glib/gstrfuncs.c (g_ascii_strtoull): Add details to the
114 docs. (#314393, Matthew F. Barnes)
117 * glib/gprintf.h: Remove g_snprintf() and g_vsnprintf(), since
118 they are already declared in glib.h. This doesn't break documented
119 use of gprintf.h, but should probably be pointed out in the
120 release notes for 2.10. (#314232, Behdad Esfahbod)
122 Tue Sep 20 13:16:04 2005 Tim Janik <timj@imendio.com>
124 * glib/gpattern.c (g_pattern_ph_match): applied significant recursion
125 complexity optimization, based on a patch from Matthias Clasen.
127 * tests/patterntest.c: more tests, mostly from matthias.
129 2005-09-20 Matthias Clasen <mclasen@redhat.com>
131 * glib/gqueue.c (g_queue_insert_sorted): Correct the docs.
132 (#316703, Mark Drago)
134 Mon Sep 19 17:23:23 2005 Tim Janik <timj@imendio.com>
136 * glib/gpattern.c: applied a patch from matthias which checks on the
137 upper bound of GPatternSpec length to optimize matches.
140 * tests/patterntest.c: added more match cases.
142 2005-09-16 Tor Lillqvist <tml@novell.com>
144 * glib/gstrfuncs.c (g_ascii_strcasecmp, g_ascii_strncasecmp): Add
145 warning to doc comment that these functions should not be used on
146 encodings like CP932.
148 2005-09-14 Matthias Clasen <mclasen@redhat.com>
150 * tests/keyfile-test.c: Add a test for grup names of length 1.
152 * glib/gkeyfile.c (g_key_file_line_is_group): Accept group names
153 of length 1. (#316309)
155 2005-09-12 Matthias Clasen <mclasen@redhat.com>
157 * glib/gmarkup.c (g_markup_escape_text): Clarify docs.
159 2005-09-11 Sebastian Wilhelmi <seppi@seppi.de>
161 * tests/refcount/Makefile.am (INCLUDES): Link the the refcount
162 tests to the system thread library $(G_THREAD_LIBS). Fixes #313744
165 2005-09-11 Kjartan Maraas <kmaraas@gnome.org>
167 * glib/gmain.c: (g_child_watch_prepare), (g_child_watch_check),
168 (child_watch_helper_thread): Remove some dead code. Closes
171 2005-09-07 Tor Lillqvist <tml@novell.com>
173 * glib/Makefile.am: Create also a console version of the
174 gspawn-win32-helper program, gspawn-win32-helper-console.exe.
175 It's otherwise identical to gspawn-win32-helper.exe, except marked
176 as a console application (linked without the -mwindows option).
178 * glib/gspawn-win32.c (do_spawn_directly, do_spawn_with_pipes):
179 Drop the dont_wait parameter. Its truth value correlated 100% with
180 the NULLness of the exit_status parameter anyway, so it's enough
181 to check whether exit_status is NULL. Invert the sense of the
182 dont_return_handle parameter and rename it to do_return_handle, to
183 make the code easier to read by avoiding double negations.
185 (g_spawn_sync_utf8, g_spawn_async_with_pipes_utf8): Modify calls
186 to do_spawn_with_pipes() accordingly.
188 (do_spawn_with_pipes): If we have a console, use the console
189 version of the helper program, otherwise use the GUI one. This
190 avoids extra console windows opening up in some situations. (In
191 case a console application uses the GUI gspawn-win32-helper.exe to
192 spawn another console application we would get a separate console
193 for the spawned console application).
195 * glib-zip.in: Distribute also gspawn-win32-helper-console.exe.
197 2005-09-05 Matthias Clasen <mclasen@redhat.com>
199 * glib/gmappedfile.c (g_mapped_file_new): Report an error
200 if the file is too large. (#315275, Kjartan Maraas)
202 * glib/gkeyfile.c (g_key_file_load_from_fd): The return value
203 of read() is signed. (#315273, Kjartan Maraas)
205 2005-08-31 Tor Lillqvist <tml@novell.com>
207 * glib/gutils.h: Wrapping atexit() is a bad idea on Windows, where
208 the EXE and each DLL have their own atexit function chains.
210 #define g_atexit as atexit instead. This means it has a
211 better chance of doing what the caller wants. For instance,
212 gtkhtml calls g_atexit() registering a function in gtkhtml
213 itself. This caused a crash when g_atexit() was implemented as a
214 function in the GLib DLL. The gtkhtml DLL was already unloaded by
215 the time the GLib DLL got unloaded.
217 * glib/gutils.c: #undef the #define mentioned above, to also get a
218 real g_atexit() into the DLL for backward compatibility. Document
219 the Windows behaviour of g_atexit(), and document the varying ways
220 atexit() can behave in the context of dynamically loaded modules
223 2005-08-31 Matthias Clasen <mclasen@redhat.com>
227 * glib/gdataset.c: Add string interning functions.
229 2005-08-28 Matthias Clasen <mclasen@redhat.com>
231 * glib/giochannel.c: Unify some near-duplicate strings. (#314654,
234 2005-08-26 Matthias Clasen <mclasen@redhat.com>
236 * configure.in: Bump version to 2.9.0
238 2005-08-25 Tor Lillqvist <tml@novell.com>
240 Make also the g_spawn*() functions take parameters in the GLib
241 file name encoding, i.e. UTF-8, on Windows. Has no impact on Unix
242 API or ABI. Like the other GLib API that was earlier changed to
243 use UTF-8 on Windows, the names of the functions that take UTF-8
244 have _utf8 suffixes added by using preprocessor macros in the
245 header file. The old names are kept for functions with the old
246 behaviour, taking parameters in the system codepage, for DLL ABI
249 * glib/gspawn.h: On Win32 add the suffix _utf8 to the names of the
250 g_spawn*() functions.
252 * glib/gspawn-win32.c: Use wide-char API on NT-based
253 Windows. Convert parameters from UTF-8 to wide chars (NT) or
254 system codepage (Win9x) and call the C library _wspawn*() or
255 spawn*() functions respectvely. Add DLL ABI stability versions
256 that take parameters in the system codepage.
258 * glib/gspawn-win32-helper.c: On NT-based Windows use the
259 wide-char versions of argv and envp, and use wide-char API to
260 change directory and spawn the program to run. Remove the verbose
261 debugging output, it was too complex to modify for the wide-char
262 features. (Just add temporary debugging printouts if needed, no
263 need to have them permanently in the source.)
265 * glib/gspawn.c: Corresponding documentation updates.
267 * glib/glib.symbols: Corresponding changes: Mark the ABI stability
268 symbols as PRIVATE, add the new _utf8-suffixed ones.
270 2005-08-24 Stepan Kasal <kasal@ucw.cz>
272 * glib/gtypes.h (G_MININT64): Cast the constant to gint64; it is
273 guint64 otherwise and that can produce warnings about comparison
274 between signed and unsigned.
276 2005-08-23 Matthias Clasen <mclasen@redhat.com>
278 * glib/gutils.c: Fix the crt_externs.h include.
280 2005-08-23 Stepan Kasal <kasal@ucw.cz>
282 * NEWS: Fix spelling of my first name.
284 2005-08-23 Matthias Clasen <mclasen@redhat.com>
288 * === Released 2.8.1 ===
292 2005-08-20 Hans Breuer <hans@breuer.org>
294 * glib/makefile.msc.in : link with ws2_32.lib
296 2005-08-18 Tor Lillqvist <tml@novell.com>
298 * configure.in: Check for <sys/wait.h>
300 * glib/gbacktrace.c: Include <sys/wait.h> on if HAVE_SYS_WAIT_H.
302 2005-08-18 Ross Burton <ross@burtonini.com>
305 Optimise single-character insertions.
310 * tests/string-test.c:
311 Add tests for new optimisation, and fix a leak.
313 2005-08-17 Matthias Clasen <mclasen@redhat.com>
315 * configure.in: Check for crt_externs.h and _NSGetEnviron.
317 * glib/gutils.c: On Darwin, include crt-externs.h and
318 define environ using _NSGetEnviron(). (#313731)
320 2005-08-16 Stepan Kasal <kasal@ucw.cz>
322 * glib/gutils.c (g_get_any_init): Move the body of the big if...
323 (g_get_any_init_do): ... to this new function.
324 (g_get_any_init): Declare as inline.
325 (g_get_any_init_locked): New inline function, does the locking.
326 Make use of these two throughout the code.
328 2005-08-15 Matthias Clasen <mclasen@redhat.com>
330 * glib/gbacktrace.c (g_on_error_stack_trace): Wait for
331 the child process and then simply return. This makes
332 The "S" option work as documented in g_on_error_query().
333 (#313125, Matthew F. Barnes)
335 * glib/gunicode.h: Update the link to Unicode category
336 values. (#313369, Behnam Esfahbod)
338 * glib/gqueue.c (g_queue_find_custom): Clarify docs
339 a little. (#311727, Tristan van Berkom)
341 * glib/abicheck.sh, gobject/abicheck.sh: Make the
342 check work on ia64 too, where some symbols ended up
343 in yet another section.