[vte] modes: Assign enum values to non-fixed modes first
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] modes: Assign enum values to non-fixed modes first
- Date: Tue, 20 Oct 2020 14:46:22 +0000 (UTC)
commit 0afc1c1b9fa739251c04b54f751c0f9f3f762294
Author: Christian Persch <chpe src gnome org>
Date: Tue Oct 20 16:46:04 2020 +0200
modes: Assign enum values to non-fixed modes first
This allows all settable modes to have values that fit into the storage,
while fixed modes get assigned enum values after all settable modes.
Fixes a regression introduced by commit ce715e7b9859f62fc881c2ddd64cab7e3a2fbc7a.
src/modes.hh | 10 ++++++++++
1 file changed, 10 insertions(+)
---
diff --git a/src/modes.hh b/src/modes.hh
index ce480143..398155de 100644
--- a/src/modes.hh
+++ b/src/modes.hh
@@ -129,6 +129,11 @@ public:
eALWAYS_RESET = -1,
#define MODE(name,param) e##name,
+#define MODE_FIXED(name,param,value)
+#include "modes-ecma.hh"
+#undef MODE
+#undef MODE_FIXED
+#define MODE(name,param)
#define MODE_FIXED(name,param,value) e##name,
#include "modes-ecma.hh"
#undef MODE
@@ -183,6 +188,11 @@ public:
eALWAYS_RESET = -1,
#define MODE(name,param) e##name,
+#define MODE_FIXED(name,param,value)
+#include "modes-private.hh"
+#undef MODE
+#undef MODE_FIXED
+#define MODE(name,param)
#define MODE_FIXED(name,param,value) e##name,
#include "modes-private.hh"
#undef MODE
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]