added gslice.obj
[platform/upstream/glib.git] / ChangeLog.pre-2-10
1 2006-01-05  Hans Breuer  <hans@breuer.org>
2
3         * glib/makefile.msc.in : added gslice.obj
4
5 2006-01-05  Matthias Clasen  <mclasen@redhat.com>
6
7         * NEWS: Updates
8
9         * glib/gmain.c: Clarify the documentation of source ids
10         a bit.  (#325874, Dan Williams)
11
12         * configure.in: Fix another strict aliasing problem.
13
14         * glib/gthreadpool.c: Avoid use of varargs macro.  (#325864,
15         Kazuki IWAMOTO)
16
17 2006-01-04  Manish Singh  <yosh@gimp.org>
18
19         * glib/glib.symbols
20         * glib/gstdio.h: don't macroized g_access, g_chdir, and g_unlink
21         either, since they have the same issue as g_rmdir. (Related to
22         bug #325249)
23
24 Wed Jan  4 13:33:25 2006  Tim Janik  <timj@gtk.org>
25
26         * glib/gslice.c (magazine_cache_pop_magazine): don't reverse chunk 
27         order when creating magazines, so we hand out chunks with ascending
28         adresses.
29
30 2006-01-04  Abel Cheung  <maddog@linuxhall.org>
31
32         * configure.in: Added "ml" "zh_HK" to ALL_LINGUAS.
33
34 2006-01-03  Martyn Russell  <martyn@imendio.com>
35
36         * docs/reference/glib/glib-sections.txt:
37         * glib/glib.symbols:
38         * glib/gthreadpool.[ch]:
39         - Added new API g_thread_pool_get_idle_time() and
40         g_thread_pool_set_idle_time(). (#324228).
41         
42         * tests/threadpool-test.c: 
43         - Updated test case to do thread pool sorting, thread pool with
44         no sorting and a thread pool with idle thread timeouts.
45         
46 2006-01-03  Matthias Clasen  <mclasen@redhat.com>
47         
48         * glib/gmain.h: Add new functions here, too.
49
50         * glib/glib.symbols: Add new functions.
51
52 2005-12-20  Michael Meeks  <michael.meeks@novell.com>
53
54         * glib/gmain.c (g_main_context_is_owner): new method
55         to determine if the current thread is the owner of the
56         context.
57
58 2006-01-02  Matthias Clasen  <mclasen@redhat.com>
59
60         * glib/glib.symbols: 
61         * glib/gstdio.h: 
62         * glib/gstdio.c (g_rmdir): Don't provide g_rmdir() as a macro
63         expanding to rmdir, since rmdir is not declared in a portable
64         system header we can include in gstdio.h.  (#325249, Jani Monoses)
65
66 2006-01-01  Tor Lillqvist  <tml@novell.com>
67
68         * glib/gspawn-win32.c (g_spawn_sync_utf8): Set the GIOChannels for
69         stdout and stderr to unbuffered. Otherwise the giochannel layer
70         will try to read from them regardless whether the
71         g_io_channel_win32_poll() call here has indicated
72         readability or not. (#325310)
73
74 2005-12-29  Matthias Clasen  <mclasen@redhat.com>
75
76         * glib/gutils.c (glib_check_version): Fix a copy-and-paste error
77         in the docs.  (#325273, Declan Naughton)
78
79 2005-12-27  Manish Singh  <yosh@gimp.org>
80
81         * tests/run-collate-tests.sh: use LC_ALL instead of LC_COLLATE, to
82         make sure we really override things.
83
84 2005-12-27  Matthias Clasen  <mclasen@redhat.com>
85         
86         Fix #316221, Michal Benes, Stanislav Brabec;
87
88         * configure.in: Fix a strict aliasing problem in 
89         g_static_mutex_get_mutex(). 
90         * glib/gthread.h: ...and in 
91         g_static_mutex_get_mutex_impl_shortcut().
92
93         * glib/gdatasetprivate.h: Add a cast to silence compiler
94         warnings.  (#321978, Andrew Paprocki)
95
96         Partial fix for bug #323937, Bogdan Nicula.
97
98         * configure.in: Check for malloc.h
99         * glib/gslice.c: Don't include malloc.h unconditionally.
100
101 2005-12-27  Manish Singh  <yosh@gimp.org>
102
103         * tests/run-collate-tests.sh: export LC_COLLATE so it takes.
104         (#324950, Dan Yefimov)
105
106 2005-12-26  Matthias Clasen  <mclasen@redhat.com>
107
108         * glib/gslice.c: On Win32, include process.h  (#325015, Kazuki
109         Iwamoto)
110
111 2005-12-25  Matthias Clasen  <mclasen@redhat.com>
112
113         * AUTHORS: Update my email
114
115         * tests/slice-test.c: Fix C99isms.  (#324950, Dan Yefimov)
116
117 2005-12-21  Matthias Clasen  <mclasen@redhat.com>
118         
119         * README.in: Add some notes on when 'make check' may fail.
120
121 2005-12-20  Matthias Clasen  <mclasen@redhat.com>
122
123         * glib/glib.symbols: 
124         * glib/gthreadpool.h: 
125         * glib/gthreadpool.c (g_thread_pool_set_sort_function): New function
126         to sort tasks pushed into a threadpool.  (#324479, Martyn Russell)
127
128         * tests/threadpool-test.c: Test this.
129
130 Tue Dec 20 18:14:14 2005  Tim Janik  <timj@imendio.com>
131
132         * glib/gslice.[hc]: added mem_error() and mem_assert() to test and 
133         handle  errors without depending on gmessage.c which might not be
134         setup when the error occours.
135         removed G_SLICE_CONFIG_ALWAYS_FREE config option, fixed the code so
136         always freeing can be achieved by adjusting the working set time to
137         0 with G_SLICE_CONFIG_WORKING_SET_MSECS.
138         added G_SLICE_CONFIG_COLOR_INCREMENT to test different color increments
139         (mainly 0 and 1). reduced the minimum block size to 128 bytes, to
140         minimize wastage if small amounts of differently sized structrues are
141         allocated, this does come at a performance cost of roughly 5% though.
142         fixed up block alignment calculation, so it works for varying
143         block sizes. only use strerror() not g_strerror() since the latter
144         depends on working GQuark and GSlice.
145         mem_error(): implemented in terms of fprintf and vfprintf.
146
147         * tests/slice-color.c: new program to test cache colorization effects.
148
149         * tests/slice-test.c: trade G_SLICE_CONFIG_ALWAYS_FREE for 0 duration
150         G_SLICE_CONFIG_WORKING_SET_MSECS.
151
152 2005-12-17  Matthias Clasen  <mclasen@redhat.com>
153
154         * glib/goption.c (parse_short_option): Set an error in all
155         failure cases.  (#324332, Tim-Philipp Müller) 
156
157 2005-12-17  Sebastian Wilhelmi  <seppi@seppi.de>
158
159         * glib/gatomic.c: Fix memory barrier position in g_atomic_int_get
160         and g_atomic_pointer_get. Add g_atomic_int_set and
161         g_atomic_pointer_set implementations for the !DEFINE_WITH_MUTEXES &&
162         G_ATOMIC_OP_MEMORY_BARRIER_NEEDED case, as well as defining them
163         as functions (additionally to the macros in the header) for the 
164         !G_ATOMIC_OP_MEMORY_BARRIER_NEEDED case.
165
166 2005-12-16  Matthias Clasen  <mclasen@redhat.com>
167
168         *  glib/gmem.c (g_allocator_new): Don't return a pointer to
169         a const struct, since apps expect to be able to modify it. 
170         (#324179, J. Ali Harlow)
171
172 Tue Dec 13 10:13:32 2005  Tim Janik  <timj@imendio.com>
173
174         * glib/gatomic.h: added g_atomic_pointer_set() and g_atomic_int_set()
175         for systems where the initialization of atomic variables requires a
176         write memory barrier.
177
178 2005-12-09  Matthias Clasen  <mclasen@redhat.com>
179
180         * configure.in: Bump version
181
182         * === Released 2.9.1 ===
183
184 2005-12-09  Alexander Larsson  <alexl@redhat.com>
185
186         * glib/glist.h: 
187         * glib/gslist.h:
188         Use G_GNUC_WARN_UNUSED_RESULT on list functions that return
189         the whole list.
190
191 2005-12-08  Matthias Clasen  <mclasen@redhat.com>
192
193         * NEWS: Updates
194
195 2005-12-07  Martyn Russell  <martyn@imendio.com>
196
197         * glib/gasyncqueue.c:
198         - Call g_queue_insert_sorted() instead of duplicating the code.
199         - Call g_queue_sort() instead of duplicating the code.
200         - Invert sort function results to make sure the same sort function
201         gives the same results across glist, gslist, gqueue and
202         gasyncqueue.
203
204         * tests/asyncqueue-test.c:
205         - Updated the sort function to reflect the example in the
206         documentation for gasyncqueue.c.
207
208 2005-12-07  Martyn Russell  <martyn@imendio.com>
209
210         * docs/reference/glib/glib-sections.txt:
211         * docs/reference/glib/tmpl/linked_lists_double.sgml:
212         * docs/reference/glib/tmpl/linked_lists_single.sgml:
213         * glib/glist.[ch]: 
214         * glib/gslist.[ch]: 
215         - Added g_list_insert_sorted_with_data () and
216         g_slist_insert_sorted_with_data ().
217         - Removed the extra check in g_list_sort() and g_slist_sort() for
218         GCompareDataFunc vs. GCompareFunc.
219         
220 2005-12-07  Tor Lillqvist  <tml@novell.com>
221
222         * glib-gettextize.in: Look up prefix at run-time on Win32,
223         assuming the standard directory structure with glib-gettextize in
224         $prefix/bin.
225
226 2005-12-06  Matthias Clasen  <mclasen@redhat.com>
227
228         * glib/gmem.h: Exempt GTK+ from the mem chunk deprecation, since
229         we need GTK+ 2.8 to compile against GLib 2.10.
230
231 2005-12-05  Manish Singh  <yosh@gimp.org>
232
233         * tests/run-collate-test.sh: set LC_COLLATE, not LANG, to be sure
234         to override any user settings.
235
236 2005-12-05  Matthias Clasen  <mclasen@redhat.com>
237
238         * configure.in: Revert an accidential commit
239
240 2005-12-05  Matthias Clasen  <mclasen@redhat.com>
241
242         * glib/gutf8.c: Documentation updates.  (#323291, Morten Welinder)
243
244         * tests/Makefile.am (TESTS_ENVIRONMENT): 
245         * tests/gobject/Makefile.am (TESTS_ENVIRONMENT): Set
246         MALLOC_CHECK_ and MALLOC_PERTURB_
247
248         * tests/run-collate-tests.sh: Run the collation tests explicitly 
249         in en_US locale. (#320463)
250
251         * glib/gmem.h: Really deprecate GMemChunk.
252
253         * glib/gdate.c: 
254         * glib/gutils.c: 
255         * glib/gtree.c: 
256         * glib/gstring.c: 
257         * glib/giochannel.c: 
258         * glib/gstrfuncs.c: Add versioned deprecation docs. 
259
260 2005-12-05  Martyn Russell  <martyn@imendio.com>
261
262         * docs/reference/glib/glib-sections.txt:
263         * glib/gasyncqueue.[ch]:
264         - Added support for sorting async queues by with _push_sorted(),
265         _push_sorted_unlocked(), _sort() and _sort_unlocked() (#323047).
266         
267         * tests/Makefile.am:
268         * tests/asyncqueue-test.c:
269         - Added test case for gasyncqueue.c
270
271 Mon Dec  5 15:53:20 2005  Tim Janik  <timj@imendio.com>
272
273         * glib/gslice.c: implement chain walking for arbitrary ->next pointer
274         offsets in g_slice_free_chain_with_offset() based on a patch by behdad
275         in bug 323178. moved time consuming logic from g_slice_free() out of
276         the inner loop, so g_slice_free_chain_with_offset() provides a real
277         performance benefit over g_slice_free1() now.
278         
279         * glib/gslice.h: renamed g_slice_free_chain() to
280         g_slice_free_chain_with_offset(). implemented g_slice_free_chain() as
281         a type-safe macro as suggested in bug 323178.
282         simplified the macro implementation of g_slice_free() and implemented
283         it in a type safe manner for all compliers as suggested by Morten
284         Welinder <mortenw@gnome.org>.
285
286         * glib/gmain.c:
287         * glib/glist.c:
288         * glib/gslist.c:
289         * glib/glib.symbols: s/g_slice_free_chain/g_slice_free_chain_with_offset/
290
291 2005-12-05  Matthias Clasen  <mclasen@redhat.com>
292
293         * glib/gasyncqueue.c: Add some docs.
294
295         * tests/libmoduletestplugin_a.c: Fix compiler warnings.
296
297         * glib/gatomic.c: In the ia64 implementation, use
298         __sync builtin without _si or _di suffix.  (#321229,
299         Stanislav Brabec, patch by Andreas Schwab)
300
301 2005-12-04  Behdad Esfahbod  <behdad@gnome.org>
302
303         * glib/gslice.h: Remove comma at the end of enum.
304
305 2005-12-04  Matthias Clasen  <mclasen@redhat.com>
306
307         Handle multiple user names with the same UID better.
308         (#319535, Laszlo Peter)
309         
310         * glib/gutils.c (g_get_any_init_do): When determining user
311         data, first look up $LOGNAME. If the UID doesn't match
312         getuid(), fall back to the current behaviour of looking
313         up the user data based on getuid().
314
315 2005-12-04  Matthias Clasen  <mclasen@redhat.com>
316
317         * glib/gmacros.h (G_GNUC_WARN_UNUSED_RESULT): Add a macro
318         to make gcc warn if a function result is ignored.  (#145466,
319         Arjan van de Ven, Alex Larsson)
320
321         * glib/gmem.h: Add the new attribute to g_realloc and 
322         g_try_realloc.
323
324 2005-12-03  Matthias Clasen  <mclasen@redhat.com>
325
326         * glib/glib.symbols: 
327         * glib/gcache.h: Deprecate g_cache_value_foreach. (#322956,
328         Nicolas Caniart)
329
330         * glib/gmappedfile.c: Make mapping of empty files
331         work.  (#321530)
332         
333         * glib/gfileutils.c: Don't fork a new process just to 
334         fix the permissions of the created temp file.  (#321318,
335         Alexis S. L. Carvalho)
336
337 2005-12-02  Matthias Clasen  <mclasen@redhat.com>
338
339         * README.in: Add a note about Solaris threads.
340
341         * glib/gspawn.c:
342         * configure.in: Remove support for Solaris threads. 
343         (#136971, Sebastian Wilhelmi, patch by Andrew Paprocki)
344
345 2005-12-02  Matthias Clasen  <mclasen@redhat.com>
346
347         * configure.in: Define G_GUINT64_CONSTANT in analogy to
348         G_GINT64_CONSTANT.  (#322568, Andrew Paprocki)
349
350 2005-12-02  Matthias Clasen  <mclasen@redhat.com>
351
352         * glib/gslice.c: Win32 portability fixes and C99ism removal,
353         pointed out by Kazuki Iwamoto.  (#323052)
354         
355 2005-12-02  Matthias Clasen  <mclasen@redhat.com>
356
357         * glib/gatomic.c (g_atomic_int_add): Add a missing volatile for
358         the IA64 implementation.
359
360 Fri Dec  2 16:18:09 2005  Tim Janik  <timj@imendio.com>
361
362         * glib/gslice.c: some naming and type size fixups.
363
364 Fri Dec  2 13:08:58 2005  Tim Janik  <timj@gtk.org>
365
366         * glib/gslice.h (g_slice_free): reworked GCC-specific type-safe macro
367         variant into something less verbose, but digestible for gcc-3.4.
368
369 Fri Dec  2 10:55:07 2005  Tim Janik  <timj@imendio.com>
370
371         * tests/slice-test.c: extended to perform the benchmarking on the old
372         memchunk code if 'O' is selected.
373
374         * tests/memchunks.c: new file which contains the old GLib mem chunks
375         implementation with prefix old_mem_chunk_.
376
377         * tests/Makefile.am: added memchunks.c
378
379 Fri Dec  2 00:16:59 2005  Tim Janik  <timj@imendio.com>
380
381         * glib/gslice.c: improved gettimeofday() timer resolution by maintaining
382         acceptable load distribution of the syscall.
383         (allocator_get_magazine_threshold): reduce minimum/single-thread magazine
384         sizes to approximately page_size/2.5 to avoid excessive startup allocations.
385
386 2005-12-01  Matthias Clasen  <mclasen@redhat.com>
387
388         * tests/gobject/ifacecheck.c (test_iface_base_init): Don't
389         double-free base interface members.
390
391         * tests/Makefile.am: Remove duplicate variable.
392
393 Thu Dec  1 17:32:46 2005  Tim Janik  <timj@imendio.com>
394
395         * glib/gslice.[hc]: new slice allocator implementation.
396
397         * tests/slice-test.c: added random slice allocation test.
398
399         * glib/gthread.[hc]: removed newly added private thread mem API.
400
401         * glib/gthreadinit.h:
402         * glib/gmessages.c:
403         * glib/gthread.c:
404         * glib/gmem.c: divided glib threading initialisation into three phases,
405         initialisation where private keys and messaging are not available (only
406         needed by gmem.c), initialisation without messaging but private keys
407         available (gslice.c, gmessage.c), and full fledged initialisers that
408         server the rest of glib. initialisation functions got renamed to reflect
409         the limitations of their corresponding phases.
410
411         * glib/gmem.c: removed memchunk code, defer allocations to 
412         g_slice_* instead.
413
414         * glib/gmem.[hc]: removed g_slice_* skeletons.
415
416         * glib/glib.symbols: added g_slice_* symbols.
417
418         * configure.in: check for availability of posix_memalign(3), memalign(3)
419         and valloc(3). 
420
421         * glib/Makefile.am: added gslice.[hc].
422
423 2005-12-01  Tor Lillqvist  <tml@novell.com>
424
425         * glib/gstdio.c (g_stat): In the Win32 implementation, strip
426         trailing slash(es) for non-root folders. stat() fails if non-root
427         folders are specified with trailing slashes. It's too much hassle
428         to demand that callers strip such slashes themselves, especially
429         as it is easy to get it wrong and strip the slash of a root
430         folder.
431         (g_rename): On NT-based Windows, use MoveFileEx() with
432         MOVEFILE_REPLACE_EXISTING to better match Unix behaviour.
433
434 2005-11-28  Matthias Clasen  <mclasen@redhat.com>
435
436         Fix G_STMT_START / G_STMT_END on Solaris.  (#321972,
437         Andrew Paprocki)
438         
439         * configure.in: Check whether do { } while (0) works.
440
441         * glib/gmacros.h: Use do { } while (0) for G_STMT_START / 
442         G_STMT_END if it works.
443         
444 2005-11-28  Matthias Clasen  <mclasen@redhat.com>
445
446         * glib/gthread.c (g_static_rw_lock_wait, g_static_rw_lock_signal): 
447         * glib/gnode.c (g_node_depth_traverse_level): 
448         * glib/gmem.c (g_allocator_new): 
449         * glib/ghash.c (g_hash_table_unref, g_hash_table_destroy) 
450         (g_hash_table_foreach_remove_or_steal): Silence compiler
451         warnings.
452
453 2005-11-27  Matthias Clasen  <mclasen@redhat.com>
454
455         * glib/gunicollate.c (g_utf8_collate_key_for_filename): 
456         Don't read beyond len.  (#322520, Christian Persch)
457
458 Wed Nov 23 17:34:01 2005  Tim Janik  <timj@imendio.com>
459
460         * glib/gdataset.c: access datalist flags via atomic pointer access
461         functions, instead of acquiring the dataset lock. this is faster and
462         also matches the atomic pointer readouts in gdatalistprivate.h and
463         direct pointer modifications required by gobject.c.
464
465 Wed Nov 23 13:35:31 2005  Tim Janik  <timj@gtk.org>
466
467         * glib/gdataset.c: streamlined initialization code somewhat,
468         removed GData node cache.
469
470 2005-11-22  Matthias Clasen  <mclasen@redhat.com>
471
472         * glib/ghash.c (g_hash_table_ref): 
473         (g_hash_table_unref): Mark these as new API.
474
475         Avoid double locking in g_intern_string (#322133,
476         Benedikt Meurer)
477
478         * glib/gdataset.c (g_quark_from_string_internal): New 
479         internal function which factors out common parts of 
480         g_quark_from[_static]_string.
481         (g_quark_from_string, g_quark_from_static_string):
482         Use g_quark_from_string_internal.
483         (g_intern_string, g_intern_static_string): Use
484         g_quark_from_string_internal, and only take the
485         lock once.
486         (g_quark_new): Don't store the strings shifted by -1
487         in the g_quarks array.
488         (g_quark_to_string): Adapt to the previous change.
489
490 Tue Nov 22 14:04:26 2005  Tim Janik  <timj@imendio.com>
491
492         * glib/ghash.h: 
493         * glib/ghash.c: 
494         g_hash_table_new_full(): create hash tables with a ref count of 1.
495         g_hash_table_ref(): atomically ref_count+=1
496         g_hash_table_unref(): atomically ref_count-=1, destroys hash table
497         when refcount reaches 0.
498         g_hash_table_destroy(): just destroy keys and values, unref by 1.
499         g_hash_table_insert(): 
500         g_hash_table_replace(): assert ref_count>0.
501
502         * glib/gatomic.h: 
503         * glib/gatomic.c: added 'volatile' qualifier to all atomic pointer and
504         integer pointers.
505
506 2005-11-20  Behdad Esfahbod  <behdad@gnome.org>
507
508         * glib/guniprop.c (g_unichar_get_mirror_char): Remove unused
509         variables. (#321984, Andrew Paprocki)
510
511 2005-11-18  Matthias Clasen  <mclasen@redhat.com>
512
513         * configure.in: Bump version
514
515 2005-11-17  Matthias Clasen  <mclasen@redhat.com>
516
517         * === Released 2.9.0 ===
518
519         * glib/glib.symbols: Updates
520
521         * glib/gutf8.c (g_utf8_offset_to_pointer): Add some performance
522         hints to the docs. (Paolo Borelli)
523         
524         * NEWS: Updates
525
526         * glib/gthread.c (g_thread_foreach): Mark as new api.
527
528         * README.in: Updates.
529
530         * glib/glib.symbols: 
531         * glib/gdate.h: 
532         * glib/gdate.c (g_date_set_time_t): 
533         (g_date_set_time_val): Add functions to set a date from
534         a time_t and from a GTimeVal.
535         (g_date_set_time): Deprecate.  (#314067, Roger Leigh)
536         
537         * tests/Makefile.am:
538         * tests/utf8-pointer.c: Unit tests for g_utf8_pointer_to_offset
539         and g_utf8_offset_to_pointer.
540
541         * glib/gutf8.c (g_utf8_pointer_to_offset) 
542         (g_utf8_offset_to_pointer): Handle negative offsets, and use
543         "stutter stepping" for going backwards. (#320638, Larry
544         Ewing)
545
546         * glib/gbacktrace.c:
547         * glib/gdate.c:
548         * glib/gthread.c: const correctness fixes, found
549         by Arjan van de Ven and gcc.
550         
551 2005-11-16  Behdad Esfahbod  <behdad@gnome.org>
552
553         * docs/reference/glib/tmpl/unicode.sgml: Correct typo on mentioning
554         @G_UNICODE_BREAK_UNKNOWN that should be #G_UNICODE_BREAK_UNKNOWN.
555
556 2005-11-09  Behdad Esfahbod  <behdad@gnome.org>
557
558         * glib/guniprop.c: Use bit hacks instead when checking a general
559         category value against multiple values.
560
561         * glib/gutf8.c: Change ISO10646 to Unicode in docs.
562
563 2005-11-10  Simos Xenitellis  <simos@gnome.org>
564
565         * configure.in: Added tt (Tatar) to ALL_LINGUAS.
566
567 2005-11-05  Tor Lillqvist  <tml@novell.com>
568
569         * glib/giowin32.c (g_io_win32_set_flags): Don't call g_warning().
570         (#320688) Instead set error and return failure.
571
572 2005-11-07  Matthias Clasen  <mclasen@redhat.com>
573
574         * glib/gmain.c (g_main_dispatch): Don't call cb_funcs->unref
575         while holding the context lock.  (#320886, Andy Wingo)
576
577 2005-11-07  Billy Biggs <vektor@dumbterm.net>
578
579         * tests/refcount/Makefile.am: Add a missing reference to libglib
580         in the LDADD for this test.
581
582 2005-11-07  Matthias Clasen  <mclasen@redhat.com>
583
584         * glib/gmem.c (g_allocator_new): We need to set n_preallocs to a
585         nonzero value, otherwise GTK+ 2.8 breaks when compiled against
586         GLib 2.9.  (#320755, Luca Ferretti)
587
588 2005-11-04  Matthias Clasen  <mclasen@redhat.com>
589
590         * glib/Makefile.am: Apply a patch from Behdad Esfahbod to 
591         use a faster lookup table for g_unichar_get_mirror_char().
592         * glib/gmirroringtable.h: The new table.
593         * glib/gunichartables.h: Remove bidi_mirroring_table.
594         * glib/gen-unicode-tables.pl: Don't generate the mirroring
595         table.
596         * glib/glib-mirroring-tab/*: Sources for the program
597         which generated gmirroringtable.h.
598
599         * glib/glist.c: Avoid some code duplication.
600
601         * glib/gscanner.h: Include gdataset.h.  (#320322)
602
603         * glib/gdebug.h: add new GDebugFlag for fatal_criticals
604         * glib/gmessages.c: (_g_debug_init): handle G_DEBUG=fatal_criticals,
605         to help find critical warnings in applications.  (#320017,
606         Vincent Untz)
607
608 2005-11-02  Tor Lillqvist  <tml@novell.com>
609
610         * glib/glib.symbols: Remove large amount of trailing whitespace
611         from one line. Remove #ifdef G_UNDEFINED from around
612         g_hash_table_new and g_hash_table_new_full symbols, what was the
613         purpose of that? Add the g_slice functions.
614
615 Tue Nov  1 16:24:20 2005  Tim Janik  <timj@imendio.com>
616
617         * glib/gmem.[hc]: prepared deprecation of GMemChunk and GAllocator.
618         added g_slice_*() API to allocate and cache small bits of memory.
619         an actuall allocator implementation for g_slice_*() is still pending.
620
621         * glib/gthread.[hc]: changes from a patch by Matthias Clasen.
622         changed GRealThread list to use in-structure *next; fields instead
623         of GSList, in order for thread iteration to not depenend on g_slice_*()
624         indirectly.
625         _g_thread_mem_private_get():
626         _g_thread_mem_private_set(): added accessors for private memory,
627         needed because the ordinary GPrivate implementation relies on GArray
628         and GSList and therefore indirectly on working g_slice_*() allocations.
629
630         * glib/gthread.[hc]:
631         g_thread_foreach(): new public API function to loop over all existing threads.
632
633         * glib/gdataset.c:
634         * glib/gstring.c:
635         * glib/gcache.c:
636         * glib/garray.c: 
637         * glib/gqueue.c:
638         * glib/gslist.c:
639         * glib/glist.c:
640         * glib/ghash.c:
641         * glib/gtree.c:
642         * glib/ghook.c:
643         * glib/gmain.c:
644         * glib/gnode.c:
645         removed GAllocator and free list usages and accompanying locks.
646         use g_slice_*() API to allocate and cache small bits of memory.
647
648         * glib/ghook.h: removed GMemChunk field from public API.
649
650         * glib/gslist.h:
651         * glib/glist.h: deprecate allocator API, provide _free1() for consistency.
652
653         * glib/gnode.h: deprecate allocator API.
654
655         * glib/gmain.c: reordered GPollRec fields so g_slice_free_chain() can
656         be used for poll rec lists.
657
658         * glib/grel.c: removed mem chunk usage, and allocated tuples via g_slice_*().
659         g_relation_destroy(): free all tuples from the all_tuples hash table,
660         this effectively maintains the life time track keeping of tuples.
661         g_relation_delete_tuple(): free tuples which are removed from the
662         all_tuples hash table. this fixes a temporary leak that was present
663         in the memchunk code until the destruction of the relation.
664
665 2005-10-29  Matthias Clasen  <mclasen@redhat.com>
666
667         * tests/convert-test.c: Add some tests for conversions between
668         UTF-8, UCS-4 and UTF-16.
669
670         * glib/gutf8.c (g_utf8_to_ucs4, g_utf8_to_utf16): Fix handling
671         of len == -1, noticed by Morten Welinder.
672
673 2005-10-27  Erdal Ronahi  <erdal.ronahi@gmail.com>
674
675         * configure.in: Added ku (Kurdish) to ALL_LINGUAS
676
677 2005-10-26  Matthias Clasen  <mclasen@redhat.com>
678
679         * glib/gutf8.c (g_ucs4_to_utf8): Don't set items_read twice
680         in the error case, and add some documentation.  (#319806, Morten
681         Welinder)
682
683 2005-10-19  Manish Singh  <yosh@gimp.org>
684
685         * configure.in: Use AC_CHECK_FUNCS for _NSGetEnviron, to get the
686         config.h symbol automatically. Fixes bug #313731.
687
688 2005-10-19  Tor Lillqvist  <tml@novell.com>
689
690         * glib/gwin32.c (g_win32_get_package_installation_directory):
691         Return a g_strdup()ed copy of the value stored in the hash table,
692         so that it can be g_free()d without leaving a dangling pointer in
693         the hash table. (#319232)
694
695 2005-10-06  Matthias Clasen  <mclasen@redhat.com>
696
697         * glib/gunicollate.c (g_utf8_collate_key_for_filename): Handle
698         all-zero sequences correctly.  (#317930, Sebastien Bacher)
699
700 2005-10-05  Matthias Clasen  <mclasen@redhat.com>
701
702         * glib/gmarkup.c (g_markup_escape_text): Doc addition
703
704         * Makefile.am: Add Collation tests.
705
706         * tests/collate/*: Inputs and expected outputs for collation tests.
707
708         * tests/run-collate-tests.sh: Script to run collation tests.
709
710         * tests/unicode-collate.c (main): Rework slightly to make
711         it usable in unit tests. Also test g_utf8_collate_key_for_filename().
712
713 2005-10-01  Behdad Esfahbod  <behdad@gnome.org>
714
715         * docs/reference/glib/tmpl/unicode.sgml:
716         * glib/gen-unicode-tables.pl:
717         * glib/gunibreak.h:
718         * glib/gunichartables.h:
719         * glib/gunicode.h:
720         * tests/casefold.txt:
721         * tests/casemap.txt: Updated to Unicode 4.1.  There are five new
722         GUnicodeBreakType types.  That may break some applications, like
723         Pango <= 1.10.
724
725 2005-09-26  Matthias Clasen  <mclasen@redhat.com>
726
727         * glib/gstrfuncs.c (g_ascii_strtoull): Add details to the 
728         docs.  (#314393, Matthew F. Barnes)
729
730         * glib/glib.symbols:
731         * glib/gprintf.h: Remove g_snprintf() and g_vsnprintf(), since
732         they are already declared in glib.h. This doesn't break documented
733         use of gprintf.h, but should probably be pointed out in the 
734         release notes for 2.10. (#314232, Behdad Esfahbod)
735
736 Tue Sep 20 13:16:04 2005  Tim Janik  <timj@imendio.com>
737
738         * glib/gpattern.c (g_pattern_ph_match): applied significant recursion
739         complexity optimization, based on a patch from Matthias Clasen.
740
741         * tests/patterntest.c: more tests, mostly from matthias.
742
743 2005-09-20  Matthias Clasen  <mclasen@redhat.com>
744
745         * glib/gqueue.c (g_queue_insert_sorted): Correct the docs.
746         (#316703, Mark Drago)
747
748 Mon Sep 19 17:23:23 2005  Tim Janik  <timj@imendio.com>
749
750         * glib/gpattern.c: applied a patch from matthias which checks on the
751         upper bound of GPatternSpec length to optimize matches.
752         cosmetic fixups.
753
754         * tests/patterntest.c: added more match cases.
755
756 2005-09-16  Tor Lillqvist  <tml@novell.com>
757
758         * glib/gstrfuncs.c (g_ascii_strcasecmp, g_ascii_strncasecmp): Add
759         warning to doc comment that these functions should not be used on
760         encodings like CP932.
761
762 2005-09-14  Matthias Clasen  <mclasen@redhat.com>
763
764         * tests/keyfile-test.c: Add a test for grup names of length 1.
765
766         * glib/gkeyfile.c (g_key_file_line_is_group): Accept group names
767         of length 1.  (#316309)
768         
769 2005-09-12  Matthias Clasen  <mclasen@redhat.com>
770
771         * glib/gmarkup.c (g_markup_escape_text): Clarify docs.
772
773 2005-09-11  Sebastian Wilhelmi  <seppi@seppi.de>
774
775         * tests/refcount/Makefile.am (INCLUDES): Link the the refcount
776         tests to the system thread library $(G_THREAD_LIBS). Fixes #313744
777         and #314217.
778
779 2005-09-11  Kjartan Maraas  <kmaraas@gnome.org>
780
781         * glib/gmain.c: (g_child_watch_prepare), (g_child_watch_check),
782         (child_watch_helper_thread): Remove some dead code. Closes
783         bug #315278.
784
785 2005-09-07  Tor Lillqvist  <tml@novell.com>
786
787         * glib/Makefile.am: Create also a console version of the
788         gspawn-win32-helper program, gspawn-win32-helper-console.exe.
789         It's otherwise identical to gspawn-win32-helper.exe, except marked
790         as a console application (linked without the -mwindows option).
791         
792         * glib/gspawn-win32.c (do_spawn_directly, do_spawn_with_pipes):
793         Drop the dont_wait parameter. Its truth value correlated 100% with
794         the NULLness of the exit_status parameter anyway, so it's enough
795         to check whether exit_status is NULL. Invert the sense of the
796         dont_return_handle parameter and rename it to do_return_handle, to
797         make the code easier to read by avoiding double negations.
798
799         (g_spawn_sync_utf8, g_spawn_async_with_pipes_utf8): Modify calls
800         to do_spawn_with_pipes() accordingly.
801
802         (do_spawn_with_pipes): If we have a console, use the console
803         version of the helper program, otherwise use the GUI one. This
804         avoids extra console windows opening up in some situations. (In
805         case a console application uses the GUI gspawn-win32-helper.exe to
806         spawn another console application we would get a separate console
807         for the spawned console application).
808
809         * glib-zip.in: Distribute also gspawn-win32-helper-console.exe.
810
811 2005-09-05  Matthias Clasen  <mclasen@redhat.com>
812
813         * glib/gmappedfile.c (g_mapped_file_new): Report an error
814         if the file is too large.  (#315275, Kjartan Maraas)
815
816         * glib/gkeyfile.c (g_key_file_load_from_fd): The return value
817         of read() is signed.  (#315273, Kjartan Maraas)
818         
819 2005-08-31  Tor Lillqvist  <tml@novell.com>
820
821         * glib/gutils.h: Wrapping atexit() is a bad idea on Windows, where
822         the EXE and each DLL have their own atexit function chains.
823
824         #define g_atexit as atexit instead. This means it has a
825         better chance of doing what the caller wants. For instance,
826         gtkhtml calls g_atexit() registering a function in gtkhtml
827         itself. This caused a crash when g_atexit() was implemented as a
828         function in the GLib DLL. The gtkhtml DLL was already unloaded by
829         the time the GLib DLL got unloaded.
830
831         * glib/gutils.c: #undef the #define mentioned above, to also get a
832         real g_atexit() into the DLL for backward compatibility. Document
833         the Windows behaviour of g_atexit(), and document the varying ways
834         atexit() can behave in the context of dynamically loaded modules
835         on Unix.
836
837 2005-08-31  Matthias Clasen  <mclasen@redhat.com>
838
839         * glib/glib.symbols: 
840         * glib/gquark.h: 
841         * glib/gdataset.c: Add string interning functions.
842
843 2005-08-28  Matthias Clasen  <mclasen@redhat.com>
844
845         * glib/giochannel.c: Unify some near-duplicate strings. (#314654,
846         Clytie Siddall)
847         
848 2005-08-26  Matthias Clasen  <mclasen@redhat.com>
849
850         * configure.in: Bump version to 2.9.0
851
852 2005-08-25  Tor Lillqvist  <tml@novell.com>
853
854         Make also the g_spawn*() functions take parameters in the GLib
855         file name encoding, i.e. UTF-8, on Windows. Has no impact on Unix
856         API or ABI. Like the other GLib API that was earlier changed to
857         use UTF-8 on Windows, the names of the functions that take UTF-8
858         have _utf8 suffixes added by using preprocessor macros in the
859         header file. The old names are kept for functions with the old
860         behaviour, taking parameters in the system codepage, for DLL ABI
861         stability.
862         
863         * glib/gspawn.h: On Win32 add the suffix _utf8 to the names of the
864         g_spawn*() functions.
865         
866         * glib/gspawn-win32.c: Use wide-char API on NT-based
867         Windows. Convert parameters from UTF-8 to wide chars (NT) or
868         system codepage (Win9x) and call the C library _wspawn*() or
869         spawn*() functions respectvely. Add DLL ABI stability versions
870         that take parameters in the system codepage.
871
872         * glib/gspawn-win32-helper.c: On NT-based Windows use the
873         wide-char versions of argv and envp, and use wide-char API to
874         change directory and spawn the program to run. Remove the verbose
875         debugging output, it was too complex to modify for the wide-char
876         features. (Just add temporary debugging printouts if needed, no
877         need to have them permanently in the source.)
878
879         * glib/gspawn.c: Corresponding documentation updates.
880
881         * glib/glib.symbols: Corresponding changes: Mark the ABI stability
882         symbols as PRIVATE, add the new _utf8-suffixed ones.
883
884 2005-08-24  Stepan Kasal  <kasal@ucw.cz>
885
886         * glib/gtypes.h (G_MININT64): Cast the constant to gint64; it is
887         guint64 otherwise and that can produce warnings about comparison
888         between signed and unsigned.
889
890 2005-08-23  Matthias Clasen  <mclasen@redhat.com>
891
892         * glib/gutils.c: Fix the crt_externs.h include.
893
894 2005-08-23  Stepan Kasal  <kasal@ucw.cz>
895
896         * NEWS: Fix spelling of my first name.
897
898 2005-08-23  Matthias Clasen  <mclasen@redhat.com>
899
900         * Bump version
901
902         * === Released 2.8.1 ===
903
904         * NEWS: Updates
905
906 2005-08-20  Hans Breuer  <hans@breuer.org>
907
908         * glib/makefile.msc.in : link with ws2_32.lib
909
910 2005-08-18  Tor Lillqvist  <tml@novell.com>
911
912         * configure.in: Check for <sys/wait.h>
913
914         * glib/gbacktrace.c: Include <sys/wait.h> on if HAVE_SYS_WAIT_H.
915
916 2005-08-18  Ross Burton  <ross@burtonini.com>
917
918         * glib/gstring.c:
919         Optimise single-character insertions.
920         
921         * glib/gutf8.c:
922         Note copied code.
923         
924         * tests/string-test.c:
925         Add tests for new optimisation, and fix a leak.
926
927 2005-08-17  Matthias Clasen  <mclasen@redhat.com>
928
929         * configure.in: Check for crt_externs.h and _NSGetEnviron.
930
931         * glib/gutils.c: On Darwin, include crt-externs.h and
932         define environ using _NSGetEnviron().  (#313731)
933
934 2005-08-16  Stepan Kasal  <kasal@ucw.cz>
935
936         * glib/gutils.c (g_get_any_init): Move the body of the big if...
937         (g_get_any_init_do): ... to this new function.
938         (g_get_any_init): Declare as inline.
939         (g_get_any_init_locked): New inline function, does the locking.
940         Make use of these two throughout the code.
941
942 2005-08-15  Matthias Clasen  <mclasen@redhat.com>
943
944         * glib/gbacktrace.c (g_on_error_stack_trace): Wait for
945         the child process and then simply return. This makes 
946         The "S" option work as documented in g_on_error_query().
947         (#313125, Matthew F. Barnes)
948
949         * glib/gunicode.h: Update the link to Unicode category
950         values.  (#313369, Behnam Esfahbod)
951
952         * glib/gqueue.c (g_queue_find_custom): Clarify docs
953         a little.  (#311727, Tristan van Berkom)
954
955         * glib/abicheck.sh, gobject/abicheck.sh: Make the 
956         check work on ia64 too, where some symbols ended up 
957         in yet another section.
958