Fixed enum type recognition and increased sidebar width

Author Mitja Felicijan <mitja.felicijan@gmail.com> 2026-01-16 17:27:00 +0100
Committer Mitja Felicijan <mitja.felicijan@gmail.com> 2026-01-16 17:27:00 +0100
Commit 27a9f7fa9e0355cb050511208b2460837c9ea65e (patch)
-rw-r--r-- README.md 1
-rw-r--r-- tdbg.cpp 3
2 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
...
62
| Struct        | `s`                       |
62
| Struct        | `s`                       |
63
| Class         | `c`                       |
63
| Class         | `c`                       |
64
| Void          | `v`                       |
64
| Void          | `v`                       |
  
65
| Enumeration   | `e`                       |
65
| Default       | First letter of type name |
66
| Default       | First letter of type name |
66
  
67
  
67
> [!NOTE]
68
> [!NOTE]
...
diff --git a/tdbg.cpp b/tdbg.cpp
...
20
const int LOG_WINDOW_HEIGHT = 10;
20
const int LOG_WINDOW_HEIGHT = 10;
21
const int STATUS_WINDOW_HEIGHT = 1;
21
const int STATUS_WINDOW_HEIGHT = 1;
22
const int BREAKPOINTS_WINDOW_HEIGHT = 10;
22
const int BREAKPOINTS_WINDOW_HEIGHT = 10;
23
const int SIDEBAR_WIDTH = 40;
23
const int SIDEBAR_WIDTH = 50;
24
  
24
  
25
// https://unicodeplus.com/U+2593
25
// https://unicodeplus.com/U+2593
26
const uint32_t SCROLLBAR_THUMB = 0x2593; // Dark shade
26
const uint32_t SCROLLBAR_THUMB = 0x2593; // Dark shade
...
149
	TypeClass type_class = type.GetTypeClass();
149
	TypeClass type_class = type.GetTypeClass();
150
	if (type_class & eTypeClassStruct) return 's';
150
	if (type_class & eTypeClassStruct) return 's';
151
	if (type_class & eTypeClassClass) return 'c';
151
	if (type_class & eTypeClassClass) return 'c';
  
152
	if (type_class & eTypeClassEnumeration) return 'e';
152
  
153
  
153
	const char* name = type.GetName();
154
	const char* name = type.GetName();
154
	if (name && *name) return name[0];
155
	if (name && *name) return name[0];
...