Replace occurrances of G_GNUC_PRETTY_FUNCTION by G_STRFUNC. (#524344,

2008-03-30  Matthias Clasen  <mclasen@redhat.com>

        * glib/gthread.h: Replace occurrances of G_GNUC_PRETTY_FUNCTION
        by G_STRFUNC.  (#524344, Peter, Kjellerstedt)



svn path=/trunk/; revision=6775
This commit is contained in:
Matthias Clasen 2008-03-31 03:39:00 +00:00 committed by Matthias Clasen
parent a4a5f33f47
commit b9cc70aaa8
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2008-03-30 Matthias Clasen <mclasen@redhat.com>
* glib/gthread.h: Replace occurrances of G_GNUC_PRETTY_FUNCTION
by G_STRFUNC. (#524344, Peter, Kjellerstedt)
2008-03-30 Matthias Clasen <mclasen@redhat.com>
* glib/gtestutils.c: Fix a doc typo. (#524742, Hiroyuki Ikezoe)

View File

@ -370,21 +370,21 @@ extern void glib_dummy_decl (void);
# define G_LOCK(name) G_STMT_START{ \
g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, \
"file %s: line %d (%s): locking: %s ", \
__FILE__, __LINE__, G_GNUC_PRETTY_FUNCTION, \
__FILE__, __LINE__, G_STRFUNC, \
#name); \
g_static_mutex_lock (&G_LOCK_NAME (name)); \
}G_STMT_END
# define G_UNLOCK(name) G_STMT_START{ \
g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, \
"file %s: line %d (%s): unlocking: %s ", \
__FILE__, __LINE__, G_GNUC_PRETTY_FUNCTION, \
__FILE__, __LINE__, G_STRFUNC, \
#name); \
g_static_mutex_unlock (&G_LOCK_NAME (name)); \
}G_STMT_END
# define G_TRYLOCK(name) \
(g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, \
"file %s: line %d (%s): try locking: %s ", \
__FILE__, __LINE__, G_GNUC_PRETTY_FUNCTION, \
__FILE__, __LINE__, G_STRFUNC, \
#name), g_static_mutex_trylock (&G_LOCK_NAME (name)))
# else /* !G_DEBUG_LOCKS */
# define G_LOCK(name) g_static_mutex_lock (&G_LOCK_NAME (name))