Separate out node type as an enumeration.
This commit is contained in:
24
parser.h
24
parser.h
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user