Lines Matching defs:tmpl
1545 struct template *tmpl;
1562 for (tmpl = templates; tmpl != NULL; tmpl = (prev = tmpl)->next)
1563 if (!strcmp (buf, tmpl->name))
1565 if (tmpl == NULL)
1568 prev->next = tmpl->next;
1570 templates = tmpl->next;
1578 tmpl = xmalloc (sizeof (*tmpl));
1579 tmpl->name = xstrdup (buf);
1581 tmpl->params = NULL;
1596 param->next = tmpl->params;
1597 tmpl->params = param;
1600 tmpl->instances = NULL;
1621 for (param = tmpl->params; param; param = param->next)
1633 if (tmpl->instances)
1636 tmpl->instances = inst;
1645 tmpl->next = templates;
1646 templates = tmpl;
1706 const struct template *tmpl;
1715 for ( tmpl = templates; tmpl; tmpl = tmpl->next )
1716 if (!strcmp(ptr1, tmpl->name))
1718 if (!tmpl)
1721 for (inst = tmpl->instances; inst; inst = inst->next)
1733 const char *ident = tmpl->name, *end;
1750 memcpy (++ptr1, tmpl->name, ident - tmpl->name);
1751 ptr1 += ident - tmpl->name;
1761 for (param = tmpl->params, arg = inst->args; param;
1774 tmpl->name, (int)(end - src), src);