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"
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;