From 2c1c89c048d61061e6e333c07db1335764e8dbc1 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Thu, 19 Dec 2024 08:48:44 +0000 Subject: Separate out node type as an enumeration. --- parser.h | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'parser.h') 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; -- cgit v1.2.3-13-gbd6f