vte r2219 - in trunk: . src
- From: behdad svn gnome org
- To: svn-commits-list gnome org
- Subject: vte r2219 - in trunk: . src
- Date: Sat, 29 Nov 2008 00:21:56 +0000 (UTC)
Author: behdad
Date: Sat Nov 29 00:21:56 2008
New Revision: 2219
URL: http://svn.gnome.org/viewvc/vte?rev=2219&view=rev
Log:
2008-11-28 Behdad Esfahbod <behdad gnome org>
* src/debug.c (_vte_debug_init):
* src/debug.h:
Make _vte_debug_on() inline.
Modified:
trunk/ChangeLog
trunk/src/debug.c
trunk/src/debug.h
Modified: trunk/src/debug.c
==============================================================================
--- trunk/src/debug.c (original)
+++ trunk/src/debug.c Sat Nov 29 00:21:56 2008
@@ -21,7 +21,7 @@
#include <glib.h>
#include "debug.h"
-static VteDebugFlags _vte_debug_flags = 0;
+VteDebugFlags _vte_debug_flags;
void
_vte_debug_init(void)
@@ -55,9 +55,3 @@
_vte_debug_print(0xFFFFFFFF, "VTE debug flags = %x\n", _vte_debug_flags);
#endif /* VTE_DEBUG */
}
-
-gboolean
-_vte_debug_on(VteDebugFlags flags)
-{
- return (_vte_debug_flags & flags) == flags;
-}
Modified: trunk/src/debug.h
==============================================================================
--- trunk/src/debug.h (original)
+++ trunk/src/debug.h Sat Nov 29 00:21:56 2008
@@ -50,7 +50,15 @@
} VteDebugFlags;
void _vte_debug_init(void);
-gboolean _vte_debug_on(VteDebugFlags flags) G_GNUC_CONST;
+
+extern VteDebugFlags _vte_debug_flags;
+static inline gboolean _vte_debug_on(VteDebugFlags flags) G_GNUC_CONST G_GNUC_UNUSED;
+
+static inline gboolean
+_vte_debug_on(VteDebugFlags flags)
+{
+ return (_vte_debug_flags & flags) == flags;
+}
#ifdef VTE_DEBUG
#define _VTE_DEBUG_IF(flags) if (G_UNLIKELY (_vte_debug_on (flags)))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]