From f2faafacb9460389c2585a2d1a3d93f6a52473d2 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Mon, 16 Apr 2001 15:04:17 +0000 Subject: [PATCH] make GDebugKeys argument const 2001-03-23 Havoc Pennington * gutils.c (g_parse_debug_string): make GDebugKeys argument const --- ChangeLog | 5 +++++ ChangeLog.pre-2-0 | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-12 | 5 +++++ ChangeLog.pre-2-2 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ glib/gutils.c | 6 +++--- glib/gutils.h | 7 ++++--- gutils.c | 6 +++--- gutils.h | 7 ++++--- 12 files changed, 54 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index 80d7f5d3d..78d3113af 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-03-23 Havoc Pennington + + * gutils.c (g_parse_debug_string): make GDebugKeys argument + const + 2001-04-14 Hans Breuer * glib.def : diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 80d7f5d3d..78d3113af 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,8 @@ +2001-03-23 Havoc Pennington + + * gutils.c (g_parse_debug_string): make GDebugKeys argument + const + 2001-04-14 Hans Breuer * glib.def : diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 80d7f5d3d..78d3113af 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2001-03-23 Havoc Pennington + + * gutils.c (g_parse_debug_string): make GDebugKeys argument + const + 2001-04-14 Hans Breuer * glib.def : diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 80d7f5d3d..78d3113af 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,8 @@ +2001-03-23 Havoc Pennington + + * gutils.c (g_parse_debug_string): make GDebugKeys argument + const + 2001-04-14 Hans Breuer * glib.def : diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 80d7f5d3d..78d3113af 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +2001-03-23 Havoc Pennington + + * gutils.c (g_parse_debug_string): make GDebugKeys argument + const + 2001-04-14 Hans Breuer * glib.def : diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 80d7f5d3d..78d3113af 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +2001-03-23 Havoc Pennington + + * gutils.c (g_parse_debug_string): make GDebugKeys argument + const + 2001-04-14 Hans Breuer * glib.def : diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 80d7f5d3d..78d3113af 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +2001-03-23 Havoc Pennington + + * gutils.c (g_parse_debug_string): make GDebugKeys argument + const + 2001-04-14 Hans Breuer * glib.def : diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 80d7f5d3d..78d3113af 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2001-03-23 Havoc Pennington + + * gutils.c (g_parse_debug_string): make GDebugKeys argument + const + 2001-04-14 Hans Breuer * glib.def : diff --git a/glib/gutils.c b/glib/gutils.c index c784a58f1..4b9f69f2e 100644 --- a/glib/gutils.c +++ b/glib/gutils.c @@ -421,9 +421,9 @@ g_vsnprintf (gchar *str, } guint -g_parse_debug_string (const gchar *string, - GDebugKey *keys, - guint nkeys) +g_parse_debug_string (const gchar *string, + const GDebugKey *keys, + guint nkeys) { guint i; guint result = 0; diff --git a/glib/gutils.h b/glib/gutils.h index 2da2048a1..f9a7b5273 100644 --- a/glib/gutils.h +++ b/glib/gutils.h @@ -130,9 +130,10 @@ struct _GDebugKey /* Miscellaneous utility functions */ -guint g_parse_debug_string (const gchar *string, - GDebugKey *keys, - guint nkeys); +guint g_parse_debug_string (const gchar *string, + const GDebugKey *keys, + guint nkeys); + gint g_snprintf (gchar *string, gulong n, gchar const *format, diff --git a/gutils.c b/gutils.c index c784a58f1..4b9f69f2e 100644 --- a/gutils.c +++ b/gutils.c @@ -421,9 +421,9 @@ g_vsnprintf (gchar *str, } guint -g_parse_debug_string (const gchar *string, - GDebugKey *keys, - guint nkeys) +g_parse_debug_string (const gchar *string, + const GDebugKey *keys, + guint nkeys) { guint i; guint result = 0; diff --git a/gutils.h b/gutils.h index 2da2048a1..f9a7b5273 100644 --- a/gutils.h +++ b/gutils.h @@ -130,9 +130,10 @@ struct _GDebugKey /* Miscellaneous utility functions */ -guint g_parse_debug_string (const gchar *string, - GDebugKey *keys, - guint nkeys); +guint g_parse_debug_string (const gchar *string, + const GDebugKey *keys, + guint nkeys); + gint g_snprintf (gchar *string, gulong n, gchar const *format,