version 1.32, 2019/04/21 14:48:11 |
version 1.33, 2019/04/24 18:38:02 |
|
|
struct pnode { |
struct pnode { |
enum nodeid node; /* Node type. */ |
enum nodeid node; /* Node type. */ |
char *b; /* String value. */ |
char *b; /* String value. */ |
int spc; /* Whitespace before this node. */ |
|
struct pnode *parent; /* Parent node or NULL. */ |
struct pnode *parent; /* Parent node or NULL. */ |
|
int flags; |
|
#define NFLAG_LINE (1 << 0) /* New line before this node. */ |
|
#define NFLAG_SPC (1 << 1) /* Whitespace before this node. */ |
struct pnodeq childq; /* Queue of children. */ |
struct pnodeq childq; /* Queue of children. */ |
struct pattrq attrq; /* Attributes of the node. */ |
struct pattrq attrq; /* Attributes of the node. */ |
TAILQ_ENTRY(pnode) child; |
TAILQ_ENTRY(pnode) child; |