Separate out node type as an enumeration.

This commit is contained in:
2024-12-19 08:48:44 +00:00
parent b03ef6564a
commit 2c1c89c048

View File

@@ -3,10 +3,7 @@
#include "./lib.h" #include "./lib.h"
typedef struct typedef enum
{
size_t col, row;
enum
{ {
NEXT = 0, NEXT = 0,
PREV, PREV,
@@ -16,7 +13,12 @@ typedef struct
READ, READ,
LIN, LIN,
LOUT LOUT
} type; } node_type_t;
typedef struct
{
size_t col, row;
node_type_t type;
int loop_ref; int loop_ref;
} node_t; } node_t;