Save errno before calling other funcs that potentially alter it. Bug
[platform/upstream/glib.git] / ChangeLog
1 2008-02-06  Christian Persch  <chpe@gnome.org>
2
3         * gio/gdesktopappinfo.c: (ensure_dir):
4         * gio/glocalfile.c: (g_local_file_query_filesystem_info),
5         (g_local_file_read), (g_local_file_delete), (g_local_file_trash),
6         (g_local_file_move):
7         * gio/glocalfileinfo.c: (set_xattr), (_g_local_file_info_get),
8         (_g_local_file_info_get_from_fd), (set_unix_mode),
9         (set_unix_uid_gid), (set_symlink), (set_mtime_atime):
10         * gio/glocalfileinputstream.c: (g_local_file_input_stream_read),
11         (g_local_file_input_stream_skip),
12         (g_local_file_input_stream_close),
13         (g_local_file_input_stream_seek):
14         * gio/glocalfileoutputstream.c: (g_local_file_output_stream_write),
15         (g_local_file_output_stream_close),
16         (g_local_file_output_stream_seek),
17         (g_local_file_output_stream_truncate), (copy_file_data),
18         (handle_overwrite_open):
19         * gio/gunixinputstream.c: (g_unix_input_stream_read),
20         (g_unix_input_stream_close), (read_async_cb), (close_async_cb):
21         * gio/gunixoutputstream.c: (g_unix_output_stream_write),
22         (g_unix_output_stream_close), (write_async_cb), (close_async_cb): Save
23         errno before calling other funcs that potentially alter it. Bug
24         #514766.
25
26 2008-02-05 18:42:42  Tim Janik  <timj@imendio.com>
27
28         * configure.in: generate gobject/tests/Makefile.
29
30 2008-02-05  Tor Lillqvist  <tml@novell.com>
31
32         * glib-zip.in: Include the gio import library and gio-2.0.pc in
33         the developer zipfile.
34
35 2008-02-02  Jonathon Jongsma  <jjongsma@gnome.org>
36
37         * gio/gbufferedoutputstream.c:
38         * gio/gbufferedoutputstream.h: modify the new_sized() constructor to take a
39         gsize param instead of guint to match the GBufferedInputStream constructor.
40
41 2008-02-03  Hans Breuer  <hans@breuer.org>
42
43         * **/makefile.msc.in : update
44
45 2008-02-03  Sebastian Dröge  <slomo@circular-chaos.org>
46
47         * configure.in: Check for gmtime_r. Missing part of bug #511807.
48
49 2008-02-01  Yannig Marchegay  <yannig@marchegay.org>
50
51         * configure.in: Add oc since oc.po is back.
52
53 2008-01-31  Michael Natterer  <mitch@imendio.com>
54
55         * glib/gmem.c: use %G_GSIZE_FORMAT instead of %lu since sizes have
56         changed from gulong to gsize in this file.
57
58 2008-01-30  Johan Dahlin  <johan@gnome.org>
59
60         * configure.in: Remove oc since oc.po is gone.
61
62 2008-01-30  Wouter Bolsterlee  <wbolster@svn.gnome.org>
63
64         * glib/gchecksum.c:
65         * glib/gtestutils.c:
66         * glib/gutils.c:
67
68         Fixed gtk-doc warnings by updating the documentation of
69         various functions.
70
71 2008-01-29  Christian Persch  <chpe@gnome.org>
72
73         * docs/reference/glib/tmpl/macros_misc.sgml: G_GNUC_[PRETTY_]FUNCTION
74         are deprecated since 2.16, not 2.14.
75
76 2008-01-29 14:58:31  Tim Janik  <timj@imendio.com>
77
78         * glib/gmem.[hc]: changed size argument type from gulong to gsize as
79         discussed on gtk-devel-list:
80           http://mail.gnome.org/archives/gtk-devel-list/2007-March/msg00062.html
81         this should be ABI compatible on all platforms except win64 for which
82         no ABI binding port exists yet.
83
84 2008-01-29  Sebastian Wilhelmi  <wilhelmi@google.com>
85
86         * tests/threadpool-test.c (test_thread_pools): Grab
87         thread_counter_pools LOCK when increasing
88         leftover_task_counter. Fixes race in test. (#512624, Simon Murray)
89
90 2008-01-28  Matthias Clasen  <mclasen@redhat.com>
91
92         * configure.in: Bump version
93
94 2008-01-28  Matthias Clasen  <mclasen@redhat.com>
95
96         * === Released 2.15.4 ===
97
98         * NEWS: Updates
99
100 2008-01-28  Matthias Clasen  <mclasen@redhat.com>
101
102         * configure.in: Check for gmtime_r.  
103         * glib/gtimer.c: Use gmtime_r when available.  (#511807,
104         Sebastian Dröge)
105
106 2008-01-27  Matthias Clasen  <mclasen@redhat.com>
107
108         * glib/gnode.[hc]: Move docs inline.  (#316260, Philippe Blain)
109
110 2008-01-27  Matthias Clasen  <mclasen@redhat.com>
111
112         * glib/gutf8.c (g_utf8_strreverse): Document limitations
113         of this function.  (#487909, Peter Moulder)
114
115 2008-01-27  Matthias Clasen  <mclasen@redhat.com>
116
117         * glib/goption.c (group_list_has_visible_entries):
118         Removed unused variable is_main_group.  (#512381,
119         Wouter Bolsterlee)
120
121 2008-01-27  Matthias Clasen  <mclasen@redhat.com>
122
123         * glib/gmacros.h: Deprecate G_GNUC_(PRETTY)_FUNCTION. Bug #409360.
124
125 2008-01-27  Matthias Clasen  <mclasen@redhat.com>
126
127         * m4macros/glib-gettext.m4: Remove AC_CANONICAL_HOST from
128         GLIB_WITH_NLS again.  (#385132)
129
130 2008-01-27  Matthias Clasen  <mclasen@redhat.com>
131
132         * configure.in: Fix the pcre Unicode test to work with
133         LDFLAGS=-Wl,--as-needed.  (#484261, Mark Lee)
134
135 2008-01-27  Murray Cumming  <murrayc@murrayc.com>
136
137         * gio/gfile.c: (g_file_replace_contents),
138         (g_file_replace_contents_finish): Document that the new_etags output 
139         gchar* should be freed.
140
141 2008-01-25  Loïc Minier  <lool@dooz.org>
142
143         * glib/goption.c: (group_has_visible_entries),
144         (group_list_has_visible_entires), (g_option_context_get_help): Pass
145         context down the implementation to check for the main_group.
146         Bug #510292.
147         * glib/tests/option-context.c:
148         Don't set G_OPTION_FLAG_IN_MAIN in main_entries
149         (group_captions): only create group when actually adding it to the
150         context; add an exit(0) to make sure the test succeeds.
151
152 2008-01-23  Jens Granseuer  <jensgr@gmx.net>
153
154         * glib/gtestutils.c: (g_test_trap_fork):
155         * glib/tests/testing.c: (test_assertions): Only declare variables at
156         the beginning of a code block. Bug #511654.
157
158 2008-01-21  Matthias Clasen  <mclasen@redhat.com>
159
160         * configure.in: Bump version
161
162         * === Released 2.15.3 ===
163
164 2008-01-21  Tor Lillqvist  <tml@novell.com>
165
166         * glib-zip.in: Add the gio DLL to the runtime zipfile.
167
168 2008-01-21  Matthias Clasen  <mclasen@redhat.com>
169
170         * === Released 2.15.3 ===
171
172         * NEWS: Updates
173
174 2008-01-20  Murray Cumming  <murrayc@murrayc.com>
175
176         * glib/gchecksum.c: (g_checksum_update): Accept -1 for the data 
177         length if the data is a null-terminated string. Bug #510855.
178
179 2008-01-21  Alexander Larsson  <alexl@redhat.com>
180
181         * configure.in:
182         Only check for sys/inotify.h (see gio/ChangeLog) 
183
184 2008-01-18 16:51:23  Tim Janik  <timj@imendio.com>
185
186         * glib/gutils.h: don't define __GNUC_PREREQ which is not in the glib
187         namespace. for gcc, define G_INLINE_FUNC to "static inline" as with
188         all other C compilers, because newer GCC versions incompatibly
189         changed "extern inline" semantics.
190
191 2008-01-18  Murray Cumming  <murrayc@murrayc.com>
192
193         * glib/gfileutils.c:
194         * glib/gsequence.c:
195         * glib/gstring.c: Fixed some minor typos in the documentation.
196
197 2008-01-16  Dan Winship  <danw@gnome.org>
198
199         * glib/gchecksum.c (md5_sum_update): Fix another bug (which
200         doesn't affect the results, but may cause it to read bad memory).
201
202 2008-01-15  Alexander Larsson  <alexl@redhat.com>
203
204         * glib/gurifuncs.c:
205         Clarify docs for g_uri_unescape_string() (#508773)
206
207 2008-01-14  Dan Winship  <danw@gnome.org>
208
209         * m4macros/glib-2.0.m4: Support gio in AM_PATH_GLIB_2_0 (#509465)
210
211 2008-01-15  Dan Winship  <danw@gnome.org>
212
213         * glib/gchecksum.c (md5_sum_update): fix this; the previous code
214         gave the wrong md5sum when called in certain ways with buffers
215         larger than 64 bytes.
216         (g_checksum_update): remove the unnecessary "length > 1"
217         restriction
218
219         * tests/checksum-test.c: Rewrite this to be much more exhaustive
220         (and in particular to test the md5_sum_update bugfix).
221
222 2008-01-14  Matthias Clasen  <mclasen@redhat.com>
223
224         * configure.in: Bump version
225
226         * === Released 2.15.2 ===
227
228         * NEWS: Updates
229
230 2008-01-14  Alexander Larsson  <alexl@redhat.com>
231
232         * glib/gurifuncs.c:
233         Clarify docs for g_uri_escape_string (#508773)
234
235 2008-01-12  Andre Klapper  <a9016009@gmx.de>
236
237         * configure.in: ALL_LINGUAS: remove line breaks from previous 
238         commit to get damned-lies stats correct again. Add Sinhala (si).
239
240 2008-01-11  Matthias Clasen  <mclasen@redhat.com>
241
242         * glib/gtestutils.c: Fix a docs typo
243
244 2008-01-11 12:55:19  Tim Janik  <timj@imendio.com>
245
246         * tests/testingbase64.c: added g_base64_encode()/g_base64_decode()
247         test case by Asbjoern Pettersen. fixed up coding style.
248
249 2008-01-11 09:00:28  Tim Janik  <timj@imendio.com>
250
251         * glib/Makefile.am (install-exec-hook): use mv/sed/rm on a temporary
252         file instead of "sed -i" which is not portable enough.
253
254 2008-01-08  Alexander Larsson  <alexl@redhat.com>
255
256         * tests/cxx-test.C:
257         Add gio/gio.h include to check for c++ problems.
258
259 2008-01-07  Matthias Clasen  <mclasen@redhat.com>
260
261         * configure.in: Bump version
262
263         * === Released 2.15.1 ===
264
265 2008-01-07  Alexander Larsson  <alexl@redhat.com>
266
267         * configure.in:
268         Add gio/test/Makefile to AC_CONFIG_FILES
269
270 2008-01-07  Matthias Clasen  <mclasen@redhat.com>
271
272         * NEWS: Updates
273
274 2008-01-06  Matthias Clasen  <mclasen@redhat.com>
275
276         * glib/gregex.c: Add a translator comment (#503051, 
277         Pedro de Medeiros)
278
279 2008-01-06  Matthias Clasen  <mclasen@redhat.com>
280
281         * glib/gutils.h: Cope with gcc 4.3 changed 'extern inline'
282         semantics.  (#315437, patch by Loïc Minier)
283
284 2008-01-06  Matthias Clasen  <mclasen@redhat.com>
285
286         * glib/gspawn.c (fdwalk): Don't set open_max to
287         RLIM_INFINITY.  (#495589, Tommi Komulainen)
288
289 2008-01-06  Matthias Clasen  <mclasen@redhat.com>
290
291         * README.in, INSTALL.in: Document new dependencies.
292
293 2008-01-06  Matthias Clasen  <mclasen@redhat.com>
294
295         * gio-2.0.pc.in, gio-2.0-uninstalled.pc.in: Require glib-2.0
296         (#507628)
297
298 2008-01-04  Mathias Hasselmann  <mathias@openismus.com>
299
300         Resolve 64 bit-shift bug in g_markup_collect_attributes.
301         Spotted by Lieven van der Heide.
302
303         * glib/gmarkup.c: Use G_GUINT64_CONSTANT in bit-shift.
304
305 2008-01-02  Alvaro Lopez Ortega  <alvaro@sun.com>
306
307         * gio/gunixmount.c (g_unix_mount_unmount, g_unix_mount_eject):
308         These void functions were trying to return a value. It was causing
309         the compilation to fail.
310
311 2008-01-02  Alvaro Lopez Ortega  <alvaro@sun.com>
312
313         * glib/ghash.c (g_hash_table_replace, g_hash_table_insert): These
314         functions prototype defines its output as void, and therefore they
315         should not return any value. This patch fixes a compilation error:
316         the "return" clauses were incompatible with the functions prototype.
317
318 2007-12-31  Matthias Clasen  <mclasen@redhat.com>
319
320         * glib/gslice.c: Remove C99 comments
321
322 2007-12-24  Matthias Clasen  <mclasen@redhat.com>
323
324         * glib/gtestutils.h:
325         * glib/glib.symbols: Mark assertion functions as G_GNUC_NORETURN.
326         (#506461, Sebastian Dröge)
327
328 2007-12-24  Matthias Clasen  <mclasen@redhat.com>
329
330         * glib/gtestutils.c: Include sys/time.h.  (#505258)
331
332 2007-12-22  Mathias Hasselmann  <mathias@openismus.com>
333
334         Do not show empty groups in --help output. Initial patch from Yevgen
335         Muntyan. (#504142)
336
337         * glib/goption.c: Do not show empty groups in --help output.
338         * glib/tests/Makefile.am: Add option-context.c
339         * glib/tests/option-context.c: Test skipping of empty groups.
340
341 2007-12-22  Matthias Clasen  <mclasen@redhat.com>
342
343         * glib/gkeyfile.c: Remove wrong documentation about start group
344         handling.  (#476856, Areg Beketovski)
345
346 2007-12-21 18:02:30  Tim Janik  <timj@imendio.com>
347
348         * glib/Makefile.am: use "sed -i.bak <CMD> <FILE> && rm -f <FILE>.bak"
349         syntax for install-exec-hook, which seems to be the only "sed -i"
350         variant that is portable across linux and MacOS.
351
352 2007-12-21  Matthias Clasen  <mclasne@redhat.com>
353
354         * glib/gtestutils.h: Bring up to GLib coding standards: remove
355         C99 comments, trailing commas in enumerations and extra ; after
356         G_BEGIN/END_DECLS. Among other things, this makes xulrunner build
357         against GLib 2.15.
358
359         * glib/gtester.c: More of the same
360
361 2007-12-09  Hans Breuer  <hans@breuer.org>
362
363         * tests/gio-ls.c : adapt to recent api changes
364         * tests/testglib.c : variable declaration at the beginning of a block
365         
366         (Lieven van der Heide, #503602)
367         * win32-fixup.pl : process *.rc.in as well; substitute 
368         LT_CURRENT_MINUS_AGE
369         * glib/makefile.msc.in : alphabetic sorting of OBJECTS
370
371 2007-12-20  Matthias Clasen  <mclasen@redhat.com>
372
373         * configure.in: Bump version
374
375         * === Released 2.15.0 ===
376
377         * NEWS: Updates
378
379         * glib/Makefile.am: Fix make dist
380
381 2007-12-20 16:34:04  Tim Janik  <timj@imendio.com>
382
383         * glib/gtester-report: commented class definitions. moved HTML character
384         escaping out of javascript. fixed string->bool conversions. added performance
385         results to test case "Details" window.
386
387 2007-12-20  Matthias Clasen  <mclasen@redhat.com>
388
389         * glib/gchecksum.[hc] (g_checksum_new): Return NULL when 
390         the checksum_type is unknown.  (#501853)
391
392 2007-12-20  Christian Persch  <chpe@gnome.org>
393
394         * glib/gchecksum.c (g_checksum_new): Use g_slice_new0, to fix
395         "conditional jump or move depends on uninitialised value(s)" error
396         from valgrind. Bug #504527.
397
398 2007-12-20 15:17:04  Tim Janik  <timj@imendio.com>
399
400         * Makefile.decl: generate HTML reports for test-report perf-report full-report.
401
402 2007-12-20 15:03:51  Tim Janik  <timj@imendio.com>
403
404         * glib/gtester-report: new python script that generates an HTML
405         unit test report from the XML files generated by gtester.
406
407         * glib/Makefile.am: install gtester-report in $bindir and configure
408         it upon installation (version number and python shebang).
409
410 2007-12-19  Matthias Clasen  <mclasen@redhat.com>
411
412         * glib/glib.symbols: Add g_async_queue_new_full
413
414 2007-12-19 20:30:18  Tim Janik  <timj@imendio.com>
415
416         * glib/gtestutils.c: capture g_log() messages and send to gtester.
417         also, send assertion messages to gtester.
418
419         * glib/gtester.c: add error messages to output log file.
420         force child poll loop to abort if waitpid() signaled child exit,
421         eventhough the child's report file descriptor wasn't closed.
422
423 2007-12-19  Christian Persch  <chpe@gnome.org>
424
425         * glib/gchecksum.c: (g_checksum_type_get_length),
426         (g_checksum_get_digest):
427         * glib/gchecksum.h:
428         * glib/glib.symbols:
429         * tests/checksum-test.c: (test_checksum): Add
430         g_checksum_type_get_length, and change g_checksum_get_digest to use a
431         provided buffer instead of returning allocated memory. Bug #501853.
432
433 2007-12-19  Emmanuele Bassi  <ebassi@gnome.org>
434
435         * glib/gtimer.c (g_time_val_from_iso8601): Fix the date validation
436         check. (#503029)
437
438         * tests/testglib.c (various_string_tests): Add an invalid date
439         for testing the above fix.
440
441 2007-12-19  Alexander Larsson  <alexl@redhat.com>
442
443         * glib/gfileutils.[ch]:
444         * glib/glib.symbols:
445         Rename g_format_file_size_for_display to g_format_size_for_display.
446
447 2007-12-18  Tim-Philipp Müller  <tim at centricular dot net>
448
449         * docs/reference/glib/glib-sections.txt:
450         * glib/gasyncqueue.c: (g_async_queue_new), (g_async_queue_new_full),
451           (g_async_queue_unref):
452         * glib/gasyncqueue.h: add g_async_queue_new_full() which takes a
453           GDestroyNotify function to free any remaining queue items when the
454           queue is destroyed after the final atomic unref (#367550).
455
456 2007-12-18 13:45:23  Tim Janik  <timj@imendio.com>
457
458         * glib/gtestutils.[hc]: added g_test_trap_assert_stdout_unmatched() and
459         g_test_trap_assert_stderr_unmatched(), based on a suggestion by Mathias
460         Hasselmann. reworked g_test_trap_assertions() to use flags to encode
461         assertion semantics, fixes #504227.
462
463 2007-12-16  Mathias Hasselmann  <mathias@openismus.com>
464
465         * glib/gutils.c:
466         Allow NULL strings in g_parse_debug_string. (#503862, Matthew Barnes)
467
468 2007-12-14  Matthias Clasen  <mclasen@redhat.com>
469
470         * glib/glib.symbols:
471         * glib/ghash.[hc]: Add hash table iterators.  (#500507,
472         Jean-Yves Lefort)
473
474         * tests/hash-test.c: Test iterators. 
475
476 2007-12-13  Mathias Hasselmann  <mathias@openismus.com>
477
478         Give exmples in error message unsupported case-changing escape
479         sequences. (503222)
480
481         * glib/gregex.c: Add examples to error message for PCRE-ERR37.
482
483 2007-12-13  Bastien Nocera  <hadess@hadess.net>
484
485         * glib/gtimer.c: (g_time_val_from_iso8601):
486         Don't try to parse dates that start with anything but a
487         digit, a plus or a minus sign, as those can't be valid
488         ISO8601 dates (Closes: #503029)
489
490 2007-12-13  Matthias Clasen  <mclasen@redhat.com>
491
492         * glib/gkeyfile.c (g_key_file_clear): Free group_hash.
493         (#503420, Christian Persch)
494
495 2007-12-12 16:06:11  Tim Janik  <timj@imendio.com>
496
497         * tests/testglib.c: split up tests and reworked code to use
498         the new test framework.
499
500         * tests/Makefile.am: added testglib to TEST_PROGS.
501
502 2007-12-11 Rahul Bhalerao <b.rahul.pm@gmail.com>
503
504         * configure.in: Added entry for Marathi Translations
505
506 2007-12-10  Matthias Clasen  <mclasen@redhat.com>
507
508         * glib/glib.h: Include gurifuncs.h
509
510 2007-12-10  Benjamin Otte  <otte@gnome.org>
511
512         * glib/garray.h: use an intermediate cast to void * in g_array_index()
513         to not trigger cast alignment warnings, fixes #502927.
514
515 2007-12-10 15:08:59  Tim Janik  <timj@imendio.com>
516
517         * let g_warn_if_fail replace g_assert as discussed here:
518           http://mail.gnome.org/archives/gtk-devel-list/2007-October/msg00089.html
519
520         * fix bug #502498: Test framework assertion failures should follow
521         gcc error format.
522
523         * gmessages.h, gmessages.c: deprecated g_assert_warning() which is
524         unused now. removed g_assert*() definitions whcih are provided by 
525         gtestutils.h now. added g_warn_if_reached() and g_warn_if_fail()  
526         which are recommended as g_assert/g_assert_not_reached replacements
527         for non-test programs.
528         added g_warn_message() to implement g_warn_*() macros.
529         use emacs-next-error friendly formatting for file:line: for warnings.
530
531         * gtestutils.h, gtestutils.c: use emacs-next-error friendly formatting.
532         implement g_assert_not_reached() with g_assertion_message() and
533         g_assert() in terms of g_assertion_message_expr() so we'll be able to
534         provide assertion messages in test logs.
535
536         * gkeyfile.c, gbookmarkfile.c: changed g_assert*() to g_warn_if_fail()
537         or g_return_if_fail() where suitable.
538
539         * gio/: changed g_assert to g_warn_if_fail.
540
541 2007-12-10 13:02:08  Tim Janik  <timj@imendio.com>
542
543         * glib/gtestutils.c (g_assertion_message_cmpnum): applied patch by Tommi
544         Komulainen to fix int64 printouts, fixes #502511.
545
546 2007-12-10  Matthias Clasen  <mclasen@redhat.com>
547
548         * glib/gstrfuncs.h:
549         * glib/gstrfuncs.c (g_dpgettext): Change prototype to take 
550         msgctxtid + offset instead of two strings, to avoid duplication
551         of string constants if the compiler/linker don't perform constant
552         suffix merging.  (#502590, Christian Persch)
553
554         * glib/gi18n.h:
555         * glib/gi18n-lib.h: Adapt the definitions of C_() and Q_().
556
557 2007-12-09  Hans Breuer  <hans@breuer.org>
558
559         * tests/gio-ls.c : (new file) a test program emulating some of 'ls'
560         * tests/makefile.msc.in : build it (currently on win32)
561
562         * **/makefile.msc glib/makefile.msc.in : removed -GD to compile
563         with msvc9 (vs2008) with less complains
564         
565         * glibconfig.h.win32.in : #define G_HAVE_ISO_VARARGS 1 for
566         msv8 (vs2005) and above
567         
568         * glib/gfileutils.c : s/stricmp/_stricmp/
569         * msvc_recommended_pragmas.h : work around Microsoft's premature 
570         attempt to deprecate the C-Library
571
572         * tests/makefile.msc.in : added checksum-test
573
574 2007-12-08  Christian Persch  <chpe@gnome.org>
575
576         * gio/glocalfileinfo.c: (get_thumbnail_attributes): Add forgotten
577         #ifdef G_OS_WIN32 to fix the build on linux.
578
579 2007-12-08  Hans Breuer  <hans@breuer.org>
580
581         * glib/makefile.msc.in : build gchecksum.obj
582
583 2007-12-06  Mathias Hasselmann  <mathias@openismus.com>
584
585         * glib/ghash.c: Call destroy notify when destroying
586         the hash table in g_hash_table_unref.
587
588 2007-12-06 13:29:00  Tim Janik  <timj@imendio.com>
589
590         * glib/gtester.c (child_report_cb): detect non-blocking fd EOF
591         by read()==0 following poll(), needed on MacOS.
592
593 2007-12-06  Mathias Hasselmann  <mathias@openismus.com>
594
595         * glib/gunidecomp.c: Mention g_utf8_normalize()
596         returns NULL on invalid string. (#501997)
597
598 2007-12-06  Mathias Hasselmann  <mathias@openismus.com>
599
600         * glib/gerror.c: Improve wording for g_propagate_error docs.
601
602 2007-12-06 09:27:42  Tim Janik  <timj@imendio.com>
603
604         * tests/scannerapi.c: added new scanner test from #501654, by
605         Patrick Hulin with various modifications.
606         reworked coding style, adapted to new testing framework, fixed
607         token parser test and use a forked sub process to test
608         g_scanner_error() output messages.
609
610 2007-12-05 17:58:18  Tim Janik  <timj@imendio.com>
611
612         * glib/gtester.c: added -m=thorough support to gtester.
613
614 2007-12-05 17:21:05  Tim Janik  <timj@imendio.com>
615
616         * glib/glib/gtestutils.c: print out random seed for verbose tests,
617         also adapted test result reporting slightly in verbose mode to allow
618         custom debugging output. support "thorough" as test mode alis for "slow".
619
620         * glib/glib/gtestutils.h: added g_test_thorough().
621
622         * glib/glib/gtester.c: print out the last random seed when tests fail.
623         added result attribute to test case status logging to easily spot
624         failing tests in log files. disabled debugging output when skipping tests.
625
626 2007-12-05 11:43:22  Tim Janik  <timj@imendio.com>
627
628         * glib/gtestutils.[hc]: added g_test_add_data_func() to pass data
629         into tests. allow data arguments for fixture tests.
630
631         * glib/gtestutils.c: fixed fatal log flag setup, so tests really abort
632         upon criticals/warnings/errors.
633
634         * glib/tests/testing.c: test test_data arguments.
635
636         * glib/gtester.c: some prototype fixups.
637
638 2007-12-05  Tor Lillqvist  <tml@novell.com>
639
640         * glib/win_iconv.c: Add "shift-jis" as an alternative spelling of
641         "shift_jis".
642
643 2007-12-05  Ryan Lortie  <desrt@desrt.ca>
644
645         * autogen.sh: for the benefit of git users, checkout build/ if it is
646         missing
647         * .gitignore: but after that, ignore it.
648
649 2007-12-05  Ryan Lortie  <desrt@desrt.ca>
650
651         * glib/ghash.c: ungtk-docify some comments for internal functions
652
653 2007-12-04  Emmanuele Bassi  <ebassi@gnome.org>
654
655         * gio/glocalfileinfo.c: Replace the copy-and-paste MD5 digest
656         generation with GChecksum.
657
658 2007-12-04  Emmanuele Bassi  <ebassi@gnome.org>
659
660         * glib/gchecksum.[ch]: Add GChecksum, a generic wrapper around
661         various hashing algorithms. At the moment, the MD5, SHA-1 and
662         SHA-256 algorithms are supported. (#443648)
663
664         * glib/glib.h:
665         * glib/Makefile.am:
666         * glib/glib.symbols: Build glue for GChecksum
667
668         * tests/Makefile.am
669         * tests/checksum-test.c: Add test suite for GChecksum.
670
671 2007-12-03  Ryan Lortie  <desrt@desrt.ca>
672
673         * glib/ghash.c: no code changes; add comments to document the internal
674         functions.
675
676 2007-12-03  Ryan Lortie  <desrt@desrt.ca>
677
678         * glib/ghash.c: no code changes; reorder functions to remove the need
679         for forward declarations.
680
681 2007-12-03  Ryan Lortie  <desrt@desrt.ca>
682
683         * glib/ghash.c (g_hash_table_lookup_node,
684         g_hash_table_lookup_extended, g_hash_table_insert_internal,
685         g_hash_node_new): improve clarity in some functions
686
687 2007-12-03  Ryan Lortie  <desrt@desrt.ca>
688
689         * glib/ghash.c: rename 'node' to 'node_ptr' where appropriate
690
691 2007-12-03  Ryan Lortie  <desrt@desrt.ca>
692
693         * glib/ghash.c: convert G_HASH_TABLE_RESIZE() macro to inline function
694
695 2007-12-03  Ryan Lortie  <desrt@desrt.ca>
696
697         * glib/glib.symbols (glib_gettext): remove stray (duplicate) entry
698         from file to fix the build
699
700 2007-12-03  Behdad Esfahbod  <behdad@gnome.org>
701
702         * glib/gnulib/Makefile.am: Fix EXTRA_DIST automake warnings. (#501107)
703
704 2007-12-03  Hans Breuer  <hans@breuer.org>
705
706         * glib/glib.symbols : added glib_gettext (in use by gio)
707         * makefile.msc : also try building gio
708         
709         * glib/gmarkup.c : use G_GUINT64_CONSTANT() to avoid 
710         'bad suffix on number'
711         * glib/gtestutils.c : declare cariable at the beginning of the block,
712         include <io.h> for G_OS_WIN32
713         * makefile.msc.in : add gurifuncs and gtestutils
714
715 2007-12-03  Ryan Lortie  <desrt@desrt.ca>
716
717         * glib/ghash.c: create a common function for the many places where all
718         nodes in the table are removed (remove_all, steal_all, destroy, unref,
719         etc...)
720
721 2007-12-03  Ryan Lortie  <desrt@desrt.ca>
722
723         * tests/hash-test.c (second_hash_test): fix memory leak, add a few
724         extra sanity tests.
725
726 2007-12-03  Matthias Clasen  <mclasen@redhat.com>
727         
728         * glib/gkeyfile.c: Don't call g_get_language_names() per-key.
729         (#500638, Michael Meeks)
730
731 2007-12-03  Marco Barisione <marco@barisione.org>
732
733         * glib/gregex.c:
734         * glib/gregex.h: Add new error codes for when compilation fails and
735         make compilation error translatable. (#482313, Morten Welinder)
736
737 2007-12-03  Matthias Clasen  <mclasen@redhat.com>
738
739         * glib/gkeyfile.c: Add a hash table to speed up group lookups,
740         which GKeyFile does quite a lot.  
741
742 2007-12-03  Alexander Larsson  <alexl@redhat.com>
743
744         * configure.in:
745         Add xattr checks for OSX style API (#500506)
746
747 2007-12-03  Ryan Lortie  <desrt@desrt.ca>
748
749         * glib/ghash.c: merge more common code into functions.  Vastly
750         simplify loop logic in g_hash_table_foreach_remove_or_steal().
751
752 2007-12-01  Behdad Esfahbod  <behdad@gnome.org>
753
754         * Makefile.am: Don't descend into build/. (#500875)
755
756 2007-11-28  Matthias Clasen  <mclasen@redhat.com>
757
758         * glib/gmarkup.h:
759         * glib/gmarkup.c: 
760         * glib/gerror.c: Add Since: tags to new API, other doc improvements.
761
762 2007-11-28  Matthias Clasen  <mclasen@redhat.com>
763
764         * glib/gurifuncs.c: Some doc cleanups
765
766 2007-11-28  Matthias Clasen  <mclasen@redhat.com>
767
768         * glib/gtestutils.c: Fix up some doc comments, avoid C99 comments
769
770         * glib/gconvert.c: De-doc-commentify static functions to
771         shut up gtk-doc.
772
773         * glib/gutils.c: Fix the glib_gettext doc comment.
774
775 2007-11-28  Tor Lillqvist  <tml@novell.com>
776
777         * config.h.win32.in: Update to match what configure produces.
778
779 2007-11-28  Alexander Larsson  <alexl@redhat.com>
780
781         * glib/gstring.c (g_string_append_uri_escaped):
782         Move this function before g_string_append_c so that
783         we avoid the plt call due to the undefinf of g_string_append_c
784
785 2007-11-28  Emmanuele Bassi  <ebassi@gnome.org>
786
787         * gio/Makefile.am: Remove makegioalias.pl from the marshal files
788         and avoid it being cleaned up when running make clean.
789
790 2007-11-28  Alexander Larsson  <alexl@redhat.com>
791
792         * glib/glib.symbols:
793         Add in the new symbols
794         
795         * glib/gurifuncs.c:
796         Use the aliases framework
797         
798         * glib/glibintl.h:
799         * glib/gutils.c:
800         Make the alias stuff work now that glib_gettext
801         is exported to libgio. 
802
803 2007-11-27  Ryan Lortie  <desrt@desrt.ca>
804
805         * glib/ghash.c (g_hash_table_insert, g_hash_table_replace,
806         g_hash_table_insert_internal): insert/replace were identical except
807         for a single line.  Replace both with a common function.
808
809 2007-11-27  Alexander Larsson  <alexl@redhat.com>
810
811         * gio/Makefile.am:
812         * gio/gurifuncs.[ch]:
813         * glib/Makefile.am:
814         * glib/gstring.[ch]:
815         * glib/gurifuncs.[ch]:
816         Moved gurifuncs from gio to glib
817
818 2007-11-27  Alexander Larsson  <alexl@redhat.com>
819
820         * gio/gfileinfo.[ch]:
821         * glib/gfileutils.[ch]:
822         Move g_format_file_size_for_display from gio to glib
823
824 2007-11-27  Alexander Larsson  <alexl@redhat.com>
825
826         * configure.in:
827         Allow configuration of gio-module-dir
828         
829         * gio-2.0.pc.in:
830         Export giomodules location as giomodule variable
831
832 2007-11-26  Matthias Clasen  <mclasen@redhat.com>
833
834         * tests/markup-collect.c: Add some tests for invalid booleans
835
836 2007-11-26  Ryan Lortie  <desrt@desrt.ca>
837  
838         Add new function g_markup_collect_attributes (bug #496847).
839  
840         * glib/glib.symbols: add g_markup_collect_attributes
841  
842         * docs/reference/glib/glib-sections.txt: 
843         * glib/gmarkup.h:
844         * glib/gmarkup.c: add g_markup_collect_attributes and new enumerated
845         type GMarkupCollectType.  Add new error code
846         G_MARKUP_ERROR_MISSING_ATTRIBUTE that is thrown by the attribute
847         collector.
848
849 2007-11-27  Tor Lillqvist  <tml@novell.com>
850
851         * glib/win_iconv.c: Some improvements, being upstreamed.
852         (must_use_null_useddefaultchar): New function, checks for those
853         codepages for which one must pass a NULL lpUsedDefaultChar pointer
854         to WideCharToMultiByte().
855         (kernel_wctomb): Use it.
856         (kernel_wctomb): Return with E2BIG immediately if bufsize is zero.
857
858 2007-11-27  Tor Lillqvist  <tml@novell.com>
859
860         * glib/gutils.c (_glib_get_locale_dir) [Win32]: Use either
861         lib/locale or share/locale depending on which one is in
862         GLIB_LOCALE_DIR. When the configury recognizes GNU gettext (based
863         on the _nl_msg_cat_cntr variable, eek), share/locale gets used.
864
865         * glib-zip.in: Likewise, look for message catalogs either in
866         lib/locale or share/locale.
867
868 2007-11-26  Matthias Clasen  <mclasen@redhat.com>
869
870         * gio/gfileattribute.c: Fix up a doc comment.
871
872 2007-11-26  Alexander Larsson  <alexl@redhat.com>
873
874         * Makefile.am:
875         * configure.in:
876         * gio-2.0-uninstalled.pc.in:
877         * gio-2.0.pc.in: 
878         * gio-unix-2.0-uninstalled.pc.in:
879         * gio-unix-2.0.pc.in:
880         * gio/
881         * docs/reference/gio
882         Merged gio-standalone into glib.
883         
884         * glib/glibintl.h:
885         * glib/gutils.c:
886         Export glib_gettext so that gio can use it
887         Add P_ (using same domain for now)
888         Add I_ as g_intern_static_string
889
890 2007-11-26  Tor Lillqvist  <tml@novell.com>
891
892         * glib/win_iconv.c: ISO8859-1 is CP28591, not CP1252.
893
894 2007-11-26  Tor Lillqvist  <tml@novell.com>
895
896         Implement #491549: On Windows, always use the native API for
897         character set conversions instead of GNU libiconv. Almost all
898         codesets supported by GNU libiconv exist as Windows codepages.
899         One missing feature is the "C99" and "JAVA" pseudo codesets, but I
900         doubt that is worth worrying about.
901         
902         * glib/win_iconv.c: New file. iconv() implementation for
903         Windows. Placed in the public domain by Yukihiro Nakadaira
904         <yukihiro.nakadaira@gmail.com>. From
905         http://yukihiro.nakadaira.googlepages.com/win_iconv.zip, his
906         2007-11-17 version.
907
908         * glib/gconvert.c: Include win_iconv.c on Windows.
909
910         * glib/Makefile.am: Add win_iconv.c to EXTRA_DIST.
911         
912         * configure.in: Bypass iconv checks on Windows. 
913
914 2007-11-25  Tor Lillqvist  <tml@novell.com>
915
916         * glib/gtestutils.c: Add conditionals for non-Unix. Just g_error()
917         unless G_OS_UNIX for now.
918
919 2007-11-25  Matthias Clasen  <mclasen@redhat.com>
920
921         * configure.in: Require gtk-doc 1.8.
922
923         * glib/gasyncqueue.c:
924         * glib/gdate.c:
925         * glib/gfileutils.c:
926         * glib/gmain.c:
927         * glib/gmarkup.c:
928         * glib/gregex.c:
929         * glib/gtestutils.c:
930         * glib/gutils.c: Use gtk-doc abbreviations for 
931         examples in doc comments.
932
933 2007-11-24  Matthias Clasen  <mclasen@redhat.com>
934
935         * */Makefile.am: Replace INCLUDES by AM_CPPFLAGS, other
936         cleanups.
937
938 2007-11-24  Matthias Clasen  <mclasen@redhat.com>
939
940         * tests/base64-test.c: Fix a memory overrun.
941
942 2007-11-24  Matthias Clasen  <mclasen@redhat.com>
943
944         * glib/gutils.c: Remove leftover ENABLE_NLS #ifdefs.
945
946 2007-11-23  Matthias Clasen  <mclasen@redhat.com>
947
948         * glib/gbase64.c (g_base64_encode): Don't refuse to encode
949         a single byte.  (Milan Crha)
950
951         * tests/base64-test.c: Test encoding short strings.
952
953 2007-11-23  Matthias Clasen  <mclasen@redhat.com>
954
955         * glib/gi18n-lib.h: 
956         * glib/gi18n.h: Define a two-argument macro C_() for marking
957         translatable strings with context and implement C_() and Q_()
958         using g_dpgettext().  (#142676, Morten Welinder)
959
960         * glib/glib.symbols:
961         * glib/gstrfuncs.[hc]: Implement g_dpgettext().
962
963 2007-11-23  Matthias Clasen  <mclasen@redhat.com>
964
965         * glib/goption.c: Use g_print to print out --help text in 
966         locale encoding.  (#469551, Takao Fujiwara)
967
968 2007-11-22  Matthias Clasen  <mclasen@redhat.com>
969
970         * glib/gkeyfile.c: Set length out param in list-returning functions
971         to 0 when returning NULL.  (#498728, Christian Persch)
972
973 2007-11-21 21:06:47  Tim Janik  <timj@imendio.com>
974
975         * Makefile.decl: initialize automake variables EXTRA_DIST and
976         TEST_PROGS for unconditional appending via += in other makefiles.
977         define recursive test targets: test, test-report, perf-report,
978         full-report, as described here:
979         http://mail.gnome.org/archives/gtk-devel-list/2007-November/msg00000.html
980
981         * Makefile.am:
982         * build/win32/vs8/Makefile.am, build/win32/dirent/Makefile.am:
983         * build/win32/Makefile.am, build/Makefile.am:
984         * docs/Makefile.am, docs/reference/Makefile.am:
985         * docs/reference/glib/Makefile.am, docs/reference/gobject/Makefile.am:
986         * gmodule/Makefile.am, tests/Makefile.am:
987         * tests/refcount/Makefile.am, tests/gobject/Makefile.am:
988         * glib/update-pcre/Makefile.am, glib/libcharset/Makefile.am:
989         * glib/tests/Makefile.am, glib/pcre/Makefile.am:
990         * glib/gnulib/Makefile.am, gobject/Makefile.am, m4macros/Makefile.am:
991         * gthread/Makefile.am, glib/Makefile.am:
992         include $(top_srcdir)/Makefile.decl, adapted EXTRA_DIST assignments.
993
994         * glib/tests/Makefile.am: removed example testing rules.
995
996         * glib/tests/testing.c: conditionalized performance and slow tests.
997
998         * glib/gtestutils.h:
999         * glib/gtestutils.c: work around g_test_config_vars not changing its
1000         exported value after value assignments, aparently due to symbol aliases.
1001
1002         * glib/gtester.c: fixed off-by-one error which produced junk in logs.
1003
1004         * configure.in: check for python >= 2.4 and provide $PYTHON for scripts.
1005
1006 Tue Nov 20 15:59:55 2007 +0100 Tim Janik
1007
1008         Renamed gtestframework to gtestutils.
1009
1010         * glib/glib.h:
1011         * glib/Makefile.am: added gtestutils.h to public includes.
1012
1013         * glib/gtestutils.c: include gtestutils.h.
1014
1015         * glib/gtestutils.h:
1016         * glib/glib.symbols:
1017         * glib/tests/testing.c: renamed gtestframework to gtestutils.
1018
1019         * glib/gtestframework.h: renamed to gtestutils.h.
1020
1021         * glib/gtestframework.c: renamed to gtestutils.c.
1022
1023 Tue Nov 20 15:29:34 2007 +0100 Tim Janik
1024
1025         glib/gtestframework.c: g_test_init(): make warnings and criticals fatal for all test programs.
1026
1027 Wed Nov 14 20:35:05 2007 +0100 Tim Janik
1028
1029         gtestframework.c: added test API documentation by Sven Herzberg and Tim Janik.
1030
1031 Wed Nov 14 19:10:28 2007 +0100 Tim Janik
1032
1033         gtestframework.[hc]: implemented g_test_queue_destroy() and g_test_queue_unref().
1034
1035 Fri Nov 9 12:28:52 2007 +0100 Tim Janik
1036
1037         Added g_test_bug() and related API.
1038
1039         * gtester.c: handle G_TEST_LOG_MESSAGE and test test message API.
1040
1041         * gtestframework.h, gtestframework.c: added test message API and convenience
1042         API to send test messages about bug URLs.
1043
1044 Fri Nov 9 11:35:11 2007 +0100 Tim Janik
1045
1046         Added API to access test framework configuration.
1047
1048         * gtestframework.h, gtestframework.c: export testing configuration to test
1049         programs with g_test_quick(), g_test_perf(), g_test_verbose(), g_test_quiet().
1050
1051 Thu Nov 8 17:55:09 2007 +0100 Tim Janik
1052
1053         gtester: implemented logic to handle failing tests, self tests, and validate XML reports.
1054
1055         * gtester.c: terminate when tests failed. keep XML valid when test cases fail.
1056         restart test binaries when tests fail, resuming after the last processed test.
1057         support --gtester-selftest to run gtester itself as test program.
1058         support --test-arg=<arg> to pass args along to test programs. added
1059         main_selftest() which does a simplistic fixture test. fail if exit
1060         code of test programs is not 0.
1061
1062         * gtestframework.h: added G_TEST_LOG_SKIP_CASE test log message type.
1063
1064         * gtestframework.c: support --GTestSkipCount=<n> to skip a number of tests.
1065
1066         * tests/Makefile.am: added test-report: for demonstration purposes.
1067         added gtester-xmllint-check: and hooked it up into check:, this rule calls
1068         gtester as test program, running it's selftest, and then uses xmllint to
1069         validate the generate XML test log file.
1070
1071 Thu Nov 8 14:51:37 2007 +0100 Tim Janik
1072
1073         gtester: implemented XML logging.
1074
1075         * glib/gtester.c: log test messages to XML output file. beautified normal test
1076         result output.
1077
1078         * glib/gtestframework.c: fixed GTimer leak.
1079
1080         * glib/tests/Makefile.am: start gtester with --verbose.
1081
1082 Thu Nov 8 12:33:31 2007 +0100 Tim Janik
1083
1084         tests/Makefile.am: execute test programs with gtester, add test: to check:
1085
1086 Thu Nov 8 12:18:51 2007 +0100 Tim Janik
1087
1088         Fixed PLT symbol exports for gtestframework.h.
1089
1090         * glib/glib.symbols: added all exported gtestframework.h symbols.
1091
1092         * glib/gtestframework.c: include galias.h, galiasdef.c, define __G_TESTFRAMEWORK_C__.
1093
1094 Thu Nov 8 11:31:12 2007 +0100 Tim Janik
1095
1096         glib/gtester.c: fixed debugging flag.
1097
1098 Wed Nov 7 17:56:26 2007 +0100 Tim Janik
1099
1100         fixed bogus unistd.h include.
1101
1102 Wed Nov 7 17:53:30 2007 +0100 Tim Janik
1103
1104         Implemented test log IPC.
1105
1106         * gtester.c: read and decode log messages from test binary child processes.
1107         fixed GIOChannel and child watch handling to process all messages and avoid
1108         hangs. pass --verbose and --quiet on to children, default to --quiet.
1109
1110         * gtestframework.h: export g_test_log_type_name().
1111
1112         * gtestframework.c: send test log to --GTestLogFD=<fd> if given, removed
1113         bogus -o-option.
1114
1115 Tue Nov 6 20:07:44 2007 +0100 Tim Janik
1116
1117         gtester.c: support test case listing through gtester.
1118
1119 Tue Nov 6 20:01:06 2007 +0100 Tim Janik
1120
1121         gtestframework.c: fixed testpath matches for automatic root suite.
1122
1123 Tue Nov 6 19:50:33 2007 +0100 Tim Janik
1124
1125         gtester.c: adapted to become a rudimentary test binary launcher.
1126
1127         * gtester.c: increased read buffer size to match common unix pipe buffer size.
1128         added argument parsing and usage. changed io handling to capture and replicate
1129         stdout. fixed io handlers to be cleaned up when the child process exits (catch
1130         G_IO_ERR | G_IO_HUP). we now use pending/iteration instead of a main loop
1131         structure, to keep running until the child process exits and all io has been
1132         processed. launch the test binaries given on the command line. don't quit when
1133         a child couldn't be launched but --keep-going was specified.
1134
1135 Tue Nov 6 17:11:37 2007 +0100 Tim Janik
1136
1137         Integrated gtester program into build process.
1138
1139         * Makefile.am: build and install gtester binary.
1140
1141         * gtester.c: fixed up coding style and removed hard wired test coded.
1142
1143 Tue Nov 6 16:12:32 2007 +0100 Sven Herzberg
1144
1145         glib/gtester.c:Small -Wall fix
1146
1147 Tue Nov 6 16:05:06 2007 +0100 Sven Herzberg
1148
1149         glib/gtester.c:Implemented nonblocking reading properly now
1150
1151 Mon Nov 5 13:53:23 2007 +0100 Sven Herzberg
1152
1153         glib/gtester.c:Quit the application when the output is parsed completely, not just the process finished
1154
1155 Mon Nov 5 12:00:16 2007 +0100 Sven Herzberg
1156
1157         glib/gtester.c:Read the output of the child process
1158
1159 Mon Nov 5 11:50:59 2007 +0100 Sven Herzberg
1160
1161         glib/gtester.c:Use g_spawn_async_with_pipes()
1162
1163 Mon Nov 5 11:50:08 2007 +0100 Sven Herzberg
1164
1165         glib/gtester.c:Spawn a process async and quit gtester after the child process exited
1166
1167 Mon Nov 5 11:30:45 2007 +0100 Sven Herzberg
1168
1169         glib/gtester.c:Added a first revision of gtester
1170
1171 Tue Nov 6 16:47:06 2007 +0100 Tim Janik
1172
1173         Implemented test log serialization.
1174
1175         * glib/gtestframework.h: added g_test_log*() API.
1176
1177         * glib/gtestframework.c: implement test log serialization.
1178
1179 Tue Nov 6 14:24:54 2007 +0100 Tim Janik
1180
1181         Implemented test logging basics.
1182
1183         * glib/gtestframework.c: added --debug-log and --verbose, implemented
1184         test information logging.
1185
1186         * testing.c: test g_test_maximized_result() and g_test_minimized_result().
1187
1188 Tue Nov 6 11:52:14 2007 +0100 Tim Janik
1189
1190         Implemented g_test_timer*().
1191
1192         * gtestframework.c: implemented g_test_timer*().
1193
1194         * tests/testing.c: added a g_test_timer*() test.
1195
1196 Mon Nov 5 18:28:24 2007 +0100 Tim Janik
1197
1198         Implemented support for testpaths.
1199
1200         * gtestframework.c: implemented g_test_add_vtable() and g_test_add_func().
1201
1202         * tests/testing.c: use g_test_add() and g_test_add_func() to majorly simplify main().
1203
1204 Mon Nov 5 15:56:42 2007 +0100 Tim Janik
1205
1206         testing.c: added tests for the g_test_rand*() API.
1207
1208 Mon Nov 5 15:55:38 2007 +0100 Tim Janik
1209
1210         Implemented g_test_rand*().
1211
1212         * gtestframework.h: fixed g_assert_cmp*() to evaluate arguments only once.
1213         added g_assert_cmpuint(). completed g_test_rand*() to cover bits, ints,
1214         doubles and ranges.
1215
1216         * gtestframework.c: fixed "--seed" option and implemented g_test_rand*().
1217
1218 Mon Nov 5 15:51:43 2007 +0100 Tim Janik
1219
1220         testing.c: added tests for g_assert_cmphex() and forked test traps.
1221
1222 Mon Nov 5 15:10:18 2007 +0100 Tim Janik
1223
1224         Implemented g_test_trap_fork() API.
1225
1226         * gtestframework.h: added g_assert_cmphex(). reworked g_test_trap*() API.
1227
1228         * gtestframework.c: implemented g_test_trap_fork() API.
1229
1230 Thu Nov 1 15:05:07 2007 +0100 Tim Janik
1231
1232         * glib/gtestframework.c:
1233
1234         that match a given test path.
1235         (g_test_run_suite): run suite only if it matches the existing test paths.
1236
1237         * glib/tests/testing.c: minor rename.
1238
1239 Thu Nov 1 13:45:55 2007 +0100 Tim Janik
1240
1241         GTest framework started.
1242
1243         * glib/gtestframework.h: testing framework API as proposed on gtk-devel-list.
1244         includes elaborate assertions, performance report functions, test traps,
1245         test timer, test random numbers, teardoiwn garbage collection functions
1246         and general test case / test suite management APIs.
1247
1248         * glib/gtestframework.c: first test framework implementation. already covers
1249         some test suite management APIs and assertion message implementations.
1250
1251         * glib/tests/testing.c: test program for the testing framework.
1252
1253         * glib/tests/Makefile.am: complie testing.c as test. run all tests as part of
1254         make test:.
1255
1256 Wed Oct 31 15:42:48 2007 +0100 Tim Janik
1257
1258         glib/Makefile.am: build tests/ subdir after building libglib.
1259
1260 Tue Oct 30 16:17:32 2007 +0100 Tim Janik
1261
1262         Fixed up internal 'g_test*' names.
1263
1264         * refcount/signals.c:
1265         * refcount/objects.c:
1266         * refcount/objects2.c:
1267         * refcount/closures.c:
1268         * refcount/properties.c:
1269         * refcount/properties2.c: changed namespace prefix from g_test_* to my_test_*
1270         to not clash with newly introduced g_test* API in glib.
1271
1272 Tue Oct 30 14:41:26 2007 +0100 Tim Janik
1273
1274         Added gtestframework.[hc] and glib/tests/.
1275
1276 2007-11-20  Sven Neumann  <sven@gimp.org>
1277
1278         * glib/gerror.c (g_error_add_prefix): use g_strconcat() instead of
1279         g_strjoin() to concatenate two strings.
1280
1281 2007-11-19  Marco Barisione  <marco@barisione.org>
1282
1283         * glib/gregex.c: When the compilation of a pattern fails in the error
1284         message use the character offset and not the byte offset.
1285
1286         * glib/gregex.c: Pass an unsigned long instead of an int to
1287         pcre_fullinfo() to avoid problems on 64-bit systems (#498113, Kouhei
1288         Sutou)
1289
1290 2007-11-19 10:30:33  Tim Janik  <timj@imendio.com>
1291
1292         * configure.in: updated version number to 2.15.0 for development.
1293
1294 2007-11-18  Matthias Clasen  <mclasen@redhat.com>
1295
1296         * glib/gbase64.c: Documentation improvements.  (#496518,
1297         Stefan Schulze Frielinghaus)
1298
1299 2007-11-18  Matthias Clasen  <mclasen@redhat.com>
1300
1301         * configure.in: Check whether assembler supports numerical local
1302         labels.  
1303
1304         * glib/gatomic.c: Fix powerpc implementation of atomic ops for 
1305         platforms where the assembler doesn't support numerical local
1306         labels.  (#445362)
1307
1308 2007-11-15  Ryan Lortie  <desrt@desrt.ca>
1309
1310         * docs/reference/glib/tmpl/markup.sgml:
1311         * glib/gmarkup.h:
1312         * glib/gmarkup.c: new flag G_MARKUP_PREFIX_ERROR_POSITION to cause the
1313         parser to prepend location information (ie: "Error on line %d, char
1314         %d:") to errors generated by the GMarkupParser callbacks.
1315
1316         Closes #496046.
1317
1318 2007-11-15  Ryan Lortie  <desrt@desrt.ca>
1319
1320         * docs/reference/glib/glib-sections.txt:
1321         * glib/glib.symbols:
1322         * glib/gerror.h:
1323         * glib/gerror.c: new functions g_prefix_error and
1324         g_propagate_prefixed_error.
1325
1326 2007-11-13  Cody Russell  <bratsche@gnome.org>
1327
1328         * docs/reference/gobject/gobject-docs.sgml:
1329         * docs/reference/gobject/tut_gsignal.xml:
1330         * docs/reference/gobject/tut_gtype.xml:
1331         * docs/reference/gobject/tut_intro.xml:
1332         * docs/reference/gobject/tut_tools.xml:
1333         * docs/reference/gobject/tut_howto.xml:
1334         * docs/reference/gobject/tut_gobject.xml: Documentation fixes.
1335         Recommend macro type names such as NAUTILUS_TYPE_WINDOW (not
1336         NAUTILUS_WINDOW_TYPE).  Fixed text which erroneously stated that 
1337         superclass initializers don't run when an object is 
1338         instantiated.  Fixed numerous spelling mistakes.  Minor grammar 
1339         edits. (#490637, Adam Dingle)
1340
1341 2007-11-09  Matthias Clasen <mclasen@redhat.com>
1342
1343         * glib/gkeyfile.c: Coding style cleanups and doc 
1344         improvements.  (#491979, #491982, Areg Beketovski)
1345
1346 2007-11-09  Matthias Clasen <mclasen@redhat.com>
1347
1348         * glib/giochannel.c: Coding style cleanups and doc 
1349         improvements.  (#491975, Areg Beketovski)
1350
1351 2007-11-09  Matthias Clasen <mclasen@redhat.com>
1352
1353         * glib/gmain.c (g_main_context_iteration): Improve the
1354         docs.  (#491974, Areg Beketovski)
1355
1356 2007-11-09  Matthias Clasen <mclasen@redhat.com>
1357
1358         * glib/gdate.c: Coding style fixes.
1359
1360 2007-11-09  Matthias Clasen <mclasen@redhat.com>
1361
1362         * configure.in: Add AM_PROG_CC_C_O.
1363
1364         * Makefile.am: Remove the install-exec-local hook and use
1365         configexecincludedir_DATA instead, in an attempt to avoid
1366         automake 1.9 <> 1.10 incompatibilities.
1367
1368         * glib/Makefile.am: Rename MIRRORING_TAB_SOURCES, since
1369         automake 1.10 complains.
1370
1371 2007-11-09  Matthias Clasen <mclasen@redhat.com>
1372
1373         * glib/gspawn.c (g_spawn_sync): Improve the docs.  (#491968,
1374         Areg Beketovski)
1375
1376 2007-11-08  Matthias Clasen <mclasen@redhat.com>
1377
1378         * glib/gmain.c (g_main_context_release): 
1379         (g_main_context_acquire):
1380         (g_main_context_new): Fix the doc wording.  (#491957, 
1381         #491965, #491966, Areg Beketovski)
1382
1383 2007-11-08  Matthias Clasen <mclasen@redhat.com>
1384
1385         * glib/gutils.c (g_set_application_name): Add a missing
1386         since tag.  (#464259, Mark Doliner)
1387
1388 2007-11-08  Matthias Clasen <mclasen@redhat.com>
1389
1390         * glib/goption.c (g_option_context_new): Improve the docs.
1391         (#436293, Vincent Untz)
1392
1393 2007-11-08  Matthias Clasen <mclasen@redhat.com>
1394
1395         * glib/gmain.c (g_main_loop_quit): Expand the docs 
1396         a bit.  (#317775, Søren Sandmann)
1397
1398 2007-11-08  Matthias Clasen <mclasen@redhat.com>
1399         
1400         * autogen.sh: Accept automake 1.10, too
1401
1402         * mkinstalldirs: Temporarily add this script, to fix building
1403         from svn.
1404
1405         * Makefile.am: Use MKDIRS_P instead of mkinstalldirs, add
1406         ChangeLog.pre-2-14 and mkinstalldirs to EXTRA_DIST.
1407
1408 2007-11-08  Matthias Clasen <mclasen@redhat.com>
1409
1410         * glib/gmarkup.h: Include gslist.h. Pointed out by Michael Natterer.
1411
1412 2007-11-08  Matthias Clasen <mclasen@redhat.com>
1413
1414         * glib/gconvert.c (g_convert_with_iconv): Try harder to reset
1415         shift state with AIX iconv().  (#467537)
1416
1417 2007-11-08  Matthias Clasen <mclasen@redhat.com>
1418
1419         * configure.in:
1420         * m4macros/glib-2.0.m4: Require pkg-config 0.16 in configure
1421         and in AM_PATH_GLIB_2_0 to be consistent with the use of
1422         PKG_PROG_PKG_CONFIG which was introduced in 0.16.  (#418778,
1423         Loïc Minier)
1424
1425 2007-11-08  Matthias Clasen <mclasen@redhat.com>
1426
1427         * glib/gstrfuncs.c (g_parse_long_long): Don't leave
1428         out parameters uninitialized.  (#490061, Benjamin Otte)
1429
1430 2007-11-07  Matthias Clasen <mclasen@redhat.com>
1431
1432         * glib/gmain.c (g_main_context_unref): Don't leak the
1433         condvar.  (#479724, Areg Beketovski)
1434
1435 2007-11-07  Matthias Clasen <mclasen@redhat.com>
1436
1437         * glib/glib.symbols:
1438         * glib/gmarkup.[hc] (g_markup_parse_context_get_element_stack): 
1439         New function, to get the stack of open elements.  (#452887,
1440         Ryan Lortie)
1441
1442 2007-11-07  Matthias Clasen <mclasen@redhat.com>
1443
1444         * glib/gkeyfile.[hc]: Make some functions that take
1445         a GError return boolean instead of void.  (#375651, Matt Barnes)
1446
1447 2007-11-07  Matthias Clasen <mclasen@redhat.com>
1448         
1449         * autogen.sh: Use automake 1.9
1450
1451         * acinclude.m4:
1452         * configure.in: Move some inter-*.m4 includes from
1453         configure.in to acinclude.m4 to avoid warnings when
1454         using automake 1.9.  (#449937)
1455
1456 2007-11-07  Matthias Clasen <mclasen@redhat.com>
1457
1458         === Branch for 2.14 ===