version 1.15, 2019/04/09 15:23:51 |
version 1.17, 2019/04/12 04:39:24 |
|
|
struct pnode { |
struct pnode { |
enum nodeid node; /* Node type. */ |
enum nodeid node; /* Node type. */ |
char *b; /* String value. */ |
char *b; /* String value. */ |
char *real; /* Storage for "b". */ |
|
size_t bsz; /* strlen(b) */ |
|
int spc; /* Whitespace before this node. */ |
int spc; /* Whitespace before this node. */ |
struct pnode *parent; /* Parent node or NULL. */ |
struct pnode *parent; /* Parent node or NULL. */ |
struct pnodeq childq; /* Queue of children. */ |
struct pnodeq childq; /* Queue of children. */ |
|
|
|
|
enum attrkey attrkey_parse(const char *); |
enum attrkey attrkey_parse(const char *); |
enum attrval attrval_parse(const char *); |
enum attrval attrval_parse(const char *); |
|
struct pnode *pnode_alloc(struct pnode *); |
void pnode_unlink(struct pnode *); |
void pnode_unlink(struct pnode *); |
void pnode_unlinksub(struct pnode *); |
void pnode_unlinksub(struct pnode *); |
enum attrval pnode_getattr(struct pnode *, enum attrkey); |
enum attrval pnode_getattr(struct pnode *, enum attrkey); |