Add a Since: tag
[platform/upstream/glib.git] / ChangeLog
1 2009-03-01  Matthias Clasen <mclasen@redhat.com>
2
3         * glib/gthread.c: Fix docs.
4
5 2009-03-01  Matthias Clasen <mclasen@redhat.com>
6
7         * tests/slice-threadinit.c: Change one magazine size from 77 to 81
8         to make distcheck work on x86-64.
9
10 2009-02-27  Tor Lillqvist  <tml@novell.com>
11
12         Bug 167569 - g_string_append_printf crashes on win32 when used
13         with a NULL argument
14
15         * glib/gnulib/vasnprintf.c (vasnprintf): Add workaround for buggy
16         programs. Patch by Owen.
17
18 2009-02-23  Paolo Borelli  <pborelli@katamail.com>
19
20         * glib/gutf8.c (_g_utf8_make_valid):
21         sanity check the input paramter. 
22
23 2009-02-23  Tor Lillqvist  <tml@novell.com>
24
25         Bug 570501 - g_win32_get_system_data_dirs uses invalid conversion
26         of function pointer to object pointer
27
28         * glib/gutils.c (g_win32_get_system_data_dirs_for_module): Change
29         the type of the function's parameter to be explicitly a function
30         pointer.
31
32         * glib/gutils.h (_g_win32_get_system_data_dirs): Modify
33         declaration and the only caller, the inline
34         _g_win32_get_system_data_dirs(), accordingly. Add comments
35         pointing out these are internal GLib functions.
36
37 2009-02-22  Matthias Clasen  <mclasen@redhat.com>
38
39         Bug 572151 – “it's” and “its” confused in docs and comments
40
41         * Fix "it's" vs "its" confusion throughout the source. Patch
42         by Will Thompson.
43
44 2009-02-22  Matthias Clasen  <mclasen@redhat.com>
45
46         Bug 572464 – Doc for g_file_get_contents
47
48         * glib/gfileutils.c (g_file_get_contents): Improve docs. Pointed
49         out by Øystein Johansen.
50
51 2009-02-22  Matthias Clasen  <mclasen@redhat.com>
52
53         Bug 572672 – glib/gthread.c: argument is different type
54
55         * glib/gthread.c (g_once_init_leave): Add a necessary cast back.
56         Pointed out by Kazuki Iwamoto.
57
58 2009-02-17  Matthias Clasen  <mclasen@redhat.com>
59
60         * configure.in: Bump version
61
62 2009-02-17  Matthias Clasen  <mclasen@redhat.com>
63
64         * === Released 2.19.8 ===
65
66 2009-02-17  Matthias Clasen  <mclasen@redhat.com>
67
68         Fix strict aliasing warnings and viiolations to make GLib and
69         GLib users buildable with gcc 4.4. Patch by Jakub Jelinek.
70
71         * glib/gatomic.[hc]: Add G_GNUC_MAY_ALIAS to pointer arguments,
72         fix macro versions to only operate on objects of the same size.
73
74         * glib/gdataset.c:
75         * glib/gthread.[hc]:
76         * glib/gdatasetprivate.h: Remove unnecessary casts in 
77         g_atomic_pointer_get calls.
78         
79 2009-02-16  Matthias Clasen  <mclasen@redhat.com>
80
81         * configure.in: Bump version
82
83 2009-02-16  Matthias Clasen  <mclasen@redhat.com>
84
85         * === Released 2.19.7 ===
86
87 2009-02-16  Matthias Clasen  <mclasen@redhat.com>
88
89         * NEWS: Updates
90
91 2009-02-13  Mathias Hasselmann  <hasselmm@gnome.org>
92
93         Add note about g_utf8_offset_to_pointer() not checking string
94         boundaries.
95
96         * glib/gutf8.c (g_utf8_offset_to_pointer()): See summary.
97
98 2999-02-11  Matthias Clasen  <mclasen@redhat.com>
99
100         Bug 523742 – Use noinst for non-installable libraries
101
102         * tests/Makefile.am: use noninst_LTLIBRARIES for noninstalled 
103         libraries.Patch by Björn Lindqvist
104
105 2009-02-06  Murray Cumming  <murrayc@murrayc.com>
106
107         * gio/gfilterinputstream.c:
108         * gio/gfilteroutputstream.c: Correct the grammar in some property 
109         documentation.
110         * gio/gdatainputstream.c:
111         * glib/gregex.c: Correct the spelling of 
112         occurrence in documentation.
113
114 2009-02-02  Matthias Clasen  <mclasen@redhat.com>
115
116         * configure.in: Bump version
117
118 2009-02-02  Matthias Clasen  <mclasen@redhat.com>
119
120         * === Released 2.19.6 ===
121
122 2009-02-02  Matthias Clasen  <mclasen@redhat.com>
123
124         * configure.in: Bump version
125
126 2009-01-31  Matthias Clasen  <mclasen@redhat.com>
127
128         * NEWS: Updates
129
130 2009-01-31  Matthias Clasen  <mclasen@redhat.com>
131
132         Bug 569105 – g_time_val_to_iso8601() assumes time_t==long
133
134         * glib/gtimer.c (g_time_val_to_iso8601): Pass a time_t* to gmtime().
135         Pointed out by Matthias Drochner.
136
137 2009-01-27  Christian Persch  <chpe@gnome.org>
138
139         * configure.in:
140         * docs/reference/glib/glib-sections.txt:
141         * docs/reference/macros_misc.sgml:
142         * docs/reference/glib/tmpl/types.sgml: Add
143         G_GOFFSET_FORMAT and friends. Bug #563141.
144
145 2009-01-23  Stefan Kost  <ensonic@users.sf.net>
146
147         * docs/reference/glib/Makefile.am:
148           Add SCAN_OPTIONS=--ignore-decorators="GLIB_VAR" to Makefile.am to fix
149           on problem with the doc build.
150
151 2009-01-21  Tor Lillqvist  <tml@novell.com>
152
153         * glib/gwin32.c (g_win32_locale_filename_from_utf8): Drop the code
154         in the else branch of #if GLIB_CHECK_VERSION (2, 19, 0). Drop
155         unused variables.
156
157 2009-01-20  Matthias Clasen  <mclasen@redhat.com>
158
159         Bug 568294 – A wrong reference in the description of 
160         g_bookmark_file_add_application()
161
162         * glib/gbookmarkfile.c (g_bookmark_file_add_application):
163         Fix a typo in the docs. Pointed out by Takeshi Aihana
164
165 2009-01-19  Matthias Clasen  <mclasen@redhat.com>
166
167         * === Released 2.19.5 ===
168
169 2009-01-18  Matthias Clasen  <mclasen@redhat.com>
170
171         * glib/gstrfuncs.c (g_strdup_printf): Fix a doc typo.
172
173 2009-01-18  Matthias Clasen  <mclasen@redhat.com>
174
175         * NEWS: Updates
176
177 2009-01-18  Matthias Clasen  <mclasen@redhat.com>
178
179         Bug 512779 – --disable-regex breaks compilation
180         
181         * configure.in: Define an ENABLE_REGEX macro
182
183         * gobject/gboxed.c: Don't refer to g_regex_ref if ENABLE_REGEX
184         is not defined.
185
186 2009-01-18  Matthias Clasen  <mclasen@redhat.com>
187
188         * glib/gbsearcharray.h: Quell some compiler warnings.
189
190 2009-01-18  Matthias Clasen  <mclasen@redhat.com>
191
192         * glib/pcre: Update to PCRE 7.8
193
194 2009-01-17  Matthias Clasen  <mclasen@redhat.com>
195
196         Bug 567977 – textdomain() macro should not return NULL when 
197         ENABLE_NLS is not set
198
199         * glib/glibintl.h: If !ENABLE_NLS, make textomain() macro 
200         return "messages" in case of a NULL argument. Patch by
201         Peter Kjellerstedt.
202
203 2009-01-17  Matthias Clasen  <mclasen@redhat.com>
204
205         Bug 567838 – G_STRUCT_OFFSETOF fails to compile under icc 9.1
206
207         * glib/gmacros.h (G_STRUCT_OFFSETOF): Use offsetof instead of 
208         __builtin_offsetof, for icc's sake. Proposed by Hrvoje Niksic.
209
210 2009-01-13  Matthias Clasen  <mclasen@redhat.com>
211
212         Bug 564728 Add function to decode base64 encoded data in place
213
214         * glib/glib.symbols:
215         * glib/gbase64.[hc] (g_base64_decode_inplace): New convenience
216         API to decode in place, overwriting the input string. Patch by
217         Sebastian Dröge.
218
219 2009-01-12  Matthias Clasen  <mclasen@redhat.com>
220         
221         * glib/gtestutils.c (g_strcmp0): Be more explicit about the NULL
222         handling in the docs.
223
224 2009-01-12  Tor Lillqvist  <tml@novell.com>
225
226         * glib/goption.c (parse_arg): Guard against a mis-written
227         GOptionArgFunc that has returned FALSE but not set the GError.
228
229 2009-01-10  Matthias Clasen  <mclasen@redhat.com>
230
231         Bug 566573 – g_match_info_fetch_pos docs
232
233         * glib/gregex.c: Mention that positions are in bytes. 
234         Proposed by Christian Persch.
235
236 2009-01-10  Matthias Clasen  <mclasen@redhat.com>
237
238         Bug 566569 – gregex docs clarification
239
240         * glib/gregex.c: Copy the warning about @string to all
241         relevant docs. Proposed by Christian Persch
242
243 2009-01-09  Tor Lillqvist  <tml@iki.fi>
244
245         Bug 567138 - get_package_directory_from_module() does not free its
246         lock when failing
247
248         * glib/gwin32.c (get_package_directory_from_module): Obvious fix.
249
250 2009-01-05  Matthias Clasen  <mclasen@redhat.com>
251
252         * configure.in: Bump version
253
254 2009-01-05  Matthias Clasen  <mclasen@redhat.com>
255
256         * === Released 2.19.4 ===
257
258         * NEWS: Updates
259
260 2009-01-05  Dan Winship  <danw@gnome.org>
261
262         * glib/tests/.gitignore: update
263
264         * tests/.gitignore: update, sort
265
266         * tests/gobject/.gitignore: add
267
268 2009-01-05  Tor Lillqvist  <tml@iki.fi>
269
270         Bug 566348 - g_file_open_tmp uses the wrong g_mkstemp on win32
271
272         * glib/gfileutils.c: Move the binary compatibility versions of
273         g_file_test(), g_file_get_contents(), g_mkstemp() and
274         g_file_open_tmp() last in the file. Remove the restriction that
275         the XXXXXX is last in the template in the binary compatibility
276         version of g_mkstemp(). Thanks to Morten Welinder and Jody
277         Goldberg.
278
279 2009-01-03  Matthias Clasen  <mclasen@redhat.com>
280
281         * NEWS: Updates
282
283 2009-01-02  Matthias Clasen  <mclasen@redhat.com>
284
285         * glib/gregex.c: Add an example to the g_regex_replace_eval() docs.
286
287 2009-01-02  Matthias Clasen  <mclasen@redhat.com>
288
289         * glib/gstrfuncs.c: Move docs inline, adding references to g_free()
290         where appropriate.
291
292 2009-01-02  Matthias Clasen  <mclasen@redhat.com>
293
294         Bug 564210 – SUN Studio 12 has supported visibility attribute
295
296         * configure.in: Use visibility attribute for new enough sun cc.
297         Patch by Chris Wang
298
299 2008-12-30  Matthias Clasen  <mclasen@redhat.com>
300
301         Bug 565905 – There is no named g_context_group_set_translation_domain()
302         in GOption command line parser
303
304         * glib/goption.c: Fix a wrong reference in the docs, reported by
305         Takeshi Aihana.
306
307 2008-12-30  Matthias Clasen  <mclasen@redhat.com>
308
309         * glib/gspawn.c:
310         * glib/gthread.c:
311         * glib/goption.c:
312         * glib/gmain.c:
313         * glib/gkeyfile.c:
314         * glib/gfileutils.c:
315         * glib/gdate.c:
316         * glib/garray.c:
317         * glib/gbookmarkfile.c:
318         * glib/gbacktrace.c: Fix some compiler warnings.
319
320 2008-12-19  Tor Lillqvist  <tml@novell.com>
321
322         * glib/glib.symbols: Add g_thread_get_initialized here,
323         too. Surround g_test_config_vars with ifdef INCLUDE_VARIABLES.
324
325 2008-12-18  Mike Kestner <mkestner@novell.com>
326
327         Bug 560676 - function access for g_threads_supported
328
329         * glib/gthreads.c (g_thread_get_initialized): new accessor for
330         g_threads_supported macro.
331         * glib/gthreads.h: add g_thread_get_initialized
332
333 2008-12-15  Matthias Clasen <mclasen@redhat.com>
334
335         * configure.in: Bump version
336
337         * === Released 2.19.3 ===
338
339 2008-12-13  Matthias Clasen <mclasen@redhat.com>
340
341         * NEWS: Updates
342
343 2008-12-12  Dan Winship  <danw@gnome.org>
344
345         * glib/pltcheck.sh: make this work on x86_64
346
347 2008-12-12  Behdad Esfahbod  <behdad@gnome.org>
348
349         * glib/guniprop.c: Improve g_unichar_iswide_cjk() docs.
350
351 2008-12-07  Matthias Clasen  <mclasen@redhat.com>
352
353         Bug 508021 – Add support for the CRIS and CRISv32 architectures
354
355         * configure.in: 
356         * glib/gatomic.c: Add an implementation for the CRIS and CRISv32 
357         architectures, by Peter Kjellerstedt
358
359 2008-12-02  Matthias Clasen  <mclasen@redhat.com>
360
361         * glib/gkeyfile.c: Some more documentation additions.
362
363 2008-12-01  Matthias Clasen  <mclasen@redhat.com>
364
365         * configure.in: Bump version
366
367 2008-12-01  Matthias Clasen  <mclasen@redhat.com>
368
369         * === Released 2.19.2 ===
370
371 2008-12-01  Matthias Clasen  <mclasen@redhat.com>
372
373         * configure.in: Bump version
374
375 2008-12-01  Matthias Clasen  <mclasen@redhat.com>
376
377         * === Released 2.19.1 ===
378
379         * NEWS: Updates
380
381 2008-11-28  Behdad Esfahbod  <behdad@gnome.org>
382
383         Bug 562639 – g_parse_debug_flags() parsing "help"
384
385         * glib/gutils.c (g_parse_debug_string): Print available keys if
386         string is "help".
387
388 2008-11-28  Behdad Esfahbod  <behdad@gnome.org>
389
390         Bug 562638 – GDebugKey key member should be const
391
392         * glib/gutils.h: Change GDebugKey key member from gchar * to
393         const gchar *.
394
395 2008-11-28  Matthias Clasen  <mclasen@redhat.com>
396
397         Bug 547264 – Missing "no flags" flag
398
399         * glib/gregex.c: Mention 0 as value for 'no flags' in some places..
400         Pointed out by Bastien Nocera
401
402 2008-11-28  Matthias Clasen  <mclasen@redhat.com>
403
404         Bug 562544 – g_key_file_get_string and g_key_file_get_value
405         documentation does not explain the difference
406
407         * glib/gkeyfile.c (g_key_file_get_string): Explain the difference
408         to g_key_file_get_value(). Pointed out by Mart Raudsepp.
409
410 2008-11-28  Matthias Clasen  <mclasen@redhat.com>
411
412         * glib/gkeyfile.c: Refer to @locale parameters as locale identifier
413         in docs.
414
415 2008-11-28  Matthias Clasen  <mclasen@redhat.com>
416
417         Bug 557603 – carbon check output misplaced
418
419         * configure.in: Call AC_PROG_CPP early to avoid it messing up
420         carbon check output. Fix proposed by Christian Persch
421
422 2008-11-28  Matthias Clasen  <mclasen@redhat.com>
423
424         Bug 559110 – Do not include libintl.h after glibintl.h
425
426         * glib/glibintl.h: Define bind_textdomain_codeset in the DISABLE_NLS
427         branch. Patch by Peter Kjellerstedt.
428
429         * glib/gutil.c: Don't include libintl.h directly.
430
431 2008-11-28  Matthias Clasen  <mclasen@redhat.com>
432
433         Bug 562378 – callback return value not respected for callback option
434         with no arg
435
436         * glib/goption.c (parse_long_option): Return the parse_arg return
437         value even for no-arg callbacks. Patch by Christian Persch
438
439         * glib/tests/option-context.c: Add a test for a callback which
440         returns FALSE.
441
442 2008-11-23  Christian Persch  <chpe@gnome.org>
443
444         Bug 559413 – g_option_group_set_error_hook docs buglet
445
446         * glib/goption.c: Doc fix.
447
448 2008-11-23  Christian Persch  <chpe@gnome.org>
449
450         Bug 560568 – gkeyfile docs buglet
451
452         * glib/gkeyfile.c: Clarify the docs.
453
454 2008-11-23  Christian Persch  <chpe@gnome.org>
455
456         Bug 560569 – gkeyfile doesn't use the set list_separator in some cases
457
458         * glib/gkeyfile.c: (g_key_file_get_locale_string_list),
459         (g_key_file_set_locale_string_list), (g_key_file_set_integer_list),
460         (g_key_file_set_double_list): Use the key file's list separator character,
461         not the default one.
462
463         * glib/tests/keyfile.c: (test_lists), (test_reload_idempotency): Test
464         this.
465
466 2008-11-21  Christophe Fergeau <teuf@gnome.org>
467
468         Bug 561212 – GFileReadMoreCallback API doc refers to non-existant function
469
470         * gio/giotypes.h: fix name of function referred to in
471         GFileReadMoreCallback API documentation
472
473 2008-11-21  Matthias Clasen <mclasen@redhat.com>
474
475         * configure.in: Bump gtk-doc dependency to 1.11 for
476         nicer index-generation.
477
478 2008-11-14  Matthias Clasen <mclasen@redhat.com>
479
480         * NEWS: Updates
481
482 2008-11-04  Christian Dywan  <christian@imendio.com>
483
484         Bug 558672 – NULL key lookup using g_hash_table_lookup_extended()
485
486         * glib/ghash.c:
487         Clarify g_hash_table_lookup_extended
488
489 2008-11-02  Tor Lillqvist  <tml@novell.com>
490
491         * configure.in: Expand also build/win32/vs9/Makefile.
492
493 2008-10-31  Christian Dywan  <christian@imendio.com>
494
495         Bug 558513 – g_warn_if_fail FIXME in gtestutils
496
497         * glib/gtestutils.c (g_test_log_send):
498         Turn g_assert into g_warn_if_fail as advised
499
500 2008-10-31  Grahame Bowland  <grahame@angrygoats.net>
501
502         Bug 558185 – 'parent' variable in g_local_file_get_child_for_display_name() 
503         hits g_object_unref(NULL) assertion
504
505         * gio/glocalfile.c: 
506         - remove unused variable. Patch by Matt Johnston <matt@ucc.asn.au>
507
508 2008-10-29 16:11:14  Tim Janik  <timj@gtk.org>
509
510         * glib/gmacros.h: added G_PASTE() and G_STATIC_ASSERT(), based on
511         patches by Christian Persch and Christian Dywan. Fixes:
512         Bug 558381 - Add support for compile time assertions
513
514 2008-10-27  Joseph Pingenot  <gnomesvn@digitasaru.net>
515
516         * glib/ghash.c: changed "#GHashTableIterator" to "#GHashTableIter"
517         in the documentation-comments above g_hash_table_foreach_remove()
518         and g_hash_table_foreach_steal() to correctly name and link to
519         GHashTableIter.  This affects the GNOME documentation website
520         as well, so further steps are likely necessary beyond this subproject..
521
522 2008-10-23 Matthias Clasen <mclasen@redhat.com>
523
524         Bug 557210 – g_compute_checksum_for_* asserts with less than 2 bytes
525
526         * glib/gchecksum.c (g_compute_checksum_for_data): Accept 
527         lengths < 2. Patch by Tommi Komulainen
528
529         * tests/checksum-test.c: Add a test for this
530
531 2008-10-23 Matthias Clasen <mclasen@redhat.com>
532
533         Bug 556921 – gpoll.h breaks hal compilation
534
535         * glib/gpoll.h: Include gtypes.h. Pointed out by Anis Elleuch
536
537 2008-10-20 Christian Persch <chpe@gnome.org>
538
539         Bug 557087 – mem leak in g_content_types_get_registered
540                 
541         * gio/gcontenttype.c: Plug a mem leak.
542
543 2008-10-19  Michael Natterer  <mitch@imendio.com>
544
545         Bug 556186 – gpoll.h breaks gmain.h inclusion
546
547         * glib/gpoll.h: different fix: disallow direct inclusion
548         unconditionally again but make an exception if included from
549         gmain.h to maintain compatibility.
550
551 2008-10-16  Matthias Clasen <mclasen@redhat.com>
552
553         * configure.in: Bump version to 2.19.1
554
555         * === Released 2.19.0 ===
556
557         * NEWS: Updates
558
559 2008-10-14  Christian Persch <chpe@gnome.org>
560
561         Bug 556186 – gpoll.h breaks gmain.h inclusion
562
563         * glib/gpoll.h: Only disallow direct inclusion when
564         G_DISABLE_SINGLE_INCLUDES is defined.
565
566 2008-10-13  Sven Herzberg  <sven@imendio.com>
567
568         Bug 556101 – static mutex yields warnings with g++
569         Reviewed by Tim Janik
570
571         * configure.in: added an intermediate cast to gpointer
572
573 2008-10-13  Christian Persch <chpe@gnome.org>
574
575         Bug 555311 – format not a string literal and no format arguments
576
577         * glib/gmarkup.c:
578         * glib/gshell.c: Use literal errors where appropriate.
579
580 2008-10-10  Behdad Esfahbod  <behdad@gnome.org>
581
582         Bug 551355 – [PATCH] Make glib build with libtool 2.2
583
584         * autogen.sh: Accept libtool 2.2.   We are moving towards having
585         it working.
586
587 2008-10-10  Behdad Esfahbod  <behdad@gnome.org>
588
589         * configure.in: With libtool 2.x, regenerate libtool early.
590         Based on bug 552107, patch by Patryk Zawadzki
591
592 2008-10-10  Matthias Clasen  <mclasen@redhat.com>
593
594         Bug 554557 – Patch to fix gcc warnings about missing format 
595         specifiers
596
597         * glib/gmarkup.c:
598         * glib/gshell.c:
599         * glib/grel.c: Fix gcc warnings. Patch by Kjartan Maraas
600
601 2008-10-10  Matthias Clasen  <mclasen@redhat.com>
602
603         Bug 552861 – glib-2.0.m4 calls system(3) without storing its result
604
605         * m4macros/glib-2.0.m4: Cosmetic change to make -Werror happy.
606         Patch by Andreas Köhler
607
608 2008-10-08  Christian Persch  <chpe@gnome.org>
609
610         Bug 555313 – GFileAttribute boxed type get_type function should
611         use usual get_type pattern
612
613         * gio/gfileattribute.c (g_file_attribute_info_list_get_type): Use
614         g_once_init_enter/leave.
615
616 2008-10-08  Christian Persch  <chpe@gnome.org>
617
618         Bug 555314 – mem leak in gmarkup
619
620         * glib/gmarkup.c: (g_markup_parse_context_parse): Plug a mem leak.
621
622 2008-10-08  Tor Lillqvist  <tml@novell.com>
623
624         Bug 554790 - g_convert() misbehaves with winiconv versions
625
626         * glib/win_iconv.c (kernel_mbtowc): If converting from ASCII,
627         explicitly check for and reject 8bit chars. MultiByteToWideChar()
628         doesn't, at least not on XP.
629
630 2008-10-06  Matthias Clasen  <mclasen@redhat.com>
631
632         * glib/gtypes.h: Properly include gmacros.h
633
634 2008-10-06  Behdad Esfahbod  <behdad@gnome.org>
635
636         Bug 555309 – giochannel breaks on error
637         Patch from Christian Persch
638
639         * glib/giounix.c (g_io_unix_read), (g_io_unix_write),
640         (g_io_unix_seek), (g_io_unix_close), (g_io_unix_set_flags):
641         Don't shadow err.  Oops!
642
643 2008-10-06  Christophe Fergeau  <teuf@gnome.org>
644
645         Bug 555224 – Improve g_format_size_for_display doc
646         
647         * glib/gfileutils.c: change g_format_size_for_display API doc to
648         explicitly say that the returned string has to be freed. Change
649         spelling of "newly allocated" to "newly-allocated" in g_file_read_link
650         API doc to be more consistent with what is done in that file.
651
652 2008-10-01  David Zeuthen  <davidz@redhat.com>
653
654         * README.in: Add "Notes about glib 2.20" section detailing the
655         ramifications of the patch from bug #528670.
656
657 2008-09-30  Behdad Esfahbod  <behdad@gnome.org>
658
659         Bug 554092 – glib doesn't return G_FILE_ERROR_NOENT et al on OS X
660
661         * glib/giounix.c (g_io_unix_read), (g_io_unix_write),
662         (g_io_unix_seek), (g_io_unix_close), (g_io_unix_set_flags),
663         (g_io_unix_get_flags), (g_io_channel_new_file):
664         Like mclasen says: "well, thats the way errno works...,
665         save it or loose it".  Save errno.
666
667 2008-09-30  Tor Lillqvist  <tml@novell.com>
668
669         * Makefile.decl
670         * glib/tests/Makefile.am: Bypass gtester related stuff on Windows.
671
672 2008-09-30  Tor Lillqvist  <tml@novell.com>
673
674         * glib/gprintf.c
675         * glib/gnulib/vasnprintf.c: Don't define _GNU_SOURCE on Windows,
676         as _GNU_SOURCE has unintended side effects when compiling against
677         newest mingw headers.
678
679 2008-09-26  Dan Winship  <danw@gnome.org>
680
681         Bug 553447 – g_assert_no_error()
682
683         * glib/gtestutils.h (g_assert_no_error, g_assert_error): Macros to
684         assert that a GError is not set, or else is set to a particular
685         error.
686
687         * glib/gtestutils.c (g_assertion_message_error): utility for
688         those macros
689
690         * glib/tests/keyfile.c:
691         * tests/asyncqueue-test.c:
692         * tests/bookmarkfile-test.c:
693         * tests/convert-test.c:
694         * tests/file-test.c: Use g_assert_error/g_assert_no_error
695
696 2008-09-26  Dan Winship  <danw@gnome.org>
697
698         * glib/gthreadpool.c (wakeup_thread_marker): make this a "const
699         gpointer" rather than a gconstpointer to avoid warnings later
700
701         * glib/pcre/pcre_ucp_searchfuncs.c:
702         * glib/pcre/pcre_valid_utf8.c: #include "config.h"
703
704         * glib/tests/printf.c (test_d): fool gcc into not warning about
705         some printf format strings that we know are dubious
706
707 2008-09-26  Matthias Clasen  <mclasen@redhat.com>
708
709         Bug 553857 – gbacktrace.h requires signal.h
710
711         * glib/gbacktrace.h: Include signal.h for raise(). 
712         Pointed out by Sebastien Bacher
713
714 2008-09-26  Matthias Clasen  <mclasen@redhat.com>
715
716         Bug 553724 – python interpretter path not patched in correctly
717
718         * glib/Makefile.am: Fix the sed magic to replace python.
719
720 2008-09-26  Matthias Clasen  <mclasen@redhat.com>
721
722         * glib/gmain.c: Add some more docs.
723
724         * glib/giochannel.c: Move more docs inline, and improve them
725         on the way.
726
727 2008-09-25  Tor Lillqvist  <tml@novell.com>
728
729         Bug 553820 - gpoll.c: undeclared identifier
730
731         * glib/gmain.c
732         * glib/gpoll.c: Make the g_poll() function non-static also on
733         Windows. Prefix an underscore to the g_main_poll_debug variable
734         and make it non-static in gmain.c so that it can be used in
735         gpoll.c. Add back missing variable declaration.
736
737 2008-09-25  Tor Lillqvist  <tml@novell.com>
738
739         * glib/gspawn-win32.c (do_spawn_with_pipes) (do_spawn_directly):
740         Just ignore the child_setup function, never call it. The is no
741         situation in which it could be useful on Windows. Do print a
742         warning, like before.
743
744         * glib/gspawn.c (g_spawn_async_with_pipes): Corresponding change
745         in documentation.
746
747 2008-09-24  Sven Herzberg  <sven@imendio.com>
748
749         Be a little more explcit in the docs. Includes Owen's requested
750         changes.
751
752         * glib/gmain.c: improved documentation for g_source_attach() and
753         g_source_destroy()
754
755 2008-09-23  Michael Natterer  <mitch@imendio.com>
756
757         * glib/glib.h: #include <glib/gpoll.h>
758
759         * glib/gpoll.h: #error out if gpoll.h is included directly.
760
761         * glib/gpoll.c: remove trailing whitespace.
762
763 2008-09-23  Dan Winship  <danw@gnome.org>
764
765         * glib/gpoll.[ch] (g_poll): Move this out of gmain.c and make it part
766         of the public API. (Part of Bug 505361 - gunixinputstream.c assumes
767         poll() available.)
768
769 2008-09-23  Tor Lillqvist  <tml@novell.com>
770
771         * glib/gmain.c (poll_rest) [Win32]: Fix embarrassing bug: I was
772         passing an incorrect third parameter to memmove(), had forgotten
773         to multiply by the size of the table entry. Just use a for loop
774         instead, clearer. Odd I didn't notice when testing this code.
775
776 2008-09-19  Hans Petter Jansson  <hpj@novell.com>
777
778         Rewrite most of GHashTable to use open addressing with quadratic
779         probing instead of chaining. This has the potential to reduce memory
780         fragmentation significantly, while being slightly faster due to
781         better locality and no need to call alloc/free functions for nodes.
782         Benchmarks suggest it also uses less memory overall.
783
784         * glib/ghash.c (prime_mod): Table of suitable primes for
785         initial-probe distribution.
786         (g_hash_table_set_shift): New function.
787         (g_hash_table_find_closest_shift): New function.
788         (g_hash_table_set_shift_from_size): New function.
789         (g_hash_table_lookup_node_for_insertion): New function.
790         (g_hash_table_lookup_node): Rewritten to return node index instead of
791         pointer, use quadratic probe on flat table, and not return insertion
792         data. The latter saves some computation for read-only lookups.
793         (g_hash_table_remove_node): Rewrite to take a pointer directly to the
794         node structure to remove, and clear that. Remove unlinking code.
795         (g_hash_table_remove_all_nodes): Rewrite to not clear nodes
796         individually, but en masse using memset () after potentially calling
797         notify functions.
798         (iter_remove_or_steal): Use new data structure and algorithm. Vastly
799         simplified - now just a call to g_hash_table_remove_node ().
800         (g_hash_table_resize): New resize code, re-indexing with new prime
801         and cleaning up tombstones.
802         (g_hash_table_maybe_resize): Table may hold 8 buckets minimum, no less
803         than 1/4 load excluding tombstones, and no more than 15/16 load
804         including tombstones. These numbers are the results of a lot of
805         benchmarking with multiple complex applications, and should not be
806         changed lightly.
807         (g_hash_table_iter_next)
808         (g_hash_table_lookup)
809         (g_hash_table_lookup_extended)
810         (g_hash_table_insert_internal)
811         (g_hash_table_remove_internal)
812         (g_hash_table_foreach_remove_or_steal)
813         (g_hash_table_foreach)
814         (g_hash_table_find)
815         (g_hash_table_get_keys)
816         (g_hash_table_get_values): Use new data structure and algorithm,
817         fairly trivial changes.
818
819 2008-09-19  Tor Lillqvist  <tml@novell.com>
820
821         * glib-zip.in: Look for man pages in share/man.
822
823         * glib/gutils.c (_glib_get_dll_directory)
824         * glib/gspawn-win32.c (do_spawn_with_pipes): Be a bit less
825         restrictive, look for the helper programs in the same folder where
826         the GLib DLL is, not necessarily in a "bin" subfolder of the top
827         GLib installation folder.
828
829 2008-09-18  Matthias Clasen <mclasen@redhat.com>
830
831         * configure.in: Bump version to 2.19.0
832
833         * ChangeLog.pre-2-18: rotate ChangeLog
834         
835         * === branch for 2.18 ===