Lines Matching refs:maxatts
1657 int maxatts; in xmlCtxtGrowAttrs() local
1660 maxatts = 55; /* allow for 10 attrs by default */ in xmlCtxtGrowAttrs()
1662 xmlMalloc(maxatts * sizeof(xmlChar *)); in xmlCtxtGrowAttrs()
1665 attallocs = (int *) xmlMalloc((maxatts / 5) * sizeof(int)); in xmlCtxtGrowAttrs()
1668 ctxt->maxatts = maxatts; in xmlCtxtGrowAttrs()
1669 } else if (nr + 5 > ctxt->maxatts) { in xmlCtxtGrowAttrs()
1670 maxatts = (nr + 5) * 2; in xmlCtxtGrowAttrs()
1672 maxatts * sizeof(const xmlChar *)); in xmlCtxtGrowAttrs()
1676 (maxatts / 5) * sizeof(int)); in xmlCtxtGrowAttrs()
1679 ctxt->maxatts = maxatts; in xmlCtxtGrowAttrs()
1681 return(ctxt->maxatts); in xmlCtxtGrowAttrs()
8605 int maxatts = ctxt->maxatts; in xmlParseStartTag() local
8650 maxatts = 22; /* allow for 10 attrs by default */ in xmlParseStartTag()
8652 xmlMalloc(maxatts * sizeof(xmlChar *)); in xmlParseStartTag()
8660 ctxt->maxatts = maxatts; in xmlParseStartTag()
8661 } else if (nbatts + 4 > maxatts) { in xmlParseStartTag()
8664 maxatts *= 2; in xmlParseStartTag()
8666 maxatts * sizeof(const xmlChar *)); in xmlParseStartTag()
8675 ctxt->maxatts = maxatts; in xmlParseStartTag()
9349 int maxatts = ctxt->maxatts; in xmlParseStartTag2() local
9565 if ((atts == NULL) || (nbatts + 5 > maxatts)) { in xmlParseStartTag2()
9571 maxatts = ctxt->maxatts; in xmlParseStartTag2()
9671 if ((atts == NULL) || (nbatts + 5 > maxatts)) { in xmlParseStartTag2()
9675 maxatts = ctxt->maxatts; in xmlParseStartTag2()