glib r6086 - in trunk: . gio glib



Author: timj
Date: 2007-12-10 14:07:42 +0000 (Mon, 10 Dec 2007)
New Revision: 6086
ViewCVS link: http://svn.gnome.org/viewcvs/glib?rev=6086&view=rev

Modified:
   trunk/ChangeLog
   trunk/gio/gasynchelper.c
   trunk/gio/gbufferedinputstream.c
   trunk/gio/gbufferedoutputstream.c
   trunk/gio/gcancellable.c
   trunk/gio/gdatainputstream.c
   trunk/gio/gdummyfile.c
   trunk/gio/gfile.c
   trunk/gio/gfileenumerator.c
   trunk/gio/gfileicon.c
   trunk/gio/gfileinputstream.c
   trunk/gio/gfileoutputstream.c
   trunk/gio/ginputstream.c
   trunk/gio/gloadableicon.c
   trunk/gio/glocaldirectorymonitor.c
   trunk/gio/glocalfileinfo.c
   trunk/gio/glocalfilemonitor.c
   trunk/gio/gmemoryinputstream.c
   trunk/gio/gmemoryoutputstream.c
   trunk/gio/goutputstream.c
   trunk/gio/gunixinputstream.c
   trunk/gio/gunixoutputstream.c
   trunk/gio/gunixvolume.c
   trunk/gio/pltcheck.sh
   trunk/glib/gbookmarkfile.c
   trunk/glib/gkeyfile.c
   trunk/glib/glib.symbols
   trunk/glib/gmessages.c
   trunk/glib/gmessages.h
   trunk/glib/gtestutils.c
   trunk/glib/gtestutils.h
Log:
2007-12-10 15:08:59  Tim Janik  <timj imendio com>

        * let g_warn_if_fail replace g_assert as discussed here:
          http://mail.gnome.org/archives/gtk-devel-list/2007-October/msg00089.html

        * fix bug #502498: Test framework assertion failures should follow
        gcc error format.

        * gmessages.h, gmessages.c: deprecated g_assert_warning() which is
        unused now. removed g_assert*() definitions whcih are provided by 
        gtestutils.h now. added g_warn_if_reached() and g_warn_if_fail()  
        which are recommended as g_assert/g_assert_not_reached replacements
        for non-test programs.
        added g_warn_message() to implement g_warn_*() macros.
        use emacs-next-error friendly formatting for file:line: for warnings.

        * gtestutils.h, gtestutils.c: use emacs-next-error friendly formatting.
        implement g_assert_not_reached() with g_assertion_message() and
        g_assert() in terms of g_assertion_message_expr() so we'll be able to
        provide assertion messages in test logs.

        * gkeyfile.c, gbookmarkfile.c: changed g_assert*() to g_warn_if_fail()
        or g_return_if_fail() where suitable.

        * gio/: changed g_assert to g_warn_if_fail.







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]