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