declare gboolean vtable_set static.

2001-07-31  Sven Neumann  <sven@gimp.org>

	* glib/gmem.c: declare gboolean vtable_set static.
This commit is contained in:
Sven Neumann 2001-07-31 08:01:04 +00:00 committed by Sven Neumann
parent ee998b3538
commit 8800b2542b
9 changed files with 34 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2001-07-31 Sven Neumann <sven@gimp.org>
* glib/gmem.c: declare gboolean vtable_set static.
2001-07-30 Ron Steinke <rsteinke@w-link.net> 2001-07-30 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.c docs/reference/glib/glib-sections.txt * glib/giochannel.c docs/reference/glib/glib-sections.txt

View File

@ -1,3 +1,7 @@
2001-07-31 Sven Neumann <sven@gimp.org>
* glib/gmem.c: declare gboolean vtable_set static.
2001-07-30 Ron Steinke <rsteinke@w-link.net> 2001-07-30 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.c docs/reference/glib/glib-sections.txt * glib/giochannel.c docs/reference/glib/glib-sections.txt

View File

@ -1,3 +1,7 @@
2001-07-31 Sven Neumann <sven@gimp.org>
* glib/gmem.c: declare gboolean vtable_set static.
2001-07-30 Ron Steinke <rsteinke@w-link.net> 2001-07-30 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.c docs/reference/glib/glib-sections.txt * glib/giochannel.c docs/reference/glib/glib-sections.txt

View File

@ -1,3 +1,7 @@
2001-07-31 Sven Neumann <sven@gimp.org>
* glib/gmem.c: declare gboolean vtable_set static.
2001-07-30 Ron Steinke <rsteinke@w-link.net> 2001-07-30 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.c docs/reference/glib/glib-sections.txt * glib/giochannel.c docs/reference/glib/glib-sections.txt

View File

@ -1,3 +1,7 @@
2001-07-31 Sven Neumann <sven@gimp.org>
* glib/gmem.c: declare gboolean vtable_set static.
2001-07-30 Ron Steinke <rsteinke@w-link.net> 2001-07-30 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.c docs/reference/glib/glib-sections.txt * glib/giochannel.c docs/reference/glib/glib-sections.txt

View File

@ -1,3 +1,7 @@
2001-07-31 Sven Neumann <sven@gimp.org>
* glib/gmem.c: declare gboolean vtable_set static.
2001-07-30 Ron Steinke <rsteinke@w-link.net> 2001-07-30 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.c docs/reference/glib/glib-sections.txt * glib/giochannel.c docs/reference/glib/glib-sections.txt

View File

@ -1,3 +1,7 @@
2001-07-31 Sven Neumann <sven@gimp.org>
* glib/gmem.c: declare gboolean vtable_set static.
2001-07-30 Ron Steinke <rsteinke@w-link.net> 2001-07-30 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.c docs/reference/glib/glib-sections.txt * glib/giochannel.c docs/reference/glib/glib-sections.txt

View File

@ -1,3 +1,7 @@
2001-07-31 Sven Neumann <sven@gimp.org>
* glib/gmem.c: declare gboolean vtable_set static.
2001-07-30 Ron Steinke <rsteinke@w-link.net> 2001-07-30 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.c docs/reference/glib/glib-sections.txt * glib/giochannel.c docs/reference/glib/glib-sections.txt

View File

@ -224,11 +224,11 @@ fallback_calloc (gsize n_blocks,
void void
g_mem_set_vtable (GMemVTable *vtable) g_mem_set_vtable (GMemVTable *vtable)
{ {
gboolean vtable_set = FALSE; static gboolean vtable_set = FALSE;
if (!vtable_set) if (!vtable_set)
{ {
vtable_set |= TRUE; vtable_set = TRUE;
if (vtable->malloc && vtable->realloc && vtable->free) if (vtable->malloc && vtable->realloc && vtable->free)
{ {
glib_mem_vtable.malloc = vtable->malloc; glib_mem_vtable.malloc = vtable->malloc;