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