Used glib macros for no_intrument

Original commit message from CVS:
Used glib macros for no_intrument
This commit is contained in:
Wim Taymans 2002-11-29 18:10:21 +00:00
parent 009e8bb2b4
commit d8712f073b
2 changed files with 6 additions and 5 deletions

View file

@ -488,7 +488,8 @@ cothread_stub (void)
* *
* Returns: the current cothread id * Returns: the current cothread id
*/ */
int cothread_getcurrent (void) __attribute__ ((no_instrument_function)); int cothread_getcurrent (void) G_GNUC_NO_INSTRUMENT;
int int
cothread_getcurrent (void) cothread_getcurrent (void)
{ {

View file

@ -179,7 +179,7 @@ gst_default_debug_handler (gint category, gboolean incore,
const gchar *file, const gchar *function, const gchar *file, const gchar *function,
gint line, const gchar *debug_string, gint line, const gchar *debug_string,
void *element, gchar *string) void *element, gchar *string)
__attribute__ ((no_instrument_function)); G_GNUC_NO_INSTRUMENT;
void void
gst_default_debug_handler (gint category, gboolean incore, gst_default_debug_handler (gint category, gboolean incore,
@ -483,7 +483,7 @@ GHashTable *__gst_function_pointers = NULL;
/* FIXME make this thread specific */ /* FIXME make this thread specific */
/* static GSList *stack_trace = NULL; */ /* static GSList *stack_trace = NULL; */
gchar *_gst_debug_nameof_funcptr (void *ptr) __attribute__ ((no_instrument_function)); gchar *_gst_debug_nameof_funcptr (void *ptr) G_GNUC_NO_INSTRUMENT;
gchar * gchar *
_gst_debug_nameof_funcptr (void *ptr) _gst_debug_nameof_funcptr (void *ptr)
@ -502,7 +502,7 @@ _gst_debug_nameof_funcptr (void *ptr)
#ifdef GST_ENABLE_FUNC_INSTRUMENTATION #ifdef GST_ENABLE_FUNC_INSTRUMENTATION
void __cyg_profile_func_enter(void *this_fn,void *call_site) __attribute__ ((no_instrument_function)); void __cyg_profile_func_enter(void *this_fn,void *call_site) G_GNUC_NO_INSTRUMENT;
void __cyg_profile_func_enter(void *this_fn,void *call_site) void __cyg_profile_func_enter(void *this_fn,void *call_site)
{ {
gchar *name = _gst_debug_nameof_funcptr (this_fn); gchar *name = _gst_debug_nameof_funcptr (this_fn);
@ -515,7 +515,7 @@ void __cyg_profile_func_enter(void *this_fn,void *call_site)
g_free (site); g_free (site);
} }
void __cyg_profile_func_exit(void *this_fn,void *call_site) __attribute__ ((no_instrument_function)); void __cyg_profile_func_exit(void *this_fn,void *call_site) G_GNUC_NO_INSTRUMENT;
void __cyg_profile_func_exit(void *this_fn,void *call_site) void __cyg_profile_func_exit(void *this_fn,void *call_site)
{ {
gchar *name = _gst_debug_nameof_funcptr (this_fn); gchar *name = _gst_debug_nameof_funcptr (this_fn);