diff options
author | Tim Janik <timj@gtk.org> | 1999-07-24 18:50:58 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1999-07-24 18:50:58 +0000 |
commit | 87c7aeb93bd654776f59805a342ad913031034f3 (patch) | |
tree | 4f43e0cefcbe83a51ffe9aeb24f3386f519a071d /gdate.c | |
parent | c8a28b935ca605ece11c65564ad1d3918786dd07 (diff) | |
download | glib-87c7aeb93bd654776f59805a342ad913031034f3.tar.gz |
18:36. incorporated proposed cleanups from gtk-devel-list.
Sat Jul 24 20:11:35 1999 Tim Janik <timj@gtk.org>
* merged GLib 1.3.0 with glib-1.2.3 from Fri Jul 16 22:18:36.
* incorporated proposed cleanups from gtk-devel-list.
* bumped version number to GLib-1.3.1
* glib.h:
* gqueue.c:
* gstring.c:
* glist.c:
removed string tokenisation (we got g_strsplit() and g_strjoin()
already) and readline functions.
s/g_list_delete/g_list_delete_link.
implemented g_slist_delete_link.
removed notion of g_ATEXIT() macro in glib.h, this is an *internal*
macro, g_atexit() is provided for public consumption.
added GTrashStack inline utility functions.
reimplement double eneded queues.
removed GStack implementation, people can use a queue or a (singly)
linked list for this task.
deprecated g_strescape(), we need the SunOS variants here.
* gdate.c: added DEBUG_MSG() macro to wrap old messages.
* *.*: CVS merges.
* upgrade to libtool 1.3.3.
Diffstat (limited to 'gdate.c')
-rw-r--r-- | gdate.c | 37 |
1 files changed, 14 insertions, 23 deletions
@@ -28,6 +28,11 @@ * MT safe */ +#define DEBUG_MSG(x) /* */ +#ifdef G_ENABLE_DEBUG +/* #define DEBUG_MSG(args) g_message args ; */ +#endif + #ifdef HAVE_CONFIG_H #include <config.h> #endif @@ -453,7 +458,7 @@ g_date_fill_parse_tokens (const gchar *str, GDateParseTokens *pt) { gchar num[4][NUM_LEN+1]; gint i; - const gchar *s; + const guchar *s; /* We count 4, but store 3; so we can give an error * if there are 4. @@ -609,23 +614,15 @@ g_date_prepare_to_parse (const gchar *str, GDateParseTokens *pt) } #ifdef G_ENABLE_DEBUG -# if 0 - g_message ("**GDate prepared a new set of locale-specific parse rules."); -# endif + DEBUG_MSG (("**GDate prepared a new set of locale-specific parse rules.")); i = 1; while (i < 13) { -# if 0 - g_message (" %s %s", long_month_names[i], short_month_names[i]); -# endif + DEBUG_MSG ((" %s %s", long_month_names[i], short_month_names[i])); ++i; } if (using_twodigit_years) - { -# if 0 - g_message ("**Using twodigit years with cutoff year: %u", twodigit_start_year); -# endif - } + DEBUG_MSG (("**Using twodigit years with cutoff year: %u", twodigit_start_year)); { gchar *strings[3]; i = 0; @@ -648,10 +645,8 @@ g_date_prepare_to_parse (const gchar *str, GDateParseTokens *pt) } ++i; } -# if 0 - g_message ("**Order: %s, %s, %s", strings[0], strings[1], strings[2]); - g_message ("**Sample date in this locale: `%s'", buf); -# endif + DEBUG_MSG (("**Order: %s, %s, %s", strings[0], strings[1], strings[2])); + DEBUG_MSG (("**Sample date in this locale: `%s'", buf)); } #endif } @@ -675,12 +670,8 @@ g_date_set_parse (GDate *d, g_date_prepare_to_parse (str, &pt); -#ifdef G_ENABLE_DEBUG -# if 0 - g_message ("Found %d ints, `%d' `%d' `%d' and written out month %d", - pt.num_ints, pt.n[0], pt.n[1], pt.n[2], pt.month); -# endif -#endif + DEBUG_MSG (("Found %d ints, `%d' `%d' `%d' and written out month %d", + pt.num_ints, pt.n[0], pt.n[1], pt.n[2], pt.month)); if (pt.num_ints == 4) @@ -801,7 +792,7 @@ g_date_set_parse (GDate *d, } #ifdef G_ENABLE_DEBUG else - g_message ("Rejected DMY %u %u %u", day, m, y); + DEBUG_MSG (("Rejected DMY %u %u %u", day, m, y)); #endif G_UNLOCK (g_date_global); } |