Lines Matching defs:label
13 void add_label(struct label **labels, char *label)
15 struct label *new;
17 /* Make sure the label isn't already there */
19 if (streq(new->label, label)) {
26 new->label = label;
31 void delete_labels(struct label **labels)
33 struct label *label;
35 for_each_label(*labels, label)
36 label->deleted = 1;
146 struct label *l;
152 add_label(&old_node->labels, l->label);
173 add_label(&old_prop->labels, l->label);
447 struct property *get_property_by_label(struct node *tree, const char *label,
456 struct label *l;
459 if (streq(l->label, label))
464 prop = get_property_by_label(c, label, node);
473 struct marker *get_marker_label(struct node *tree, const char *label,
486 if (streq(m->ref, label))
491 m = get_marker_label(c, label, node, prop);
538 struct node *get_node_by_label(struct node *tree, const char *label)
541 struct label *l;
543 assert(label && (strlen(label) > 0));
546 if (streq(l->label, label))
550 node = get_node_by_label(child, label);
585 const char *label = NULL, *path = NULL;
593 label = ref;
595 if (label) {
596 const char *slash = strchr(label, '/');
600 buf = xstrndup(label, slash - label);
601 label = buf;
605 target = get_node_by_label(tree, label);
857 struct label *l;
862 /* now add the label in the node */
865 /* check whether the label already exists */
866 p = get_property(an, l->label);
868 fprintf(stderr, "WARNING: label %s already"
869 " exists in /%s", l->label,
875 p = build_property(l->label,
922 /* The format only permits fixups for references to label, not