diff options
author | David Gibson <dgibson@sneetch.(none)> | 2005-06-16 14:36:37 +1000 |
---|---|---|
committer | David Gibson <dgibson@sneetch.(none)> | 2005-06-16 14:36:37 +1000 |
commit | 4102d840d993e7cce7d5c5aea8ef696dc81236fc (patch) | |
tree | ab70f0a9e968780ed282f1bbd8d7ea1be3db5b6b /dtc.h | |
parent | fc14dad7692d84d5f0f547fd0456b3f98526b6cc (diff) | |
download | dtc-4102d840d993e7cce7d5c5aea8ef696dc81236fc.zip dtc-4102d840d993e7cce7d5c5aea8ef696dc81236fc.tar.gz dtc-4102d840d993e7cce7d5c5aea8ef696dc81236fc.tar.bz2 |
Initial label support. Also switch to glr-parser mode and get rid of
hacks that were necessary without it.
Diffstat (limited to 'dtc.h')
-rw-r--r-- | dtc.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -115,6 +115,8 @@ struct property { struct data val; struct property *next; + + char *label; }; struct node { @@ -130,6 +132,8 @@ struct node { cell_t phandle; int addr_cells, size_cells; + + char *label; }; #define for_each_property(n, p) \ @@ -138,12 +142,12 @@ struct node { #define for_each_child(n, c) \ for ((c) = (n)->children; (c); (c) = (c)->next_sibling) -struct property *build_property(char *name, struct data val); -struct property *build_empty_property(char *name); +struct property *build_property(char *name, struct data val, char *label); +struct property *build_empty_property(char *name, char *label); struct property *chain_property(struct property *first, struct property *list); struct node *build_node(struct property *proplist, struct node *children); -struct node *name_node(struct node *node, char *name); +struct node *name_node(struct node *node, char *name, char *label); struct node *chain_node(struct node *first, struct node *list); void add_property(struct node *node, struct property *prop); |