Lines Matching defs:tmpl
1558 struct template *tmpl;
1575 for (tmpl = templates; tmpl != NULL; tmpl = (prev = tmpl)->next)
1576 if (!strcmp (buf, tmpl->name))
1578 if (tmpl == NULL)
1581 prev->next = tmpl->next;
1583 templates = tmpl->next;
1599 tmpl = xmalloc (sizeof (*tmpl));
1600 tmpl->name = xstrdup (buf);
1602 tmpl->params = NULL;
1617 param->next = tmpl->params;
1618 tmpl->params = param;
1621 tmpl->instances = NULL;
1642 for (param = tmpl->params; param; param = param->next)
1654 if (tmpl->instances)
1657 tmpl->instances = inst;
1666 tmpl->next = templates;
1667 templates = tmpl;
1729 const struct template *tmpl;
1738 for ( tmpl = templates; tmpl; tmpl = tmpl->next )
1739 if (!strcmp(ptr1, tmpl->name))
1741 if (!tmpl)
1744 for (inst = tmpl->instances; inst; inst = inst->next)
1756 const char *ident = tmpl->name, *end;
1773 memcpy (++ptr1, tmpl->name, ident - tmpl->name);
1774 ptr1 += ident - tmpl->name;
1784 for (param = tmpl->params, arg = inst->args; param;
1797 tmpl->name, (int)(end - src), src);