Lines Matching refs:maxatts
1698 int maxatts; in xmlCtxtGrowAttrs() local
1701 maxatts = 55; /* allow for 10 attrs by default */ in xmlCtxtGrowAttrs()
1703 xmlMalloc(maxatts * sizeof(xmlChar *)); in xmlCtxtGrowAttrs()
1706 attallocs = (int *) xmlMalloc((maxatts / 5) * sizeof(int)); in xmlCtxtGrowAttrs()
1709 ctxt->maxatts = maxatts; in xmlCtxtGrowAttrs()
1710 } else if (nr + 5 > ctxt->maxatts) { in xmlCtxtGrowAttrs()
1711 maxatts = (nr + 5) * 2; in xmlCtxtGrowAttrs()
1713 maxatts * sizeof(const xmlChar *)); in xmlCtxtGrowAttrs()
1717 (maxatts / 5) * sizeof(int)); in xmlCtxtGrowAttrs()
1720 ctxt->maxatts = maxatts; in xmlCtxtGrowAttrs()
1722 return(ctxt->maxatts); in xmlCtxtGrowAttrs()
8472 int maxatts = ctxt->maxatts; in xmlParseStartTag() local
8517 maxatts = 22; /* allow for 10 attrs by default */ in xmlParseStartTag()
8519 xmlMalloc(maxatts * sizeof(xmlChar *)); in xmlParseStartTag()
8527 ctxt->maxatts = maxatts; in xmlParseStartTag()
8528 } else if (nbatts + 4 > maxatts) { in xmlParseStartTag()
8531 maxatts *= 2; in xmlParseStartTag()
8533 maxatts * sizeof(const xmlChar *)); in xmlParseStartTag()
8542 ctxt->maxatts = maxatts; in xmlParseStartTag()
9215 int maxatts = ctxt->maxatts; in xmlParseStartTag2() local
9396 if ((atts == NULL) || (nbatts + 5 > maxatts)) { in xmlParseStartTag2()
9400 maxatts = ctxt->maxatts; in xmlParseStartTag2()
9527 if ((atts == NULL) || (nbatts + 5 > maxatts)) { in xmlParseStartTag2()
9531 maxatts = ctxt->maxatts; in xmlParseStartTag2()