Lines Matching defs:currmap
662 struct mapping_defn_t *currmap = NULL;
687 currmap = xzalloc(sizeof(struct mapping_defn_t));
690 if (currmap->max_matches == currmap->n_matches) {
691 currmap->max_matches = currmap->max_matches * 2 + 1;
692 currmap->match = xrealloc(currmap->match, sizeof(currmap->match) * currmap->max_matches);
695 currmap->match[currmap->n_matches++] = xstrdup(firstword);
697 currmap->max_mappings = 0;
698 currmap->n_mappings = 0;
699 currmap->mapping = NULL;
700 currmap->script = NULL;
706 *where = currmap;
707 currmap->next = NULL;
832 if (currmap->script != NULL) {
836 currmap->script = xstrdup(next_word(&buf_ptr));
839 if (currmap->max_mappings == currmap->n_mappings) {
840 currmap->max_mappings = currmap->max_mappings * 2 + 1;
841 currmap->mapping = xrealloc(currmap->mapping, sizeof(char *) * currmap->max_mappings);
843 currmap->mapping[currmap->n_mappings] = xstrdup(next_word(&buf_ptr));
844 currmap->n_mappings++;
1219 struct mapping_defn_t *currmap;
1221 for (currmap = defn->mappings; currmap; currmap = currmap->next) {
1223 for (i = 0; i < currmap->n_matches; i++) {
1224 if (fnmatch(currmap->match[i], liface, 0) != 0)
1227 printf("Running mapping script %s on %s\n", currmap->script, liface);
1229 liface = run_mapping(iface, currmap);