Fix up a bunch of details in the docs.
[platform/upstream/glib.git] / ChangeLog
1 2007-12-11 Rahul Bhalerao <b.rahul.pm@gmail.com>
2
3         * configure.in: Added entry for Marathi Translations
4
5 2007-12-10  Matthias Clasen  <mclasen@redhat.com>
6
7         * glib/glib.h: Include gurifuncs.h
8
9 2007-12-10  Benjamin Otte  <otte@gnome.org>
10
11         * glib/garray.h: use an intermediate cast to void * in g_array_index()
12         to not trigger cast alignment warnings, fixes #502927.
13
14 2007-12-10 15:08:59  Tim Janik  <timj@imendio.com>
15
16         * let g_warn_if_fail replace g_assert as discussed here:
17           http://mail.gnome.org/archives/gtk-devel-list/2007-October/msg00089.html
18
19         * fix bug #502498: Test framework assertion failures should follow
20         gcc error format.
21
22         * gmessages.h, gmessages.c: deprecated g_assert_warning() which is
23         unused now. removed g_assert*() definitions whcih are provided by 
24         gtestutils.h now. added g_warn_if_reached() and g_warn_if_fail()  
25         which are recommended as g_assert/g_assert_not_reached replacements
26         for non-test programs.
27         added g_warn_message() to implement g_warn_*() macros.
28         use emacs-next-error friendly formatting for file:line: for warnings.
29
30         * gtestutils.h, gtestutils.c: use emacs-next-error friendly formatting.
31         implement g_assert_not_reached() with g_assertion_message() and
32         g_assert() in terms of g_assertion_message_expr() so we'll be able to
33         provide assertion messages in test logs.
34
35         * gkeyfile.c, gbookmarkfile.c: changed g_assert*() to g_warn_if_fail()
36         or g_return_if_fail() where suitable.
37
38         * gio/: changed g_assert to g_warn_if_fail.
39
40 2007-12-10 13:02:08  Tim Janik  <timj@imendio.com>
41
42         * glib/gtestutils.c (g_assertion_message_cmpnum): applied patch by Tommi
43         Komulainen to fix int64 printouts, fixes #502511.
44
45 2007-12-10  Matthias Clasen  <mclasen@redhat.com>
46
47         * glib/gstrfuncs.h:
48         * glib/gstrfuncs.c (g_dpgettext): Change prototype to take 
49         msgctxtid + offset instead of two strings, to avoid duplication
50         of string constants if the compiler/linker don't perform constant
51         suffix merging.  (#502590, Christian Persch)
52
53         * glib/gi18n.h:
54         * glib/gi18n-lib.h: Adapt the definitions of C_() and Q_().
55
56 2007-12-09  Hans Breuer  <hans@breuer.org>
57
58         * tests/gio-ls.c : (new file) a test program emulating some of 'ls'
59         * tests/makefile.msc.in : build it (currently on win32)
60
61         * **/makefile.msc glib/makefile.msc.in : removed -GD to compile
62         with msvc9 (vs2008) with less complains
63         
64         * glibconfig.h.win32.in : #define G_HAVE_ISO_VARARGS 1 for
65         msv8 (vs2005) and above
66         
67         * glib/gfileutils.c : s/stricmp/_stricmp/
68         * msvc_recommended_pragmas.h : work around Microsoft's premature 
69         attempt to deprecate the C-Library
70
71         * tests/makefile.msc.in : added checksum-test
72
73 2007-12-08  Christian Persch  <chpe@gnome.org>
74
75         * gio/glocalfileinfo.c: (get_thumbnail_attributes): Add forgotten
76         #ifdef G_OS_WIN32 to fix the build on linux.
77
78 2007-12-08  Hans Breuer  <hans@breuer.org>
79
80         * glib/makefile.msc.in : build gchecksum.obj
81
82 2007-12-06  Mathias Hasselmann  <mathias@openismus.com>
83
84         * glib/ghash.c: Call destroy notify when destroying
85         the hash table in g_hash_table_unref.
86
87 2007-12-06 13:29:00  Tim Janik  <timj@imendio.com>
88
89         * glib/gtester.c (child_report_cb): detect non-blocking fd EOF
90         by read()==0 following poll(), needed on MacOS.
91
92 2007-12-06  Mathias Hasselmann  <mathias@openismus.com>
93
94         * glib/gunidecomp.c: Mention g_utf8_normalize()
95         returns NULL on invalid string. (#501997)
96
97 2007-12-06  Mathias Hasselmann  <mathias@openismus.com>
98
99         * glib/gerror.c: Improve wording for g_propagate_error docs.
100
101 2007-12-06 09:27:42  Tim Janik  <timj@imendio.com>
102
103         * tests/scannerapi.c: added new scanner test from #501654, by
104         Patrick Hulin with various modifications.
105         reworked coding style, adapted to new testing framework, fixed
106         token parser test and use a forked sub process to test
107         g_scanner_error() output messages.
108
109 2007-12-05 17:58:18  Tim Janik  <timj@imendio.com>
110
111         * glib/gtester.c: added -m=thorough support to gtester.
112
113 2007-12-05 17:21:05  Tim Janik  <timj@imendio.com>
114
115         * glib/glib/gtestutils.c: print out random seed for verbose tests,
116         also adapted test result reporting slightly in verbose mode to allow
117         custom debugging output. support "thorough" as test mode alis for "slow".
118
119         * glib/glib/gtestutils.h: added g_test_thorough().
120
121         * glib/glib/gtester.c: print out the last random seed when tests fail.
122         added result attribute to test case status logging to easily spot
123         failing tests in log files. disabled debugging output when skipping tests.
124
125 2007-12-05 11:43:22  Tim Janik  <timj@imendio.com>
126
127         * glib/gtestutils.[hc]: added g_test_add_data_func() to pass data
128         into tests. allow data arguments for fixture tests.
129
130         * glib/gtestutils.c: fixed fatal log flag setup, so tests really abort
131         upon criticals/warnings/errors.
132
133         * glib/tests/testing.c: test test_data arguments.
134
135         * glib/gtester.c: some prototype fixups.
136
137 2007-12-05  Tor Lillqvist  <tml@novell.com>
138
139         * glib/win_iconv.c: Add "shift-jis" as an alternative spelling of
140         "shift_jis".
141
142 2007-12-05  Ryan Lortie  <desrt@desrt.ca>
143
144         * autogen.sh: for the benefit of git users, checkout build/ if it is
145         missing
146         * .gitignore: but after that, ignore it.
147
148 2007-12-05  Ryan Lortie  <desrt@desrt.ca>
149
150         * glib/ghash.c: ungtk-docify some comments for internal functions
151
152 2007-12-04  Emmanuele Bassi  <ebassi@gnome.org>
153
154         * gio/glocalfileinfo.c: Replace the copy-and-paste MD5 digest
155         generation with GChecksum.
156
157 2007-12-04  Emmanuele Bassi  <ebassi@gnome.org>
158
159         * glib/gchecksum.[ch]: Add GChecksum, a generic wrapper around
160         various hashing algorithms. At the moment, the MD5, SHA-1 and
161         SHA-256 algorithms are supported. (#443648)
162
163         * glib/glib.h:
164         * glib/Makefile.am:
165         * glib/glib.symbols: Build glue for GChecksum
166
167         * tests/Makefile.am
168         * tests/checksum-test.c: Add test suite for GChecksum.
169
170 2007-12-03  Ryan Lortie  <desrt@desrt.ca>
171
172         * glib/ghash.c: no code changes; add comments to document the internal
173         functions.
174
175 2007-12-03  Ryan Lortie  <desrt@desrt.ca>
176
177         * glib/ghash.c: no code changes; reorder functions to remove the need
178         for forward declarations.
179
180 2007-12-03  Ryan Lortie  <desrt@desrt.ca>
181
182         * glib/ghash.c (g_hash_table_lookup_node,
183         g_hash_table_lookup_extended, g_hash_table_insert_internal,
184         g_hash_node_new): improve clarity in some functions
185
186 2007-12-03  Ryan Lortie  <desrt@desrt.ca>
187
188         * glib/ghash.c: rename 'node' to 'node_ptr' where appropriate
189
190 2007-12-03  Ryan Lortie  <desrt@desrt.ca>
191
192         * glib/ghash.c: convert G_HASH_TABLE_RESIZE() macro to inline function
193
194 2007-12-03  Ryan Lortie  <desrt@desrt.ca>
195
196         * glib/glib.symbols (glib_gettext): remove stray (duplicate) entry
197         from file to fix the build
198
199 2007-12-03  Behdad Esfahbod  <behdad@gnome.org>
200
201         * glib/gnulib/Makefile.am: Fix EXTRA_DIST automake warnings. (#501107)
202
203 2007-12-03  Hans Breuer  <hans@breuer.org>
204
205         * glib/glib.symbols : added glib_gettext (in use by gio)
206         * makefile.msc : also try building gio
207         
208         * glib/gmarkup.c : use G_GUINT64_CONSTANT() to avoid 
209         'bad suffix on number'
210         * glib/gtestutils.c : declare cariable at the beginning of the block,
211         include <io.h> for G_OS_WIN32
212         * makefile.msc.in : add gurifuncs and gtestutils
213
214 2007-12-03  Ryan Lortie  <desrt@desrt.ca>
215
216         * glib/ghash.c: create a common function for the many places where all
217         nodes in the table are removed (remove_all, steal_all, destroy, unref,
218         etc...)
219
220 2007-12-03  Ryan Lortie  <desrt@desrt.ca>
221
222         * tests/hash-test.c (second_hash_test): fix memory leak, add a few
223         extra sanity tests.
224
225 2007-12-03  Matthias Clasen  <mclasen@redhat.com>
226         
227         * glib/gkeyfile.c: Don't call g_get_language_names() per-key.
228         (#500638, Michael Meeks)
229
230 2007-12-03  Marco Barisione <marco@barisione.org>
231
232         * glib/gregex.c:
233         * glib/gregex.h: Add new error codes for when compilation fails and
234         make compilation error translatable. (#482313, Morten Welinder)
235
236 2007-12-03  Matthias Clasen  <mclasen@redhat.com>
237
238         * glib/gkeyfile.c: Add a hash table to speed up group lookups,
239         which GKeyFile does quite a lot.  
240
241 2007-12-03  Alexander Larsson  <alexl@redhat.com>
242
243         * configure.in:
244         Add xattr checks for OSX style API (#500506)
245
246 2007-12-03  Ryan Lortie  <desrt@desrt.ca>
247
248         * glib/ghash.c: merge more common code into functions.  Vastly
249         simplify loop logic in g_hash_table_foreach_remove_or_steal().
250
251 2007-12-01  Behdad Esfahbod  <behdad@gnome.org>
252
253         * Makefile.am: Don't descend into build/. (#500875)
254
255 2007-11-28  Matthias Clasen  <mclasen@redhat.com>
256
257         * glib/gmarkup.h:
258         * glib/gmarkup.c: 
259         * glib/gerror.c: Add Since: tags to new API, other doc improvements.
260
261 2007-11-28  Matthias Clasen  <mclasen@redhat.com>
262
263         * glib/gurifuncs.c: Some doc cleanups
264
265 2007-11-28  Matthias Clasen  <mclasen@redhat.com>
266
267         * glib/gtestutils.c: Fix up some doc comments, avoid C99 comments
268
269         * glib/gconvert.c: De-doc-commentify static functions to
270         shut up gtk-doc.
271
272         * glib/gutils.c: Fix the glib_gettext doc comment.
273
274 2007-11-28  Tor Lillqvist  <tml@novell.com>
275
276         * config.h.win32.in: Update to match what configure produces.
277
278 2007-11-28  Alexander Larsson  <alexl@redhat.com>
279
280         * glib/gstring.c (g_string_append_uri_escaped):
281         Move this function before g_string_append_c so that
282         we avoid the plt call due to the undefinf of g_string_append_c
283
284 2007-11-28  Emmanuele Bassi  <ebassi@gnome.org>
285
286         * gio/Makefile.am: Remove makegioalias.pl from the marshal files
287         and avoid it being cleaned up when running make clean.
288
289 2007-11-28  Alexander Larsson  <alexl@redhat.com>
290
291         * glib/glib.symbols:
292         Add in the new symbols
293         
294         * glib/gurifuncs.c:
295         Use the aliases framework
296         
297         * glib/glibintl.h:
298         * glib/gutils.c:
299         Make the alias stuff work now that glib_gettext
300         is exported to libgio. 
301
302 2007-11-27  Ryan Lortie  <desrt@desrt.ca>
303
304         * glib/ghash.c (g_hash_table_insert, g_hash_table_replace,
305         g_hash_table_insert_internal): insert/replace were identical except
306         for a single line.  Replace both with a common function.
307
308 2007-11-27  Alexander Larsson  <alexl@redhat.com>
309
310         * gio/Makefile.am:
311         * gio/gurifuncs.[ch]:
312         * glib/Makefile.am:
313         * glib/gstring.[ch]:
314         * glib/gurifuncs.[ch]:
315         Moved gurifuncs from gio to glib
316
317 2007-11-27  Alexander Larsson  <alexl@redhat.com>
318
319         * gio/gfileinfo.[ch]:
320         * glib/gfileutils.[ch]:
321         Move g_format_file_size_for_display from gio to glib
322
323 2007-11-27  Alexander Larsson  <alexl@redhat.com>
324
325         * configure.in:
326         Allow configuration of gio-module-dir
327         
328         * gio-2.0.pc.in:
329         Export giomodules location as giomodule variable
330
331 2007-11-26  Matthias Clasen  <mclasen@redhat.com>
332
333         * tests/markup-collect.c: Add some tests for invalid booleans
334
335 2007-11-26  Ryan Lortie  <desrt@desrt.ca>
336  
337         Add new function g_markup_collect_attributes (bug #496847).
338  
339         * glib/glib.symbols: add g_markup_collect_attributes
340  
341         * docs/reference/glib/glib-sections.txt: 
342         * glib/gmarkup.h:
343         * glib/gmarkup.c: add g_markup_collect_attributes and new enumerated
344         type GMarkupCollectType.  Add new error code
345         G_MARKUP_ERROR_MISSING_ATTRIBUTE that is thrown by the attribute
346         collector.
347
348 2007-11-27  Tor Lillqvist  <tml@novell.com>
349
350         * glib/win_iconv.c: Some improvements, being upstreamed.
351         (must_use_null_useddefaultchar): New function, checks for those
352         codepages for which one must pass a NULL lpUsedDefaultChar pointer
353         to WideCharToMultiByte().
354         (kernel_wctomb): Use it.
355         (kernel_wctomb): Return with E2BIG immediately if bufsize is zero.
356
357 2007-11-27  Tor Lillqvist  <tml@novell.com>
358
359         * glib/gutils.c (_glib_get_locale_dir) [Win32]: Use either
360         lib/locale or share/locale depending on which one is in
361         GLIB_LOCALE_DIR. When the configury recognizes GNU gettext (based
362         on the _nl_msg_cat_cntr variable, eek), share/locale gets used.
363
364         * glib-zip.in: Likewise, look for message catalogs either in
365         lib/locale or share/locale.
366
367 2007-11-26  Matthias Clasen  <mclasen@redhat.com>
368
369         * gio/gfileattribute.c: Fix up a doc comment.
370
371 2007-11-26  Alexander Larsson  <alexl@redhat.com>
372
373         * Makefile.am:
374         * configure.in:
375         * gio-2.0-uninstalled.pc.in:
376         * gio-2.0.pc.in: 
377         * gio-unix-2.0-uninstalled.pc.in:
378         * gio-unix-2.0.pc.in:
379         * gio/
380         * docs/reference/gio
381         Merged gio-standalone into glib.
382         
383         * glib/glibintl.h:
384         * glib/gutils.c:
385         Export glib_gettext so that gio can use it
386         Add P_ (using same domain for now)
387         Add I_ as g_intern_static_string
388
389 2007-11-26  Tor Lillqvist  <tml@novell.com>
390
391         * glib/win_iconv.c: ISO8859-1 is CP28591, not CP1252.
392
393 2007-11-26  Tor Lillqvist  <tml@novell.com>
394
395         Implement #491549: On Windows, always use the native API for
396         character set conversions instead of GNU libiconv. Almost all
397         codesets supported by GNU libiconv exist as Windows codepages.
398         One missing feature is the "C99" and "JAVA" pseudo codesets, but I
399         doubt that is worth worrying about.
400         
401         * glib/win_iconv.c: New file. iconv() implementation for
402         Windows. Placed in the public domain by Yukihiro Nakadaira
403         <yukihiro.nakadaira@gmail.com>. From
404         http://yukihiro.nakadaira.googlepages.com/win_iconv.zip, his
405         2007-11-17 version.
406
407         * glib/gconvert.c: Include win_iconv.c on Windows.
408
409         * glib/Makefile.am: Add win_iconv.c to EXTRA_DIST.
410         
411         * configure.in: Bypass iconv checks on Windows. 
412
413 2007-11-25  Tor Lillqvist  <tml@novell.com>
414
415         * glib/gtestutils.c: Add conditionals for non-Unix. Just g_error()
416         unless G_OS_UNIX for now.
417
418 2007-11-25  Matthias Clasen  <mclasen@redhat.com>
419
420         * configure.in: Require gtk-doc 1.8.
421
422         * glib/gasyncqueue.c:
423         * glib/gdate.c:
424         * glib/gfileutils.c:
425         * glib/gmain.c:
426         * glib/gmarkup.c:
427         * glib/gregex.c:
428         * glib/gtestutils.c:
429         * glib/gutils.c: Use gtk-doc abbreviations for 
430         examples in doc comments.
431
432 2007-11-24  Matthias Clasen  <mclasen@redhat.com>
433
434         * */Makefile.am: Replace INCLUDES by AM_CPPFLAGS, other
435         cleanups.
436
437 2007-11-24  Matthias Clasen  <mclasen@redhat.com>
438
439         * tests/base64-test.c: Fix a memory overrun.
440
441 2007-11-24  Matthias Clasen  <mclasen@redhat.com>
442
443         * glib/gutils.c: Remove leftover ENABLE_NLS #ifdefs.
444
445 2007-11-23  Matthias Clasen  <mclasen@redhat.com>
446
447         * glib/gbase64.c (g_base64_encode): Don't refuse to encode
448         a single byte.  (Milan Crha)
449
450         * tests/base64-test.c: Test encoding short strings.
451
452 2007-11-23  Matthias Clasen  <mclasen@redhat.com>
453
454         * glib/gi18n-lib.h: 
455         * glib/gi18n.h: Define a two-argument macro C_() for marking
456         translatable strings with context and implement C_() and Q_()
457         using g_dpgettext().  (#142676, Morten Welinder)
458
459         * glib/glib.symbols:
460         * glib/gstrfuncs.[hc]: Implement g_dpgettext().
461
462 2007-11-23  Matthias Clasen  <mclasen@redhat.com>
463
464         * glib/goption.c: Use g_print to print out --help text in 
465         locale encoding.  (#469551, Takao Fujiwara)
466
467 2007-11-22  Matthias Clasen  <mclasen@redhat.com>
468
469         * glib/gkeyfile.c: Set length out param in list-returning functions
470         to 0 when returning NULL.  (#498728, Christian Persch)
471
472 2007-11-21 21:06:47  Tim Janik  <timj@imendio.com>
473
474         * Makefile.decl: initialize automake variables EXTRA_DIST and
475         TEST_PROGS for unconditional appending via += in other makefiles.
476         define recursive test targets: test, test-report, perf-report,
477         full-report, as described here:
478       http://mail.gnome.org/archives/gtk-devel-list/2007-November/msg00000.html
479
480         * Makefile.am:
481         * build/win32/vs8/Makefile.am, build/win32/dirent/Makefile.am:
482         * build/win32/Makefile.am, build/Makefile.am:
483         * docs/Makefile.am, docs/reference/Makefile.am:
484         * docs/reference/glib/Makefile.am, docs/reference/gobject/Makefile.am:
485         * gmodule/Makefile.am, tests/Makefile.am:
486         * tests/refcount/Makefile.am, tests/gobject/Makefile.am:
487         * glib/update-pcre/Makefile.am, glib/libcharset/Makefile.am:
488         * glib/tests/Makefile.am, glib/pcre/Makefile.am:
489         * glib/gnulib/Makefile.am, gobject/Makefile.am, m4macros/Makefile.am:
490         * gthread/Makefile.am, glib/Makefile.am:
491         include $(top_srcdir)/Makefile.decl, adapted EXTRA_DIST assignments.
492
493         * glib/tests/Makefile.am: removed example testing rules.
494
495         * glib/tests/testing.c: conditionalized performance and slow tests.
496
497         * glib/gtestutils.h:
498         * glib/gtestutils.c: work around g_test_config_vars not changing its
499         exported value after value assignments, aparently due to symbol aliases.
500
501         * glib/gtester.c: fixed off-by-one error which produced junk in logs.
502
503         * configure.in: check for python >= 2.4 and provide $PYTHON for scripts.
504
505 Tue Nov 20 15:59:55 2007 +0100 Tim Janik
506
507         Renamed gtestframework to gtestutils.
508
509         * glib/glib.h:
510         * glib/Makefile.am: added gtestutils.h to public includes.
511
512         * glib/gtestutils.c: include gtestutils.h.
513
514         * glib/gtestutils.h:
515         * glib/glib.symbols:
516         * glib/tests/testing.c: renamed gtestframework to gtestutils.
517
518         * glib/gtestframework.h: renamed to gtestutils.h.
519
520         * glib/gtestframework.c: renamed to gtestutils.c.
521
522 Tue Nov 20 15:29:34 2007 +0100 Tim Janik
523
524         glib/gtestframework.c: g_test_init(): make warnings and criticals fatal for all test programs.
525
526 Wed Nov 14 20:35:05 2007 +0100 Tim Janik
527
528         gtestframework.c: added test API documentation by Sven Herzberg and Tim Janik.
529
530 Wed Nov 14 19:10:28 2007 +0100 Tim Janik
531
532         gtestframework.[hc]: implemented g_test_queue_destroy() and g_test_queue_unref().
533
534 Fri Nov 9 12:28:52 2007 +0100 Tim Janik
535
536         Added g_test_bug() and related API.
537
538         * gtester.c: handle G_TEST_LOG_MESSAGE and test test message API.
539
540         * gtestframework.h, gtestframework.c: added test message API and convenience
541         API to send test messages about bug URLs.
542
543 Fri Nov 9 11:35:11 2007 +0100 Tim Janik
544
545         Added API to access test framework configuration.
546
547         * gtestframework.h, gtestframework.c: export testing configuration to test
548         programs with g_test_quick(), g_test_perf(), g_test_verbose(), g_test_quiet().
549
550 Thu Nov 8 17:55:09 2007 +0100 Tim Janik
551
552         gtester: implemented logic to handle failing tests, self tests, and validate XML reports.
553
554         * gtester.c: terminate when tests failed. keep XML valid when test cases fail.
555         restart test binaries when tests fail, resuming after the last processed test.
556         support --gtester-selftest to run gtester itself as test program.
557         support --test-arg=<arg> to pass args along to test programs. added
558         main_selftest() which does a simplistic fixture test. fail if exit
559         code of test programs is not 0.
560
561         * gtestframework.h: added G_TEST_LOG_SKIP_CASE test log message type.
562
563         * gtestframework.c: support --GTestSkipCount=<n> to skip a number of tests.
564
565         * tests/Makefile.am: added test-report: for demonstration purposes.
566         added gtester-xmllint-check: and hooked it up into check:, this rule calls
567         gtester as test program, running it's selftest, and then uses xmllint to
568         validate the generate XML test log file.
569
570 Thu Nov 8 14:51:37 2007 +0100 Tim Janik
571
572         gtester: implemented XML logging.
573
574         * glib/gtester.c: log test messages to XML output file. beautified normal test
575         result output.
576
577         * glib/gtestframework.c: fixed GTimer leak.
578
579         * glib/tests/Makefile.am: start gtester with --verbose.
580
581 Thu Nov 8 12:33:31 2007 +0100 Tim Janik
582
583         tests/Makefile.am: execute test programs with gtester, add test: to check:
584
585 Thu Nov 8 12:18:51 2007 +0100 Tim Janik
586
587         Fixed PLT symbol exports for gtestframework.h.
588
589         * glib/glib.symbols: added all exported gtestframework.h symbols.
590
591         * glib/gtestframework.c: include galias.h, galiasdef.c, define __G_TESTFRAMEWORK_C__.
592
593 Thu Nov 8 11:31:12 2007 +0100 Tim Janik
594
595         glib/gtester.c: fixed debugging flag.
596
597 Wed Nov 7 17:56:26 2007 +0100 Tim Janik
598
599         fixed bogus unistd.h include.
600
601 Wed Nov 7 17:53:30 2007 +0100 Tim Janik
602
603         Implemented test log IPC.
604
605         * gtester.c: read and decode log messages from test binary child processes.
606         fixed GIOChannel and child watch handling to process all messages and avoid
607         hangs. pass --verbose and --quiet on to children, default to --quiet.
608
609         * gtestframework.h: export g_test_log_type_name().
610
611         * gtestframework.c: send test log to --GTestLogFD=<fd> if given, removed
612         bogus -o-option.
613
614 Tue Nov 6 20:07:44 2007 +0100 Tim Janik
615
616         gtester.c: support test case listing through gtester.
617
618 Tue Nov 6 20:01:06 2007 +0100 Tim Janik
619
620         gtestframework.c: fixed testpath matches for automatic root suite.
621
622 Tue Nov 6 19:50:33 2007 +0100 Tim Janik
623
624         gtester.c: adapted to become a rudimentary test binary launcher.
625
626         * gtester.c: increased read buffer size to match common unix pipe buffer size.
627         added argument parsing and usage. changed io handling to capture and replicate
628         stdout. fixed io handlers to be cleaned up when the child process exits (catch
629         G_IO_ERR | G_IO_HUP). we now use pending/iteration instead of a main loop
630         structure, to keep running until the child process exits and all io has been
631         processed. launch the test binaries given on the command line. don't quit when
632         a child couldn't be launched but --keep-going was specified.
633
634 Tue Nov 6 17:11:37 2007 +0100 Tim Janik
635
636         Integrated gtester program into build process.
637
638         * Makefile.am: build and install gtester binary.
639
640         * gtester.c: fixed up coding style and removed hard wired test coded.
641
642 Tue Nov 6 16:12:32 2007 +0100 Sven Herzberg
643
644         glib/gtester.c:Small -Wall fix
645
646 Tue Nov 6 16:05:06 2007 +0100 Sven Herzberg
647
648         glib/gtester.c:Implemented nonblocking reading properly now
649
650 Mon Nov 5 13:53:23 2007 +0100 Sven Herzberg
651
652         glib/gtester.c:Quit the application when the output is parsed completely, not just the process finished
653
654 Mon Nov 5 12:00:16 2007 +0100 Sven Herzberg
655
656         glib/gtester.c:Read the output of the child process
657
658 Mon Nov 5 11:50:59 2007 +0100 Sven Herzberg
659
660         glib/gtester.c:Use g_spawn_async_with_pipes()
661
662 Mon Nov 5 11:50:08 2007 +0100 Sven Herzberg
663
664         glib/gtester.c:Spawn a process async and quit gtester after the child process exited
665
666 Mon Nov 5 11:30:45 2007 +0100 Sven Herzberg
667
668         glib/gtester.c:Added a first revision of gtester
669
670 Tue Nov 6 16:47:06 2007 +0100 Tim Janik
671
672         Implemented test log serialization.
673
674         * glib/gtestframework.h: added g_test_log*() API.
675
676         * glib/gtestframework.c: implement test log serialization.
677
678 Tue Nov 6 14:24:54 2007 +0100 Tim Janik
679
680         Implemented test logging basics.
681
682         * glib/gtestframework.c: added --debug-log and --verbose, implemented
683         test information logging.
684
685         * testing.c: test g_test_maximized_result() and g_test_minimized_result().
686
687 Tue Nov 6 11:52:14 2007 +0100 Tim Janik
688
689         Implemented g_test_timer*().
690
691         * gtestframework.c: implemented g_test_timer*().
692
693         * tests/testing.c: added a g_test_timer*() test.
694
695 Mon Nov 5 18:28:24 2007 +0100 Tim Janik
696
697         Implemented support for testpaths.
698
699         * gtestframework.c: implemented g_test_add_vtable() and g_test_add_func().
700
701         * tests/testing.c: use g_test_add() and g_test_add_func() to majorly simplify main().
702
703 Mon Nov 5 15:56:42 2007 +0100 Tim Janik
704
705         testing.c: added tests for the g_test_rand*() API.
706
707 Mon Nov 5 15:55:38 2007 +0100 Tim Janik
708
709         Implemented g_test_rand*().
710
711         * gtestframework.h: fixed g_assert_cmp*() to evaluate arguments only once.
712         added g_assert_cmpuint(). completed g_test_rand*() to cover bits, ints,
713         doubles and ranges.
714
715         * gtestframework.c: fixed "--seed" option and implemented g_test_rand*().
716
717 Mon Nov 5 15:51:43 2007 +0100 Tim Janik
718
719         testing.c: added tests for g_assert_cmphex() and forked test traps.
720
721 Mon Nov 5 15:10:18 2007 +0100 Tim Janik
722
723         Implemented g_test_trap_fork() API.
724
725         * gtestframework.h: added g_assert_cmphex(). reworked g_test_trap*() API.
726
727         * gtestframework.c: implemented g_test_trap_fork() API.
728
729 Thu Nov 1 15:05:07 2007 +0100 Tim Janik
730
731         * glib/gtestframework.c:
732
733         that match a given test path.
734         (g_test_run_suite): run suite only if it matches the existing test paths.
735
736         * glib/tests/testing.c: minor rename.
737
738 Thu Nov 1 13:45:55 2007 +0100 Tim Janik
739
740         GTest framework started.
741
742         * glib/gtestframework.h: testing framework API as proposed on gtk-devel-list.
743         includes elaborate assertions, performance report functions, test traps,
744         test timer, test random numbers, teardoiwn garbage collection functions
745         and general test case / test suite management APIs.
746
747         * glib/gtestframework.c: first test framework implementation. already covers
748         some test suite management APIs and assertion message implementations.
749
750         * glib/tests/testing.c: test program for the testing framework.
751
752         * glib/tests/Makefile.am: complie testing.c as test. run all tests as part of
753         make test:.
754
755 Wed Oct 31 15:42:48 2007 +0100 Tim Janik
756
757         glib/Makefile.am: build tests/ subdir after building libglib.
758
759 Tue Oct 30 16:17:32 2007 +0100 Tim Janik
760
761         Fixed up internal 'g_test*' names.
762
763         * refcount/signals.c:
764         * refcount/objects.c:
765         * refcount/objects2.c:
766         * refcount/closures.c:
767         * refcount/properties.c:
768         * refcount/properties2.c: changed namespace prefix from g_test_* to my_test_*
769         to not clash with newly introduced g_test* API in glib.
770
771 Tue Oct 30 14:41:26 2007 +0100 Tim Janik
772
773         Added gtestframework.[hc] and glib/tests/.
774
775 2007-11-20  Sven Neumann  <sven@gimp.org>
776
777         * glib/gerror.c (g_error_add_prefix): use g_strconcat() instead of
778         g_strjoin() to concatenate two strings.
779
780 2007-11-19  Marco Barisione  <marco@barisione.org>
781
782         * glib/gregex.c: When the compilation of a pattern fails in the error
783         message use the character offset and not the byte offset.
784
785         * glib/gregex.c: Pass an unsigned long instead of an int to
786         pcre_fullinfo() to avoid problems on 64-bit systems (#498113, Kouhei
787         Sutou)
788
789 2007-11-19 10:30:33  Tim Janik  <timj@imendio.com>
790
791         * configure.in: updated version number to 2.15.0 for development.
792
793 2007-11-18  Matthias Clasen  <mclasen@redhat.com>
794
795         * glib/gbase64.c: Documentation improvements.  (#496518,
796         Stefan Schulze Frielinghaus)
797
798 2007-11-18  Matthias Clasen  <mclasen@redhat.com>
799
800         * configure.in: Check whether assembler supports numerical local
801         labels.  
802
803         * glib/gatomic.c: Fix powerpc implementation of atomic ops for 
804         platforms where the assembler doesn't support numerical local
805         labels.  (#445362)
806
807 2007-11-15  Ryan Lortie  <desrt@desrt.ca>
808
809         * docs/reference/glib/tmpl/markup.sgml:
810         * glib/gmarkup.h:
811         * glib/gmarkup.c: new flag G_MARKUP_PREFIX_ERROR_POSITION to cause the
812         parser to prepend location information (ie: "Error on line %d, char
813         %d:") to errors generated by the GMarkupParser callbacks.
814
815         Closes #496046.
816
817 2007-11-15  Ryan Lortie  <desrt@desrt.ca>
818
819         * docs/reference/glib/glib-sections.txt:
820         * glib/glib.symbols:
821         * glib/gerror.h:
822         * glib/gerror.c: new functions g_prefix_error and
823         g_propagate_prefixed_error.
824
825 2007-11-13  Cody Russell  <bratsche@gnome.org>
826
827         * docs/reference/gobject/gobject-docs.sgml:
828         * docs/reference/gobject/tut_gsignal.xml:
829         * docs/reference/gobject/tut_gtype.xml:
830         * docs/reference/gobject/tut_intro.xml:
831         * docs/reference/gobject/tut_tools.xml:
832         * docs/reference/gobject/tut_howto.xml:
833         * docs/reference/gobject/tut_gobject.xml: Documentation fixes.
834         Recommend macro type names such as NAUTILUS_TYPE_WINDOW (not
835         NAUTILUS_WINDOW_TYPE).  Fixed text which erroneously stated that 
836         superclass initializers don't run when an object is 
837         instantiated.  Fixed numerous spelling mistakes.  Minor grammar 
838         edits. (#490637, Adam Dingle)
839
840 2007-11-09  Matthias Clasen <mclasen@redhat.com>
841
842         * glib/gkeyfile.c: Coding style cleanups and doc 
843         improvements.  (#491979, #491982, Areg Beketovski)
844
845 2007-11-09  Matthias Clasen <mclasen@redhat.com>
846
847         * glib/giochannel.c: Coding style cleanups and doc 
848         improvements.  (#491975, Areg Beketovski)
849
850 2007-11-09  Matthias Clasen <mclasen@redhat.com>
851
852         * glib/gmain.c (g_main_context_iteration): Improve the
853         docs.  (#491974, Areg Beketovski)
854
855 2007-11-09  Matthias Clasen <mclasen@redhat.com>
856
857         * glib/gdate.c: Coding style fixes.
858
859 2007-11-09  Matthias Clasen <mclasen@redhat.com>
860
861         * configure.in: Add AM_PROG_CC_C_O.
862
863         * Makefile.am: Remove the install-exec-local hook and use
864         configexecincludedir_DATA instead, in an attempt to avoid
865         automake 1.9 <> 1.10 incompatibilities.
866
867         * glib/Makefile.am: Rename MIRRORING_TAB_SOURCES, since
868         automake 1.10 complains.
869
870 2007-11-09  Matthias Clasen <mclasen@redhat.com>
871
872         * glib/gspawn.c (g_spawn_sync): Improve the docs.  (#491968,
873         Areg Beketovski)
874
875 2007-11-08  Matthias Clasen <mclasen@redhat.com>
876
877         * glib/gmain.c (g_main_context_release): 
878         (g_main_context_acquire):
879         (g_main_context_new): Fix the doc wording.  (#491957, 
880         #491965, #491966, Areg Beketovski)
881
882 2007-11-08  Matthias Clasen <mclasen@redhat.com>
883
884         * glib/gutils.c (g_set_application_name): Add a missing
885         since tag.  (#464259, Mark Doliner)
886
887 2007-11-08  Matthias Clasen <mclasen@redhat.com>
888
889         * glib/goption.c (g_option_context_new): Improve the docs.
890         (#436293, Vincent Untz)
891
892 2007-11-08  Matthias Clasen <mclasen@redhat.com>
893
894         * glib/gmain.c (g_main_loop_quit): Expand the docs 
895         a bit.  (#317775, Søren Sandmann)
896
897 2007-11-08  Matthias Clasen <mclasen@redhat.com>
898         
899         * autogen.sh: Accept automake 1.10, too
900
901         * mkinstalldirs: Temporarily add this script, to fix building
902         from svn.
903
904         * Makefile.am: Use MKDIRS_P instead of mkinstalldirs, add
905         ChangeLog.pre-2-14 and mkinstalldirs to EXTRA_DIST.
906
907 2007-11-08  Matthias Clasen <mclasen@redhat.com>
908
909         * glib/gmarkup.h: Include gslist.h. Pointed out by Michael Natterer.
910
911 2007-11-08  Matthias Clasen <mclasen@redhat.com>
912
913         * glib/gconvert.c (g_convert_with_iconv): Try harder to reset
914         shift state with AIX iconv().  (#467537)
915
916 2007-11-08  Matthias Clasen <mclasen@redhat.com>
917
918         * configure.in:
919         * m4macros/glib-2.0.m4: Require pkg-config 0.16 in configure
920         and in AM_PATH_GLIB_2_0 to be consistent with the use of
921         PKG_PROG_PKG_CONFIG which was introduced in 0.16.  (#418778,
922         Loïc Minier)
923
924 2007-11-08  Matthias Clasen <mclasen@redhat.com>
925
926         * glib/gstrfuncs.c (g_parse_long_long): Don't leave
927         out parameters uninitialized.  (#490061, Benjamin Otte)
928
929 2007-11-07  Matthias Clasen <mclasen@redhat.com>
930
931         * glib/gmain.c (g_main_context_unref): Don't leak the
932         condvar.  (#479724, Areg Beketovski)
933
934 2007-11-07  Matthias Clasen <mclasen@redhat.com>
935
936         * glib/glib.symbols:
937         * glib/gmarkup.[hc] (g_markup_parse_context_get_element_stack): 
938         New function, to get the stack of open elements.  (#452887,
939         Ryan Lortie)
940
941 2007-11-07  Matthias Clasen <mclasen@redhat.com>
942
943         * glib/gkeyfile.[hc]: Make some functions that take
944         a GError return boolean instead of void.  (#375651, Matt Barnes)
945
946 2007-11-07  Matthias Clasen <mclasen@redhat.com>
947         
948         * autogen.sh: Use automake 1.9
949
950         * acinclude.m4:
951         * configure.in: Move some inter-*.m4 includes from
952         configure.in to acinclude.m4 to avoid warnings when
953         using automake 1.9.  (#449937)
954
955 2007-11-07  Matthias Clasen <mclasen@redhat.com>
956
957         === Branch for 2.14 ===