Lines Matching defs:tmpl
1450 struct template *tmpl;
1467 for (tmpl = templates; tmpl != NULL; tmpl = (prev = tmpl)->next)
1468 if (!strcmp (buf, tmpl->name))
1470 if (tmpl == NULL)
1473 prev->next = tmpl->next;
1475 templates = tmpl->next;
1483 tmpl = xmalloc (sizeof (*tmpl));
1484 tmpl->name = xstrdup (buf);
1486 tmpl->params = NULL;
1501 param->next = tmpl->params;
1502 tmpl->params = param;
1505 tmpl->instances = NULL;
1526 for (param = tmpl->params; param; param = param->next)
1538 if (tmpl->instances)
1541 tmpl->instances = inst;
1550 tmpl->next = templates;
1551 templates = tmpl;
1611 const struct template *tmpl;
1620 for ( tmpl = templates; tmpl; tmpl = tmpl->next )
1621 if (!strcmp(ptr1, tmpl->name))
1623 if (!tmpl)
1626 for (inst = tmpl->instances; inst; inst = inst->next)
1638 const char *ident = tmpl->name, *end;
1655 memcpy (++ptr1, tmpl->name, ident - tmpl->name);
1656 ptr1 += ident - tmpl->name;
1666 for (param = tmpl->params, arg = inst->args; param;
1679 tmpl->name, (int)(end - src), src);