Home | History | Annotate | Download | only in libxslt

Lines Matching defs:templates

39 #include "templates.h"
1888 xsltTemplatePtr *templates;
1899 templates = xmlMalloc(max * sizeof(xsltTemplatePtr));
1900 if (templates == NULL)
1905 template = style->templates;
1911 templates[nb++] = template;
1920 if ((templates[i]->time <= templates[j]->time) ||
1921 ((templates[i]->time == templates[j]->time) &&
1922 (templates[i]->nbCalls <= templates[j]->nbCalls))) {
1923 template = templates[j];
1924 templates[j] = templates[i];
1925 templates[i] = template;
1936 if (templates[i]->match != NULL) {
1937 if (xmlStrlen(templates[i]->match) > 20)
1938 fprintf(output, "%s\n%26s", templates[i]->match, "");
1940 fprintf(output, "%20s", templates[i]->match);
1944 if (templates[i]->name != NULL) {
1945 if (xmlStrlen(templates[i]->name) > 20)
1946 fprintf(output, "%s\n%46s", templates[i]->name, "");
1948 fprintf(output, "%20s", templates[i]->name);
1952 if (templates[i]->mode != NULL) {
1953 if (xmlStrlen(templates[i]->mode) > 10)
1954 fprintf(output, "%s\n%56s", templates[i]->mode, "");
1956 fprintf(output, "%10s", templates[i]->mode);
1960 fprintf(output, " %6d", templates[i]->nbCalls);
1961 fprintf(output, " %6ld %6ld\n", templates[i]->time,
1962 templates[i]->time / templates[i]->nbCalls);
1963 total += templates[i]->nbCalls;
1964 totalt += templates[i]->time;
1968 xmlFree(templates);
2006 xsltTemplatePtr *templates;
2018 templates =
2020 if (templates == NULL)
2024 * collect all the templates in an array
2028 templ = style->templates;
2034 templates[nb++] = templ;
2046 if ((templates[i]->time <= templates[j]->time) ||
2047 ((templates[i]->time == templates[j]->time) &&
2048 (templates[i]->nbCalls <= templates[j]->nbCalls))) {
2049 templ = templates[j];
2050 templates[j] = templates[i];
2051 templates[i] = templ;
2067 xmlSetProp(child, BAD_CAST "match", BAD_CAST templates[i]->match);
2068 xmlSetProp(child, BAD_CAST "name", BAD_CAST templates[i]->name);
2069 xmlSetProp(child, BAD_CAST "mode", BAD_CAST templates[i]->mode);
2071 sprintf(buf, "%d", templates[i]->nbCalls);
2074 sprintf(buf, "%ld", templates[i]->time);
2077 sprintf(buf, "%ld", templates[i]->time / templates[i]->nbCalls);
2081 xmlFree(templates);