aboutsummaryrefslogtreecommitdiff
path: root/parser.h
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-12-19 08:48:44 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-12-19 08:48:44 +0000
commit2c1c89c048d61061e6e333c07db1335764e8dbc1 (patch)
treef370295370c2c45ff17fe3b4d07e8afd4a442c6b /parser.h
parentb03ef6564aacad5a071d38769a74284396827888 (diff)
downloadobf-2c1c89c048d61061e6e333c07db1335764e8dbc1.tar.gz
obf-2c1c89c048d61061e6e333c07db1335764e8dbc1.tar.bz2
obf-2c1c89c048d61061e6e333c07db1335764e8dbc1.zip
Separate out node type as an enumeration.HEADmaster
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/parser.h b/parser.h
index 1b3718e..e78f116 100644
--- a/parser.h
+++ b/parser.h
@@ -3,20 +3,22 @@
#include "./lib.h"
+typedef enum
+{
+ NEXT = 0,
+ PREV,
+ INC,
+ DEC,
+ OUT,
+ READ,
+ LIN,
+ LOUT
+} node_type_t;
+
typedef struct
{
size_t col, row;
- enum
- {
- NEXT = 0,
- PREV,
- INC,
- DEC,
- OUT,
- READ,
- LIN,
- LOUT
- } type;
+ node_type_t type;
int loop_ref;
} node_t;