Make some structs which are used only once non-static.
authorMatthias Clasen <mclasen@redhat.com>
Fri, 26 Jan 2007 20:59:54 +0000 (20:59 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 26 Jan 2007 20:59:54 +0000 (20:59 +0000)
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

ChangeLog
glib/gmem.c
glib/gmessages.c
glib/gslice.c

index 87b0b1ac57b504bc9e2c006c9b60d5e0879edc7a..aaf6776f1e311ddfd59895a08deeb56e2db87af6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * glib/gprintf.c (g_sprintf): Clarify the documentation
index 59229dd398eef633ae7a32b6d9a386e6cbe05b1c..640e3ea2d119015995657772bcf77cb76a273163 100644 (file)
@@ -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;
index 31d2e226e7cf16a8f911c017b1c1f9d0ffa36c5b..b0057da0779c36c99ae3f87ec78d7750f44b7e70 100644 (file)
@@ -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}
       };
index c15c54e6ac1896f6321b28e57b33a631e469534c..3b67e5ead86e7f84489e701d3d61d6242199edd8 100644 (file)
@@ -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 },
   };