Fixed another stupid fault of mine: Did s/g_static_/g_private_/g

1999-03-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* gmem.c: Fixed another stupid fault of mine: Did
	s/g_static_/g_private_/g
This commit is contained in:
Sebastian Wilhelmi 1999-03-18 14:06:43 +00:00 committed by Sebastian Wilhelmi
parent 9f18edbb99
commit 849005f98e
10 changed files with 50 additions and 10 deletions

View File

@ -1,3 +1,8 @@
1999-03-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gmem.c: Fixed another stupid fault of mine: Did
s/g_static_/g_private_/g
Wed Mar 17 03:17:42 1999 Tim Janik <timj@gtk.org>
* configure.in bumped versin number to GLib 1.2.1, interface 1,

View File

@ -1,3 +1,8 @@
1999-03-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gmem.c: Fixed another stupid fault of mine: Did
s/g_static_/g_private_/g
Wed Mar 17 03:17:42 1999 Tim Janik <timj@gtk.org>
* configure.in bumped versin number to GLib 1.2.1, interface 1,

View File

@ -1,3 +1,8 @@
1999-03-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gmem.c: Fixed another stupid fault of mine: Did
s/g_static_/g_private_/g
Wed Mar 17 03:17:42 1999 Tim Janik <timj@gtk.org>
* configure.in bumped versin number to GLib 1.2.1, interface 1,

View File

@ -1,3 +1,8 @@
1999-03-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gmem.c: Fixed another stupid fault of mine: Did
s/g_static_/g_private_/g
Wed Mar 17 03:17:42 1999 Tim Janik <timj@gtk.org>
* configure.in bumped versin number to GLib 1.2.1, interface 1,

View File

@ -1,3 +1,8 @@
1999-03-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gmem.c: Fixed another stupid fault of mine: Did
s/g_static_/g_private_/g
Wed Mar 17 03:17:42 1999 Tim Janik <timj@gtk.org>
* configure.in bumped versin number to GLib 1.2.1, interface 1,

View File

@ -1,3 +1,8 @@
1999-03-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gmem.c: Fixed another stupid fault of mine: Did
s/g_static_/g_private_/g
Wed Mar 17 03:17:42 1999 Tim Janik <timj@gtk.org>
* configure.in bumped versin number to GLib 1.2.1, interface 1,

View File

@ -1,3 +1,8 @@
1999-03-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gmem.c: Fixed another stupid fault of mine: Did
s/g_static_/g_private_/g
Wed Mar 17 03:17:42 1999 Tim Janik <timj@gtk.org>
* configure.in bumped versin number to GLib 1.2.1, interface 1,

View File

@ -1,3 +1,8 @@
1999-03-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gmem.c: Fixed another stupid fault of mine: Did
s/g_static_/g_private_/g
Wed Mar 17 03:17:42 1999 Tim Janik <timj@gtk.org>
* configure.in bumped versin number to GLib 1.2.1, interface 1,

View File

@ -60,11 +60,11 @@
#if defined(ENABLE_MEM_PROFILE) && defined(ENABLE_MEM_PROFILE_EXCLUDES_MEM_CHUNKS)
#define ENTER_MEM_CHUNK_ROUTINE() \
g_static_set (allocating_for_mem_chunk, \
g_static_get (allocating_for_mem_chunk) + 1)
g_private_set (allocating_for_mem_chunk, \
g_private_get (allocating_for_mem_chunk) + 1)
#define LEAVE_MEM_CHUNK_ROUTINE() \
g_static_set (allocating_for_mem_chunk, \
g_static_get (allocating_for_mem_chunk) - 1)
g_private_set (allocating_for_mem_chunk, \
g_private_get (allocating_for_mem_chunk) - 1)
#else
#define ENTER_MEM_CHUNK_ROUTINE()
#define LEAVE_MEM_CHUNK_ROUTINE()
@ -144,7 +144,7 @@ static gulong allocated_mem = 0;
static gulong freed_mem = 0;
static GPrivate* allocating_for_mem_chunk = NULL;
#define IS_IN_MEM_CHUNK_ROUTINE() \
GPOINTER_TO_UINT (g_static_get (allocating_for_mem_chunk))
GPOINTER_TO_UINT (g_private_get (allocating_for_mem_chunk))
#endif /* ENABLE_MEM_PROFILE */

10
gmem.c
View File

@ -60,11 +60,11 @@
#if defined(ENABLE_MEM_PROFILE) && defined(ENABLE_MEM_PROFILE_EXCLUDES_MEM_CHUNKS)
#define ENTER_MEM_CHUNK_ROUTINE() \
g_static_set (allocating_for_mem_chunk, \
g_static_get (allocating_for_mem_chunk) + 1)
g_private_set (allocating_for_mem_chunk, \
g_private_get (allocating_for_mem_chunk) + 1)
#define LEAVE_MEM_CHUNK_ROUTINE() \
g_static_set (allocating_for_mem_chunk, \
g_static_get (allocating_for_mem_chunk) - 1)
g_private_set (allocating_for_mem_chunk, \
g_private_get (allocating_for_mem_chunk) - 1)
#else
#define ENTER_MEM_CHUNK_ROUTINE()
#define LEAVE_MEM_CHUNK_ROUTINE()
@ -144,7 +144,7 @@ static gulong allocated_mem = 0;
static gulong freed_mem = 0;
static GPrivate* allocating_for_mem_chunk = NULL;
#define IS_IN_MEM_CHUNK_ROUTINE() \
GPOINTER_TO_UINT (g_static_get (allocating_for_mem_chunk))
GPOINTER_TO_UINT (g_private_get (allocating_for_mem_chunk))
#endif /* ENABLE_MEM_PROFILE */