Make some structs which are used only once non-static.

2007-01-26  Matthias Clasen <mclasen@redhat.com>

        * gmem.c:
        * gslice.c:
        * gmessages.c:
        * gutils.c: Make some structs which are used only once
        non-static.

svn path=/trunk/; revision=5316
This commit is contained in:
Matthias Clasen 2007-01-26 20:59:54 +00:00 committed by Matthias Clasen
parent aa8150599d
commit f90d6d821d
4 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,11 @@
2007-01-26 Matthias Clasen <mclasen@redhat.com>
* gmem.c:
* gslice.c:
* gmessages.c:
* gutils.c: Make some structs which are used only once
non-static.
2007-01-24 Benjamin Otte <otte@gnome.org> 2007-01-24 Benjamin Otte <otte@gnome.org>
* glib/gprintf.c (g_sprintf): Clarify the documentation * glib/gprintf.c (g_sprintf): Clarify the documentation

View File

@ -689,7 +689,7 @@ g_mem_init_nomessage (void)
{ {
gchar buffer[1024]; gchar buffer[1024];
const gchar *val; const gchar *val;
static const GDebugKey keys[] = { const GDebugKey keys[] = {
{ "gc-friendly", 1 }, { "gc-friendly", 1 },
}; };
gint flags; gint flags;

View File

@ -144,7 +144,7 @@ g_messages_prefixed_init (void)
if (val) if (val)
{ {
static const GDebugKey keys[] = { const GDebugKey keys[] = {
{ "error", G_LOG_LEVEL_ERROR }, { "error", G_LOG_LEVEL_ERROR },
{ "critical", G_LOG_LEVEL_CRITICAL }, { "critical", G_LOG_LEVEL_CRITICAL },
{ "warning", G_LOG_LEVEL_WARNING }, { "warning", G_LOG_LEVEL_WARNING },
@ -1062,7 +1062,7 @@ _g_debug_init (void)
val = g_getenv ("G_DEBUG"); val = g_getenv ("G_DEBUG");
if (val != NULL) if (val != NULL)
{ {
static const GDebugKey keys[] = { const GDebugKey keys[] = {
{"fatal_warnings", G_DEBUG_FATAL_WARNINGS}, {"fatal_warnings", G_DEBUG_FATAL_WARNINGS},
{"fatal_criticals", G_DEBUG_FATAL_CRITICALS} {"fatal_criticals", G_DEBUG_FATAL_CRITICALS}
}; };

View File

@ -277,7 +277,7 @@ slice_config_init (SliceConfig *config)
/* don't use g_malloc/g_message here */ /* don't use g_malloc/g_message here */
gchar buffer[1024]; gchar buffer[1024];
const gchar *val = _g_getenv_nomalloc ("G_SLICE", buffer); const gchar *val = _g_getenv_nomalloc ("G_SLICE", buffer);
static const GDebugKey keys[] = { const GDebugKey keys[] = {
{ "always-malloc", 1 << 0 }, { "always-malloc", 1 << 0 },
{ "debug-blocks", 1 << 1 }, { "debug-blocks", 1 << 1 },
}; };