Lines Matching defs:tmpl
1507 struct template *tmpl = xmalloc (sizeof (*tmpl));
1519 tmpl->name = xstrdup (buf);
1521 tmpl->params = NULL;
1536 param->next = tmpl->params;
1537 tmpl->params = param;
1540 tmpl->instances = NULL;
1561 for (param = tmpl->params; param; param = param->next)
1573 if (tmpl->instances)
1576 tmpl->instances = inst;
1585 tmpl->next = templates;
1586 templates = tmpl;
1646 const struct template *tmpl;
1655 for ( tmpl = templates; tmpl; tmpl = tmpl->next )
1656 if (!strcmp(ptr1, tmpl->name))
1658 if (!tmpl)
1661 for (inst = tmpl->instances; inst; inst = inst->next)
1673 const char *ident = tmpl->name, *end;
1690 memcpy (++ptr1, tmpl->name, ident - tmpl->name);
1691 ptr1 += ident - tmpl->name;
1701 for (param = tmpl->params, arg = inst->args; param;
1714 tmpl->name, (int)(end - src), src);