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