Lines Matching refs:maxatts
1669 int maxatts; in xmlCtxtGrowAttrs() local
1672 maxatts = 55; /* allow for 10 attrs by default */ in xmlCtxtGrowAttrs()
1674 xmlMalloc(maxatts * sizeof(xmlChar *)); in xmlCtxtGrowAttrs()
1677 attallocs = (int *) xmlMalloc((maxatts / 5) * sizeof(int)); in xmlCtxtGrowAttrs()
1680 ctxt->maxatts = maxatts; in xmlCtxtGrowAttrs()
1681 } else if (nr + 5 > ctxt->maxatts) { in xmlCtxtGrowAttrs()
1682 maxatts = (nr + 5) * 2; in xmlCtxtGrowAttrs()
1684 maxatts * sizeof(const xmlChar *)); in xmlCtxtGrowAttrs()
1688 (maxatts / 5) * sizeof(int)); in xmlCtxtGrowAttrs()
1691 ctxt->maxatts = maxatts; in xmlCtxtGrowAttrs()
1693 return(ctxt->maxatts); in xmlCtxtGrowAttrs()
8443 int maxatts = ctxt->maxatts; in xmlParseStartTag() local
8488 maxatts = 22; /* allow for 10 attrs by default */ in xmlParseStartTag()
8490 xmlMalloc(maxatts * sizeof(xmlChar *)); in xmlParseStartTag()
8498 ctxt->maxatts = maxatts; in xmlParseStartTag()
8499 } else if (nbatts + 4 > maxatts) { in xmlParseStartTag()
8502 maxatts *= 2; in xmlParseStartTag()
8504 maxatts * sizeof(const xmlChar *)); in xmlParseStartTag()
8513 ctxt->maxatts = maxatts; in xmlParseStartTag()
9186 int maxatts = ctxt->maxatts; in xmlParseStartTag2() local
9367 if ((atts == NULL) || (nbatts + 5 > maxatts)) { in xmlParseStartTag2()
9371 maxatts = ctxt->maxatts; in xmlParseStartTag2()
9498 if ((atts == NULL) || (nbatts + 5 > maxatts)) { in xmlParseStartTag2()
9502 maxatts = ctxt->maxatts; in xmlParseStartTag2()