Home | History | Annotate | Download | only in libcutils

Lines Matching refs:node

29     cnode* node = static_cast<cnode*>(calloc(sizeof(cnode), 1));
30 if(node) {
31 node->name = name ? name : "";
32 node->value = value ? value : "";
35 return node;
40 cnode *node, *match = NULL;
43 for(node = root->first_child; node; node = node->next)
44 if(!strcmp(node->name, name))
45 match = node;
52 cnode *node;
54 node = config_node(name, NULL);
57 root->last_child->next = node;
59 root->first_child = node;
61 root->last_child = node;
63 return node;
68 cnode *node;
70 node = config_find(root, name);
71 if(!node)
74 switch(node->value[0]) {
86 cnode *node;
88 node = config_find(root, name);
89 if(!node)
91 return node->value;
96 cnode *node;
98 node = config_find(root, name);
99 if(node)
100 node->value = value;
102 node = _config_create(root, name);
103 node->value = value;
242 static int parse_expr(cstate *cs, cnode *node);
244 static int parse_block(cstate *cs, cnode *node)
249 if(parse_expr(cs, node)) return -1;
263 cnode *node;
266 node = config_find(root, cs->text);
267 if(!node || *node->value)
268 node = _config_create(root, cs->text);
275 node = _config_create(node, cs->text);
279 node->value = cs->text;
283 return parse_block(cs, node);