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,20 +3,22 @@
#include "./lib.h" #include "./lib.h"
typedef enum
{
NEXT = 0,
PREV,
INC,
DEC,
OUT,
READ,
LIN,
LOUT
} node_type_t;
typedef struct typedef struct
{ {
size_t col, row; size_t col, row;
enum node_type_t type;
{
NEXT = 0,
PREV,
INC,
DEC,
OUT,
READ,
LIN,
LOUT
} type;
int loop_ref; int loop_ref;
} node_t; } node_t;