summaryrefslogtreecommitdiff
path: root/testglib.c
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>1998-08-16 21:14:11 +0000
committerTim Janik <timj@src.gnome.org>1998-08-16 21:14:11 +0000
commitd5803865b40fbdf2ebec2dafbf9974bd590ebf40 (patch)
treed37c300e9b3aa003c6b0475e6a5c650a63920294 /testglib.c
parentab385b6f0590028ea9479aa26b0e97683e560215 (diff)
downloadglib-d5803865b40fbdf2ebec2dafbf9974bd590ebf40.tar.gz
version bump to 1.1.3, binary age 0, interface age 0.
Sun Aug 16 20:28:27 1998 Tim Janik <timj@gtk.org> * version bump to 1.1.3, binary age 0, interface age 0. * glib.h: be nice to platforms that don't have gint64 and don't issue #warning on every compilation. since glib doesn't require gint64 itself, packages that need gint64 should test for this themselves. * glib.h: * gutils.c: added a new function g_vsnprintf(). Fri Aug 14 16:41:53 1998 Tim Janik <timj@gtk.org> * glib.h: added static inline functions for bit mask tests: g_bit_nth_lsf, g_bit_nth_msf and g_bit_storage. Fri Aug 13 14:23:37 1998 Tim Janik <timj@gtk.org> * glib.h: * gmessages.c: revised the message handling system, which is now based on a new mechanism g_log*. most of the assertment macros got adapted to feature the new g_log() call with an additional specification of the log level in a preprocessor macro G_LOG_DOMAIN. if G_LOG_DOMAIN is undefined upon the includion of glib.h, it'll be defined with a value of (NULL) and thus preserves the original bahaviour for warning and error messages. the message handler setting functions for g_warning, g_error and g_message are only provided for backwards compatibility and might get removed somewhen. * Makefile.am: feature the G_LOG_DOMAIN macro to set the log domain to "GLib" upon compilation. we currently have to add this definition to the DEFS variable. * testglib.c: we need an ugly #undef G_LOG_DOMAIN at the start of this file currently, since automake doesn't support per target _CFLAGS yet. * glib.h: changed some gints to gbooleans, made a few const corrections, removed some superfluous G_STMT_START{}G_STMT_END wrappers, added some in other required places. * gnode.c: (g_node_prepend): (g_node_insert_before): (g_node_insert): (g_node_append_data): (g_node_prepend_data): (g_node_insert_data_before): (g_node_insert_data): (g_node_append): return (node), so these macros/functions can be usefully chained with g_node_new(). [GModule] Fri Aug 14 02:24:39 1998 Tim Janik <timj@gtk.org> * Makefile.am: feature the G_LOG_DOMAIN macro to set the log domain to "GModule" upon compilation. we currently have to add this definition to the DEFS variable. * testgmodule.c: we need an ugly #undef G_LOG_DOMAIN at the start of this file currently, since automake doesn't support per target _CFLAGS yet.
Diffstat (limited to 'testglib.c')
-rw-r--r--testglib.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/testglib.c b/testglib.c
index 2b694cdcb..c196a2c0f 100644
--- a/testglib.c
+++ b/testglib.c
@@ -16,6 +16,7 @@
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
+#undef G_LOG_DOMAIN
#include <stdio.h>
#include <string.h>
@@ -716,8 +717,13 @@ main (int argc,
}
g_byte_array_free (gbarray, TRUE);
-
g_print ("ok\n");
+ g_printerr ("g_log tests:");
+ g_warning ("harmless warning");
+ g_message ("the next warning is a test:");
+ string = NULL;
+ g_print (string);
+
return 0;
}