From f90d6d821d1e62c58655ff6a082b984fcfc9c605 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 26 Jan 2007 20:59:54 +0000 Subject: [PATCH] Make some structs which are used only once non-static. 2007-01-26 Matthias Clasen * gmem.c: * gslice.c: * gmessages.c: * gutils.c: Make some structs which are used only once non-static. svn path=/trunk/; revision=5316 --- ChangeLog | 8 ++++++++ glib/gmem.c | 2 +- glib/gmessages.c | 4 ++-- glib/gslice.c | 2 +- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 87b0b1ac..aaf6776f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-01-26 Matthias Clasen + + * gmem.c: + * gslice.c: + * gmessages.c: + * gutils.c: Make some structs which are used only once + non-static. + 2007-01-24 Benjamin Otte * glib/gprintf.c (g_sprintf): Clarify the documentation diff --git a/glib/gmem.c b/glib/gmem.c index 59229dd3..640e3ea2 100644 --- a/glib/gmem.c +++ b/glib/gmem.c @@ -689,7 +689,7 @@ g_mem_init_nomessage (void) { gchar buffer[1024]; const gchar *val; - static const GDebugKey keys[] = { + const GDebugKey keys[] = { { "gc-friendly", 1 }, }; gint flags; diff --git a/glib/gmessages.c b/glib/gmessages.c index 31d2e226..b0057da0 100644 --- a/glib/gmessages.c +++ b/glib/gmessages.c @@ -144,7 +144,7 @@ g_messages_prefixed_init (void) if (val) { - static const GDebugKey keys[] = { + const GDebugKey keys[] = { { "error", G_LOG_LEVEL_ERROR }, { "critical", G_LOG_LEVEL_CRITICAL }, { "warning", G_LOG_LEVEL_WARNING }, @@ -1062,7 +1062,7 @@ _g_debug_init (void) val = g_getenv ("G_DEBUG"); if (val != NULL) { - static const GDebugKey keys[] = { + const GDebugKey keys[] = { {"fatal_warnings", G_DEBUG_FATAL_WARNINGS}, {"fatal_criticals", G_DEBUG_FATAL_CRITICALS} }; diff --git a/glib/gslice.c b/glib/gslice.c index c15c54e6..3b67e5ea 100644 --- a/glib/gslice.c +++ b/glib/gslice.c @@ -277,7 +277,7 @@ slice_config_init (SliceConfig *config) /* don't use g_malloc/g_message here */ gchar buffer[1024]; const gchar *val = _g_getenv_nomalloc ("G_SLICE", buffer); - static const GDebugKey keys[] = { + const GDebugKey keys[] = { { "always-malloc", 1 << 0 }, { "debug-blocks", 1 << 1 }, }; -- 2.34.1