Require gtk-doc 1.8.
[platform/upstream/glib.git] / ChangeLog
1 2007-11-25  Matthias Clasen  <mclasen@redhat.com>
2
3         * configure.in: Require gtk-doc 1.8.
4
5         * glib/gasyncqueue.c:
6         * glib/gdate.c:
7         * glib/gfileutils.c:
8         * glib/gmain.c:
9         * glib/gmarkup.c:
10         * glib/gregex.c:
11         * glib/gtestutils.c:
12         * glib/gutils.c: Use gtk-doc abbreviations for 
13         examples in doc comments.
14
15 2007-11-24  Matthias Clasen  <mclasen@redhat.com>
16
17         * */Makefile.am: Replace INCLUDES by AM_CPPFLAGS, other
18         cleanups.
19
20 2007-11-24  Matthias Clasen  <mclasen@redhat.com>
21
22         * tests/base64-test.c: Fix a memory overrun.
23
24 2007-11-24  Matthias Clasen  <mclasen@redhat.com>
25
26         * glib/gutils.c: Remove leftover ENABLE_NLS #ifdefs.
27
28 2007-11-23  Matthias Clasen  <mclasen@redhat.com>
29
30         * glib/gbase64.c (g_base64_encode): Don't refuse to encode
31         a single byte.  (Milan Crha)
32
33         * tests/base64-test.c: Test encoding short strings.
34
35 2007-11-23  Matthias Clasen  <mclasen@redhat.com>
36
37         * glib/gi18n-lib.h: 
38         * glib/gi18n.h: Define a two-argument macro C_() for marking
39         translatable strings with context and implement C_() and Q_()
40         using g_dpgettext().  (#142676, Morten Welinder)
41
42         * glib/glib.symbols:
43         * glib/gstrfuncs.[hc]: Implement g_dpgettext().
44
45 2007-11-23  Matthias Clasen  <mclasen@redhat.com>
46
47         * glib/goption.c: Use g_print to print out --help text in 
48         locale encoding.  (#469551, Takao Fujiwara)
49
50 2007-11-22  Matthias Clasen  <mclasen@redhat.com>
51
52         * glib/gkeyfile.c: Set length out param in list-returning functions
53         to 0 when returning NULL.  (#498728, Christian Persch)
54
55 2007-11-21 21:06:47  Tim Janik  <timj@imendio.com>
56
57         * Makefile.decl: initialize automake variables EXTRA_DIST and
58         TEST_PROGS for unconditional appending via += in other makefiles.
59         define recursive test targets: test, test-report, perf-report,
60         full-report, as described here:
61       http://mail.gnome.org/archives/gtk-devel-list/2007-November/msg00000.html
62
63         * Makefile.am:
64         * build/win32/vs8/Makefile.am, build/win32/dirent/Makefile.am:
65         * build/win32/Makefile.am, build/Makefile.am:
66         * docs/Makefile.am, docs/reference/Makefile.am:
67         * docs/reference/glib/Makefile.am, docs/reference/gobject/Makefile.am:
68         * gmodule/Makefile.am, tests/Makefile.am:
69         * tests/refcount/Makefile.am, tests/gobject/Makefile.am:
70         * glib/update-pcre/Makefile.am, glib/libcharset/Makefile.am:
71         * glib/tests/Makefile.am, glib/pcre/Makefile.am:
72         * glib/gnulib/Makefile.am, gobject/Makefile.am, m4macros/Makefile.am:
73         * gthread/Makefile.am, glib/Makefile.am:
74         include $(top_srcdir)/Makefile.decl, adapted EXTRA_DIST assignments.
75
76         * glib/tests/Makefile.am: removed example testing rules.
77
78         * glib/tests/testing.c: conditionalized performance and slow tests.
79
80         * glib/gtestutils.h:
81         * glib/gtestutils.c: work around g_test_config_vars not changing its
82         exported value after value assignments, aparently due to symbol aliases.
83
84         * glib/gtester.c: fixed off-by-one error which produced junk in logs.
85
86         * configure.in: check for python >= 2.4 and provide $PYTHON for scripts.
87
88 Tue Nov 20 15:59:55 2007 +0100 Tim Janik
89
90         Renamed gtestframework to gtestutils.
91
92         * glib/glib.h:
93         * glib/Makefile.am: added gtestutils.h to public includes.
94
95         * glib/gtestutils.c: include gtestutils.h.
96
97         * glib/gtestutils.h:
98         * glib/glib.symbols:
99         * glib/tests/testing.c: renamed gtestframework to gtestutils.
100
101         * glib/gtestframework.h: renamed to gtestutils.h.
102
103         * glib/gtestframework.c: renamed to gtestutils.c.
104
105 Tue Nov 20 15:29:34 2007 +0100 Tim Janik
106
107         glib/gtestframework.c: g_test_init(): make warnings and criticals fatal for all test programs.
108
109 Wed Nov 14 20:35:05 2007 +0100 Tim Janik
110
111         gtestframework.c: added test API documentation by Sven Herzberg and Tim Janik.
112
113 Wed Nov 14 19:10:28 2007 +0100 Tim Janik
114
115         gtestframework.[hc]: implemented g_test_queue_destroy() and g_test_queue_unref().
116
117 Fri Nov 9 12:28:52 2007 +0100 Tim Janik
118
119         Added g_test_bug() and related API.
120
121         * gtester.c: handle G_TEST_LOG_MESSAGE and test test message API.
122
123         * gtestframework.h, gtestframework.c: added test message API and convenience
124         API to send test messages about bug URLs.
125
126 Fri Nov 9 11:35:11 2007 +0100 Tim Janik
127
128         Added API to access test framework configuration.
129
130         * gtestframework.h, gtestframework.c: export testing configuration to test
131         programs with g_test_quick(), g_test_perf(), g_test_verbose(), g_test_quiet().
132
133 Thu Nov 8 17:55:09 2007 +0100 Tim Janik
134
135         gtester: implemented logic to handle failing tests, self tests, and validate XML reports.
136
137         * gtester.c: terminate when tests failed. keep XML valid when test cases fail.
138         restart test binaries when tests fail, resuming after the last processed test.
139         support --gtester-selftest to run gtester itself as test program.
140         support --test-arg=<arg> to pass args along to test programs. added
141         main_selftest() which does a simplistic fixture test. fail if exit
142         code of test programs is not 0.
143
144         * gtestframework.h: added G_TEST_LOG_SKIP_CASE test log message type.
145
146         * gtestframework.c: support --GTestSkipCount=<n> to skip a number of tests.
147
148         * tests/Makefile.am: added test-report: for demonstration purposes.
149         added gtester-xmllint-check: and hooked it up into check:, this rule calls
150         gtester as test program, running it's selftest, and then uses xmllint to
151         validate the generate XML test log file.
152
153 Thu Nov 8 14:51:37 2007 +0100 Tim Janik
154
155         gtester: implemented XML logging.
156
157         * glib/gtester.c: log test messages to XML output file. beautified normal test
158         result output.
159
160         * glib/gtestframework.c: fixed GTimer leak.
161
162         * glib/tests/Makefile.am: start gtester with --verbose.
163
164 Thu Nov 8 12:33:31 2007 +0100 Tim Janik
165
166         tests/Makefile.am: execute test programs with gtester, add test: to check:
167
168 Thu Nov 8 12:18:51 2007 +0100 Tim Janik
169
170         Fixed PLT symbol exports for gtestframework.h.
171
172         * glib/glib.symbols: added all exported gtestframework.h symbols.
173
174         * glib/gtestframework.c: include galias.h, galiasdef.c, define __G_TESTFRAMEWORK_C__.
175
176 Thu Nov 8 11:31:12 2007 +0100 Tim Janik
177
178         glib/gtester.c: fixed debugging flag.
179
180 Wed Nov 7 17:56:26 2007 +0100 Tim Janik
181
182         fixed bogus unistd.h include.
183
184 Wed Nov 7 17:53:30 2007 +0100 Tim Janik
185
186         Implemented test log IPC.
187
188         * gtester.c: read and decode log messages from test binary child processes.
189         fixed GIOChannel and child watch handling to process all messages and avoid
190         hangs. pass --verbose and --quiet on to children, default to --quiet.
191
192         * gtestframework.h: export g_test_log_type_name().
193
194         * gtestframework.c: send test log to --GTestLogFD=<fd> if given, removed
195         bogus -o-option.
196
197 Tue Nov 6 20:07:44 2007 +0100 Tim Janik
198
199         gtester.c: support test case listing through gtester.
200
201 Tue Nov 6 20:01:06 2007 +0100 Tim Janik
202
203         gtestframework.c: fixed testpath matches for automatic root suite.
204
205 Tue Nov 6 19:50:33 2007 +0100 Tim Janik
206
207         gtester.c: adapted to become a rudimentary test binary launcher.
208
209         * gtester.c: increased read buffer size to match common unix pipe buffer size.
210         added argument parsing and usage. changed io handling to capture and replicate
211         stdout. fixed io handlers to be cleaned up when the child process exits (catch
212         G_IO_ERR | G_IO_HUP). we now use pending/iteration instead of a main loop
213         structure, to keep running until the child process exits and all io has been
214         processed. launch the test binaries given on the command line. don't quit when
215         a child couldn't be launched but --keep-going was specified.
216
217 Tue Nov 6 17:11:37 2007 +0100 Tim Janik
218
219         Integrated gtester program into build process.
220
221         * Makefile.am: build and install gtester binary.
222
223         * gtester.c: fixed up coding style and removed hard wired test coded.
224
225 Tue Nov 6 16:12:32 2007 +0100 Sven Herzberg
226
227         glib/gtester.c:Small -Wall fix
228
229 Tue Nov 6 16:05:06 2007 +0100 Sven Herzberg
230
231         glib/gtester.c:Implemented nonblocking reading properly now
232
233 Mon Nov 5 13:53:23 2007 +0100 Sven Herzberg
234
235         glib/gtester.c:Quit the application when the output is parsed completely, not just the process finished
236
237 Mon Nov 5 12:00:16 2007 +0100 Sven Herzberg
238
239         glib/gtester.c:Read the output of the child process
240
241 Mon Nov 5 11:50:59 2007 +0100 Sven Herzberg
242
243         glib/gtester.c:Use g_spawn_async_with_pipes()
244
245 Mon Nov 5 11:50:08 2007 +0100 Sven Herzberg
246
247         glib/gtester.c:Spawn a process async and quit gtester after the child process exited
248
249 Mon Nov 5 11:30:45 2007 +0100 Sven Herzberg
250
251         glib/gtester.c:Added a first revision of gtester
252
253 Tue Nov 6 16:47:06 2007 +0100 Tim Janik
254
255         Implemented test log serialization.
256
257         * glib/gtestframework.h: added g_test_log*() API.
258
259         * glib/gtestframework.c: implement test log serialization.
260
261 Tue Nov 6 14:24:54 2007 +0100 Tim Janik
262
263         Implemented test logging basics.
264
265         * glib/gtestframework.c: added --debug-log and --verbose, implemented
266         test information logging.
267
268         * testing.c: test g_test_maximized_result() and g_test_minimized_result().
269
270 Tue Nov 6 11:52:14 2007 +0100 Tim Janik
271
272         Implemented g_test_timer*().
273
274         * gtestframework.c: implemented g_test_timer*().
275
276         * tests/testing.c: added a g_test_timer*() test.
277
278 Mon Nov 5 18:28:24 2007 +0100 Tim Janik
279
280         Implemented support for testpaths.
281
282         * gtestframework.c: implemented g_test_add_vtable() and g_test_add_func().
283
284         * tests/testing.c: use g_test_add() and g_test_add_func() to majorly simplify main().
285
286 Mon Nov 5 15:56:42 2007 +0100 Tim Janik
287
288         testing.c: added tests for the g_test_rand*() API.
289
290 Mon Nov 5 15:55:38 2007 +0100 Tim Janik
291
292         Implemented g_test_rand*().
293
294         * gtestframework.h: fixed g_assert_cmp*() to evaluate arguments only once.
295         added g_assert_cmpuint(). completed g_test_rand*() to cover bits, ints,
296         doubles and ranges.
297
298         * gtestframework.c: fixed "--seed" option and implemented g_test_rand*().
299
300 Mon Nov 5 15:51:43 2007 +0100 Tim Janik
301
302         testing.c: added tests for g_assert_cmphex() and forked test traps.
303
304 Mon Nov 5 15:10:18 2007 +0100 Tim Janik
305
306         Implemented g_test_trap_fork() API.
307
308         * gtestframework.h: added g_assert_cmphex(). reworked g_test_trap*() API.
309
310         * gtestframework.c: implemented g_test_trap_fork() API.
311
312 Thu Nov 1 15:05:07 2007 +0100 Tim Janik
313
314         * glib/gtestframework.c:
315
316         that match a given test path.
317         (g_test_run_suite): run suite only if it matches the existing test paths.
318
319         * glib/tests/testing.c: minor rename.
320
321 Thu Nov 1 13:45:55 2007 +0100 Tim Janik
322
323         GTest framework started.
324
325         * glib/gtestframework.h: testing framework API as proposed on gtk-devel-list.
326         includes elaborate assertions, performance report functions, test traps,
327         test timer, test random numbers, teardoiwn garbage collection functions
328         and general test case / test suite management APIs.
329
330         * glib/gtestframework.c: first test framework implementation. already covers
331         some test suite management APIs and assertion message implementations.
332
333         * glib/tests/testing.c: test program for the testing framework.
334
335         * glib/tests/Makefile.am: complie testing.c as test. run all tests as part of
336         make test:.
337
338 Wed Oct 31 15:42:48 2007 +0100 Tim Janik
339
340         glib/Makefile.am: build tests/ subdir after building libglib.
341
342 Tue Oct 30 16:17:32 2007 +0100 Tim Janik
343
344         Fixed up internal 'g_test*' names.
345
346         * refcount/signals.c:
347         * refcount/objects.c:
348         * refcount/objects2.c:
349         * refcount/closures.c:
350         * refcount/properties.c:
351         * refcount/properties2.c: changed namespace prefix from g_test_* to my_test_*
352         to not clash with newly introduced g_test* API in glib.
353
354 Tue Oct 30 14:41:26 2007 +0100 Tim Janik
355
356         Added gtestframework.[hc] and glib/tests/.
357
358 2007-11-20  Sven Neumann  <sven@gimp.org>
359
360         * glib/gerror.c (g_error_add_prefix): use g_strconcat() instead of
361         g_strjoin() to concatenate two strings.
362
363 2007-11-19  Marco Barisione  <marco@barisione.org>
364
365         * glib/gregex.c: When the compilation of a pattern fails in the error
366         message use the character offset and not the byte offset.
367
368         * glib/gregex.c: Pass an unsigned long instead of an int to
369         pcre_fullinfo() to avoid problems on 64-bit systems (#498113, Kouhei
370         Sutou)
371
372 2007-11-19 10:30:33  Tim Janik  <timj@imendio.com>
373
374         * configure.in: updated version number to 2.15.0 for development.
375
376 2007-11-18  Matthias Clasen  <mclasen@redhat.com>
377
378         * glib/gbase64.c: Documentation improvements.  (#496518,
379         Stefan Schulze Frielinghaus)
380
381 2007-11-18  Matthias Clasen  <mclasen@redhat.com>
382
383         * configure.in: Check whether assembler supports numerical local
384         labels.  
385
386         * glib/gatomic.c: Fix powerpc implementation of atomic ops for 
387         platforms where the assembler doesn't support numerical local
388         labels.  (#445362)
389
390 2007-11-15  Ryan Lortie  <desrt@desrt.ca>
391
392         * docs/reference/glib/tmpl/markup.sgml:
393         * glib/gmarkup.h:
394         * glib/gmarkup.c: new flag G_MARKUP_PREFIX_ERROR_POSITION to cause the
395         parser to prepend location information (ie: "Error on line %d, char
396         %d:") to errors generated by the GMarkupParser callbacks.
397
398         Closes #496046.
399
400 2007-11-15  Ryan Lortie  <desrt@desrt.ca>
401
402         * docs/reference/glib/glib-sections.txt:
403         * glib/glib.symbols:
404         * glib/gerror.h:
405         * glib/gerror.c: new functions g_prefix_error and
406         g_propagate_prefixed_error.
407
408 2007-11-13  Cody Russell  <bratsche@gnome.org>
409
410         * docs/reference/gobject/gobject-docs.sgml:
411         * docs/reference/gobject/tut_gsignal.xml:
412         * docs/reference/gobject/tut_gtype.xml:
413         * docs/reference/gobject/tut_intro.xml:
414         * docs/reference/gobject/tut_tools.xml:
415         * docs/reference/gobject/tut_howto.xml:
416         * docs/reference/gobject/tut_gobject.xml: Documentation fixes.
417         Recommend macro type names such as NAUTILUS_TYPE_WINDOW (not
418         NAUTILUS_WINDOW_TYPE).  Fixed text which erroneously stated that 
419         superclass initializers don't run when an object is 
420         instantiated.  Fixed numerous spelling mistakes.  Minor grammar 
421         edits. (#490637, Adam Dingle)
422
423 2007-11-09  Matthias Clasen <mclasen@redhat.com>
424
425         * glib/gkeyfile.c: Coding style cleanups and doc 
426         improvements.  (#491979, #491982, Areg Beketovski)
427
428 2007-11-09  Matthias Clasen <mclasen@redhat.com>
429
430         * glib/giochannel.c: Coding style cleanups and doc 
431         improvements.  (#491975, Areg Beketovski)
432
433 2007-11-09  Matthias Clasen <mclasen@redhat.com>
434
435         * glib/gmain.c (g_main_context_iteration): Improve the
436         docs.  (#491974, Areg Beketovski)
437
438 2007-11-09  Matthias Clasen <mclasen@redhat.com>
439
440         * glib/gdate.c: Coding style fixes.
441
442 2007-11-09  Matthias Clasen <mclasen@redhat.com>
443
444         * configure.in: Add AM_PROG_CC_C_O.
445
446         * Makefile.am: Remove the install-exec-local hook and use
447         configexecincludedir_DATA instead, in an attempt to avoid
448         automake 1.9 <> 1.10 incompatibilities.
449
450         * glib/Makefile.am: Rename MIRRORING_TAB_SOURCES, since
451         automake 1.10 complains.
452
453 2007-11-09  Matthias Clasen <mclasen@redhat.com>
454
455         * glib/gspawn.c (g_spawn_sync): Improve the docs.  (#491968,
456         Areg Beketovski)
457
458 2007-11-08  Matthias Clasen <mclasen@redhat.com>
459
460         * glib/gmain.c (g_main_context_release): 
461         (g_main_context_acquire):
462         (g_main_context_new): Fix the doc wording.  (#491957, 
463         #491965, #491966, Areg Beketovski)
464
465 2007-11-08  Matthias Clasen <mclasen@redhat.com>
466
467         * glib/gutils.c (g_set_application_name): Add a missing
468         since tag.  (#464259, Mark Doliner)
469
470 2007-11-08  Matthias Clasen <mclasen@redhat.com>
471
472         * glib/goption.c (g_option_context_new): Improve the docs.
473         (#436293, Vincent Untz)
474
475 2007-11-08  Matthias Clasen <mclasen@redhat.com>
476
477         * glib/gmain.c (g_main_loop_quit): Expand the docs 
478         a bit.  (#317775, Søren Sandmann)
479
480 2007-11-08  Matthias Clasen <mclasen@redhat.com>
481         
482         * autogen.sh: Accept automake 1.10, too
483
484         * mkinstalldirs: Temporarily add this script, to fix building
485         from svn.
486
487         * Makefile.am: Use MKDIRS_P instead of mkinstalldirs, add
488         ChangeLog.pre-2-14 and mkinstalldirs to EXTRA_DIST.
489
490 2007-11-08  Matthias Clasen <mclasen@redhat.com>
491
492         * glib/gmarkup.h: Include gslist.h. Pointed out by Michael Natterer.
493
494 2007-11-08  Matthias Clasen <mclasen@redhat.com>
495
496         * glib/gconvert.c (g_convert_with_iconv): Try harder to reset
497         shift state with AIX iconv().  (#467537)
498
499 2007-11-08  Matthias Clasen <mclasen@redhat.com>
500
501         * configure.in:
502         * m4macros/glib-2.0.m4: Require pkg-config 0.16 in configure
503         and in AM_PATH_GLIB_2_0 to be consistent with the use of
504         PKG_PROG_PKG_CONFIG which was introduced in 0.16.  (#418778,
505         Loïc Minier)
506
507 2007-11-08  Matthias Clasen <mclasen@redhat.com>
508
509         * glib/gstrfuncs.c (g_parse_long_long): Don't leave
510         out parameters uninitialized.  (#490061, Benjamin Otte)
511
512 2007-11-07  Matthias Clasen <mclasen@redhat.com>
513
514         * glib/gmain.c (g_main_context_unref): Don't leak the
515         condvar.  (#479724, Areg Beketovski)
516
517 2007-11-07  Matthias Clasen <mclasen@redhat.com>
518
519         * glib/glib.symbols:
520         * glib/gmarkup.[hc] (g_markup_parse_context_get_element_stack): 
521         New function, to get the stack of open elements.  (#452887,
522         Ryan Lortie)
523
524 2007-11-07  Matthias Clasen <mclasen@redhat.com>
525
526         * glib/gkeyfile.[hc]: Make some functions that take
527         a GError return boolean instead of void.  (#375651, Matt Barnes)
528
529 2007-11-07  Matthias Clasen <mclasen@redhat.com>
530         
531         * autogen.sh: Use automake 1.9
532
533         * acinclude.m4:
534         * configure.in: Move some inter-*.m4 includes from
535         configure.in to acinclude.m4 to avoid warnings when
536         using automake 1.9.  (#449937)
537
538 2007-11-07  Matthias Clasen <mclasen@redhat.com>
539
540         === Branch for 2.14 ===