Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Fixed another stupid fault of mine: Did s/g_static_/g_private_/g
Browse files Browse the repository at this point in the history
1999-03-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* gmem.c: Fixed another stupid fault of mine: Did
	s/g_static_/g_private_/g
  • Loading branch information
Sebastian Wilhelmi authored and Sebastian Wilhelmi committed Mar 18, 1999
1 parent 9f18edb commit 849005f
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 10 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
5 changes: 5 additions & 0 deletions ChangeLog.pre-2-0
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
5 changes: 5 additions & 0 deletions ChangeLog.pre-2-10
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
5 changes: 5 additions & 0 deletions ChangeLog.pre-2-12
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
5 changes: 5 additions & 0 deletions ChangeLog.pre-2-2
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
5 changes: 5 additions & 0 deletions ChangeLog.pre-2-4
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
5 changes: 5 additions & 0 deletions ChangeLog.pre-2-6
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
5 changes: 5 additions & 0 deletions ChangeLog.pre-2-8
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
10 changes: 5 additions & 5 deletions glib/gmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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 */


Expand Down
10 changes: 5 additions & 5 deletions gmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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 */


Expand Down

0 comments on commit 849005f

Please sign in to comment.