summaryrefslogtreecommitdiff
path: root/includes/compiler/Switch.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2022-12-29 12:32:55 +0000
committerAsh Wolf <ninji@wuffs.org>2022-12-29 12:32:55 +0000
commitfcfbafff31869ed808bff0639532db1828660e92 (patch)
tree7425b346b031c4cb47a06250b3f6f950374d44ae /includes/compiler/Switch.h
parentbc1321735c15104ffad195e1509cab5f3a044260 (diff)
downloadMWCC-fcfbafff31869ed808bff0639532db1828660e92.tar.gz
MWCC-fcfbafff31869ed808bff0639532db1828660e92.zip
dump lots more code
Diffstat (limited to '')
-rw-r--r--includes/compiler/Switch.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/includes/compiler/Switch.h b/includes/compiler/Switch.h
index 4d2c2b3..15e7d51 100644
--- a/includes/compiler/Switch.h
+++ b/includes/compiler/Switch.h
@@ -3,22 +3,23 @@
#include "compiler/common.h"
-typedef struct SwitchCase {
- struct SwitchCase *next;
+struct SwitchCase {
+ SwitchCase *next;
CLabel *label;
CInt64 min;
CInt64 max;
-} SwitchCase;
+};
typedef struct CaseRange {
CInt64 min;
CInt64 range;
PCodeLabel *label;
} CaseRange;
-typedef struct SwitchInfo {
+struct SwitchInfo {
SwitchCase *cases;
CLabel *defaultlabel;
-} SwitchInfo;
+ void *x8;
+};
extern ObjectList *switchtables;