[vte] debug: Make 'image' debug flag work
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] debug: Make 'image' debug flag work
- Date: Sun, 18 Oct 2020 22:17:08 +0000 (UTC)
commit 5b84ea7ed76c2631f518747c2fb840de5efa4c74
Author: Christian Persch <chpe src gnome org>
Date: Mon Oct 19 00:16:36 2020 +0200
debug: Make 'image' debug flag work
src/debug.cc | 3 ++-
src/debug.h | 66 ++++++++++++++++++++++++++++++------------------------------
2 files changed, 35 insertions(+), 34 deletions(-)
---
diff --git a/src/debug.cc b/src/debug.cc
index 857a40b7..d56aab34 100644
--- a/src/debug.cc
+++ b/src/debug.cc
@@ -61,11 +61,12 @@ _vte_debug_init(void)
{ "bidi", VTE_DEBUG_BIDI },
{ "conversion", VTE_DEBUG_CONVERSION },
{ "exceptions", VTE_DEBUG_EXCEPTIONS },
+ { "image", VTE_DEBUG_IMAGE },
};
_vte_debug_flags = g_parse_debug_string (g_getenv("VTE_DEBUG"),
keys, G_N_ELEMENTS (keys));
- _vte_debug_print(0xFFFFFFFF, "VTE debug flags = %x\n", _vte_debug_flags);
+ _vte_debug_print(0xFFFFFFFFu, "VTE debug flags = %x\n", _vte_debug_flags);
#endif /* VTE_DEBUG */
}
diff --git a/src/debug.h b/src/debug.h
index a9970f5f..4526bba6 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -36,39 +36,39 @@
G_BEGIN_DECLS
-typedef enum {
- VTE_DEBUG_MISC = 1 << 0,
- VTE_DEBUG_PARSER = 1 << 1,
- VTE_DEBUG_IO = 1 << 2,
- VTE_DEBUG_UPDATES = 1 << 3,
- VTE_DEBUG_EVENTS = 1 << 4,
- VTE_DEBUG_SIGNALS = 1 << 5,
- VTE_DEBUG_SELECTION = 1 << 6,
- VTE_DEBUG_SUBSTITUTION = 1 << 7,
- VTE_DEBUG_RING = 1 << 8,
- VTE_DEBUG_PTY = 1 << 9,
- VTE_DEBUG_CURSOR = 1 << 10,
- VTE_DEBUG_KEYBOARD = 1 << 11,
- VTE_DEBUG_LIFECYCLE = 1 << 12,
- VTE_DEBUG_WORK = 1 << 13,
- VTE_DEBUG_CELLS = 1 << 14,
- VTE_DEBUG_TIMEOUT = 1 << 15,
- VTE_DEBUG_DRAW = 1 << 16,
- VTE_DEBUG_ALLY = 1 << 17,
- VTE_DEBUG_ADJ = 1 << 18,
- VTE_DEBUG_PANGOCAIRO = 1 << 19,
- VTE_DEBUG_WIDGET_SIZE = 1 << 20,
- VTE_DEBUG_STYLE = 1 << 21,
- VTE_DEBUG_RESIZE = 1 << 22,
- VTE_DEBUG_REGEX = 1 << 23,
- VTE_DEBUG_HYPERLINK = 1 << 24,
- VTE_DEBUG_MODES = 1 << 25,
- VTE_DEBUG_EMULATION = 1 << 26,
- VTE_DEBUG_RINGVIEW = 1 << 27,
- VTE_DEBUG_BIDI = 1 << 28,
- VTE_DEBUG_CONVERSION = 1 << 29,
- VTE_DEBUG_EXCEPTIONS = 1 << 30,
- VTE_DEBUG_IMAGE = 1 << 31,
+typedef enum : unsigned {
+ VTE_DEBUG_MISC = 1u << 0,
+ VTE_DEBUG_PARSER = 1u << 1,
+ VTE_DEBUG_IO = 1u << 2,
+ VTE_DEBUG_UPDATES = 1u << 3,
+ VTE_DEBUG_EVENTS = 1u << 4,
+ VTE_DEBUG_SIGNALS = 1u << 5,
+ VTE_DEBUG_SELECTION = 1u << 6,
+ VTE_DEBUG_SUBSTITUTION = 1u << 7,
+ VTE_DEBUG_RING = 1u << 8,
+ VTE_DEBUG_PTY = 1u << 9,
+ VTE_DEBUG_CURSOR = 1u << 10,
+ VTE_DEBUG_KEYBOARD = 1u << 11,
+ VTE_DEBUG_LIFECYCLE = 1u << 12,
+ VTE_DEBUG_WORK = 1u << 13,
+ VTE_DEBUG_CELLS = 1u << 14,
+ VTE_DEBUG_TIMEOUT = 1u << 15,
+ VTE_DEBUG_DRAW = 1u << 16,
+ VTE_DEBUG_ALLY = 1u << 17,
+ VTE_DEBUG_ADJ = 1u << 18,
+ VTE_DEBUG_PANGOCAIRO = 1u << 19,
+ VTE_DEBUG_WIDGET_SIZE = 1u << 20,
+ VTE_DEBUG_STYLE = 1u << 21,
+ VTE_DEBUG_RESIZE = 1u << 22,
+ VTE_DEBUG_REGEX = 1u << 23,
+ VTE_DEBUG_HYPERLINK = 1u << 24,
+ VTE_DEBUG_MODES = 1u << 25,
+ VTE_DEBUG_EMULATION = 1u << 26,
+ VTE_DEBUG_RINGVIEW = 1u << 27,
+ VTE_DEBUG_BIDI = 1u << 28,
+ VTE_DEBUG_CONVERSION = 1u << 29,
+ VTE_DEBUG_EXCEPTIONS = 1u << 30,
+ VTE_DEBUG_IMAGE = 1u << 31,
} VteDebugFlags;
void _vte_debug_init(void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]