dtd 669 srclib/apr-util/xml/expat/lib/xmlparse.c if (!dtdInit(&dtd, parser) || !atts || !dataBuf dtd 712 srclib/apr-util/xml/expat/lib/xmlparse.c DTD *oldDtd = &dtd; dtd 791 srclib/apr-util/xml/expat/lib/xmlparse.c if (!dtdCopy(&dtd, oldDtd, parser) || !setContext(parser, context)) { dtd 799 srclib/apr-util/xml/expat/lib/xmlparse.c dtdSwap(&dtd, oldDtd); dtd 802 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.complete = 1; dtd 845 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.complete = 0; dtd 846 srclib/apr-util/xml/expat/lib/xmlparse.c dtdSwap(&dtd, &((Parser *)parentParser)->m_dtd); dtd 849 srclib/apr-util/xml/expat/lib/xmlparse.c dtdDestroy(&dtd, parser); dtd 884 srclib/apr-util/xml/expat/lib/xmlparse.c p = poolCopyString(&dtd.pool, p); dtd 1528 srclib/apr-util/xml/expat/lib/xmlparse.c name = poolStoreString(&dtd.pool, enc, dtd 1533 srclib/apr-util/xml/expat/lib/xmlparse.c entity = (ENTITY *)lookup(&dtd.generalEntities, name, 0); dtd 1534 srclib/apr-util/xml/expat/lib/xmlparse.c poolDiscard(&dtd.pool); dtd 1536 srclib/apr-util/xml/expat/lib/xmlparse.c if (dtd.complete || dtd.standalone) dtd 1898 srclib/apr-util/xml/expat/lib/xmlparse.c elementType = (ELEMENT_TYPE *)lookup(&dtd.elementTypes, tagNamePtr->str,0); dtd 1900 srclib/apr-util/xml/expat/lib/xmlparse.c tagNamePtr->str = poolCopyString(&dtd.pool, tagNamePtr->str); dtd 1903 srclib/apr-util/xml/expat/lib/xmlparse.c elementType = (ELEMENT_TYPE *)lookup(&dtd.elementTypes, tagNamePtr->str, sizeof(ELEMENT_TYPE)); dtd 2035 srclib/apr-util/xml/expat/lib/xmlparse.c id = (ATTRIBUTE_ID *)lookup(&dtd.attributeIds, appAtts[i], 0); dtd 2085 srclib/apr-util/xml/expat/lib/xmlparse.c else if (dtd.defaultPrefix.binding) { dtd 2086 srclib/apr-util/xml/expat/lib/xmlparse.c binding = dtd.defaultPrefix.binding; dtd 2151 srclib/apr-util/xml/expat/lib/xmlparse.c if (*uri == XML_T('\0') && prefix == &dtd.defaultPrefix) dtd 2407 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.standalone = 1; dtd 2638 srclib/apr-util/xml/expat/lib/xmlparse.c declEntity = (ENTITY *)lookup(&dtd.paramEntities, dtd 2649 srclib/apr-util/xml/expat/lib/xmlparse.c XML_Char *tem = poolStoreString(&dtd.pool, dtd 2657 srclib/apr-util/xml/expat/lib/xmlparse.c poolFinish(&dtd.pool); dtd 2666 srclib/apr-util/xml/expat/lib/xmlparse.c if (dtd.complete && hadExternalDoctype) { dtd 2667 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.complete = 0; dtd 2670 srclib/apr-util/xml/expat/lib/xmlparse.c ENTITY *entity = (ENTITY *)lookup(&dtd.paramEntities, dtd 2681 srclib/apr-util/xml/expat/lib/xmlparse.c if (!dtd.complete dtd 2682 srclib/apr-util/xml/expat/lib/xmlparse.c && !dtd.standalone dtd 2755 srclib/apr-util/xml/expat/lib/xmlparse.c if (dtd.complete dtd 2785 srclib/apr-util/xml/expat/lib/xmlparse.c &dtd.pool); dtd 2788 srclib/apr-util/xml/expat/lib/xmlparse.c attVal = poolStart(&dtd.pool); dtd 2789 srclib/apr-util/xml/expat/lib/xmlparse.c poolFinish(&dtd.pool); dtd 2790 srclib/apr-util/xml/expat/lib/xmlparse.c if (dtd.complete dtd 2819 srclib/apr-util/xml/expat/lib/xmlparse.c declEntity->textPtr = poolStart(&dtd.pool); dtd 2820 srclib/apr-util/xml/expat/lib/xmlparse.c declEntity->textLen = poolLength(&dtd.pool); dtd 2821 srclib/apr-util/xml/expat/lib/xmlparse.c poolFinish(&dtd.pool); dtd 2833 srclib/apr-util/xml/expat/lib/xmlparse.c poolDiscard(&dtd.pool); dtd 2845 srclib/apr-util/xml/expat/lib/xmlparse.c if (!dtd.standalone dtd 2857 srclib/apr-util/xml/expat/lib/xmlparse.c declEntity = (ENTITY *)lookup(&dtd.paramEntities, dtd 2868 srclib/apr-util/xml/expat/lib/xmlparse.c declEntity->systemId = poolStoreString(&dtd.pool, enc, dtd 2874 srclib/apr-util/xml/expat/lib/xmlparse.c poolFinish(&dtd.pool); dtd 2891 srclib/apr-util/xml/expat/lib/xmlparse.c declEntity->notation = poolStoreString(&dtd.pool, enc, s, next); dtd 2894 srclib/apr-util/xml/expat/lib/xmlparse.c poolFinish(&dtd.pool); dtd 2923 srclib/apr-util/xml/expat/lib/xmlparse.c name = poolStoreString(&dtd.pool, enc, s, next); dtd 2926 srclib/apr-util/xml/expat/lib/xmlparse.c if (dtd.complete) { dtd 2927 srclib/apr-util/xml/expat/lib/xmlparse.c declEntity = (ENTITY *)lookup(&dtd.generalEntities, name, sizeof(ENTITY)); dtd 2931 srclib/apr-util/xml/expat/lib/xmlparse.c poolDiscard(&dtd.pool); dtd 2935 srclib/apr-util/xml/expat/lib/xmlparse.c poolFinish(&dtd.pool); dtd 2941 srclib/apr-util/xml/expat/lib/xmlparse.c poolDiscard(&dtd.pool); dtd 2948 srclib/apr-util/xml/expat/lib/xmlparse.c if (dtd.complete) { dtd 2949 srclib/apr-util/xml/expat/lib/xmlparse.c const XML_Char *name = poolStoreString(&dtd.pool, enc, s, next); dtd 2952 srclib/apr-util/xml/expat/lib/xmlparse.c declEntity = (ENTITY *)lookup(&dtd.paramEntities, dtd 2957 srclib/apr-util/xml/expat/lib/xmlparse.c poolDiscard(&dtd.pool); dtd 2961 srclib/apr-util/xml/expat/lib/xmlparse.c poolFinish(&dtd.pool); dtd 3050 srclib/apr-util/xml/expat/lib/xmlparse.c if (dtd.scaffIndex) dtd 3051 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.scaffIndex = REALLOC(dtd.scaffIndex, groupSize * sizeof(int)); dtd 3059 srclib/apr-util/xml/expat/lib/xmlparse.c if (dtd.in_eldecl) { dtd 3063 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.scaffIndex[dtd.scaffLevel] = myindex; dtd 3064 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.scaffLevel++; dtd 3065 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.scaffold[myindex].type = XML_CTYPE_SEQ; dtd 3076 srclib/apr-util/xml/expat/lib/xmlparse.c if (dtd.in_eldecl dtd 3078 srclib/apr-util/xml/expat/lib/xmlparse.c && dtd.scaffold[dtd.scaffIndex[dtd.scaffLevel - 1]].type != XML_CTYPE_MIXED dtd 3080 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.scaffold[dtd.scaffIndex[dtd.scaffLevel - 1]].type = XML_CTYPE_CHOICE; dtd 3088 srclib/apr-util/xml/expat/lib/xmlparse.c && (dtd.complete || role == XML_ROLE_INNER_PARAM_ENTITY_REF)) { dtd 3091 srclib/apr-util/xml/expat/lib/xmlparse.c name = poolStoreString(&dtd.pool, enc, dtd 3096 srclib/apr-util/xml/expat/lib/xmlparse.c entity = (ENTITY *)lookup(&dtd.paramEntities, name, 0); dtd 3097 srclib/apr-util/xml/expat/lib/xmlparse.c poolDiscard(&dtd.pool); dtd 3114 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.complete = 0; dtd 3125 srclib/apr-util/xml/expat/lib/xmlparse.c if (dtd.complete) dtd 3130 srclib/apr-util/xml/expat/lib/xmlparse.c if (!dtd.standalone dtd 3134 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.complete = 0; dtd 3146 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.scaffLevel = 0; dtd 3147 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.scaffCount = 0; dtd 3148 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.in_eldecl = 1; dtd 3154 srclib/apr-util/xml/expat/lib/xmlparse.c if (dtd.in_eldecl) { dtd 3169 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.in_eldecl = 0; dtd 3174 srclib/apr-util/xml/expat/lib/xmlparse.c if (dtd.in_eldecl) { dtd 3175 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.scaffold[dtd.scaffIndex[dtd.scaffLevel - 1]].type = XML_CTYPE_MIXED; dtd 3191 srclib/apr-util/xml/expat/lib/xmlparse.c if (dtd.in_eldecl) dtd 3198 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.scaffold[myindex].type = XML_CTYPE_NAME; dtd 3199 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.scaffold[myindex].quant = quant; dtd 3203 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.scaffold[myindex].name = el->name; dtd 3204 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.contentStringLen += nxt - s + 1; dtd 3220 srclib/apr-util/xml/expat/lib/xmlparse.c if (dtd.in_eldecl) { dtd 3221 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.scaffLevel--; dtd 3222 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.scaffold[dtd.scaffIndex[dtd.scaffLevel]].quant = quant; dtd 3223 srclib/apr-util/xml/expat/lib/xmlparse.c if (dtd.scaffLevel == 0) { dtd 3231 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.in_eldecl = 0; dtd 3232 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.contentStringLen = 0; dtd 3458 srclib/apr-util/xml/expat/lib/xmlparse.c entity = (ENTITY *)lookup(&dtd.generalEntities, name, 0); dtd 3461 srclib/apr-util/xml/expat/lib/xmlparse.c if (dtd.complete) { dtd 3509 srclib/apr-util/xml/expat/lib/xmlparse.c STRING_POOL *pool = &(dtd.pool); dtd 3525 srclib/apr-util/xml/expat/lib/xmlparse.c entity = (ENTITY *)lookup(&dtd.paramEntities, name, 0); dtd 3756 srclib/apr-util/xml/expat/lib/xmlparse.c if (!poolAppendChar(&dtd.pool, *s)) dtd 3759 srclib/apr-util/xml/expat/lib/xmlparse.c if (!poolAppendChar(&dtd.pool, XML_T('\0'))) dtd 3761 srclib/apr-util/xml/expat/lib/xmlparse.c prefix = (PREFIX *)lookup(&dtd.prefixes, poolStart(&dtd.pool), sizeof(PREFIX)); dtd 3764 srclib/apr-util/xml/expat/lib/xmlparse.c if (prefix->name == poolStart(&dtd.pool)) dtd 3765 srclib/apr-util/xml/expat/lib/xmlparse.c poolFinish(&dtd.pool); dtd 3767 srclib/apr-util/xml/expat/lib/xmlparse.c poolDiscard(&dtd.pool); dtd 3780 srclib/apr-util/xml/expat/lib/xmlparse.c if (!poolAppendChar(&dtd.pool, XML_T('\0'))) dtd 3782 srclib/apr-util/xml/expat/lib/xmlparse.c name = poolStoreString(&dtd.pool, enc, start, end); dtd 3786 srclib/apr-util/xml/expat/lib/xmlparse.c id = (ATTRIBUTE_ID *)lookup(&dtd.attributeIds, name, sizeof(ATTRIBUTE_ID)); dtd 3790 srclib/apr-util/xml/expat/lib/xmlparse.c poolDiscard(&dtd.pool); dtd 3792 srclib/apr-util/xml/expat/lib/xmlparse.c poolFinish(&dtd.pool); dtd 3802 srclib/apr-util/xml/expat/lib/xmlparse.c id->prefix = &dtd.defaultPrefix; dtd 3804 srclib/apr-util/xml/expat/lib/xmlparse.c id->prefix = (PREFIX *)lookup(&dtd.prefixes, name + 6, sizeof(PREFIX)); dtd 3813 srclib/apr-util/xml/expat/lib/xmlparse.c if (!poolAppendChar(&dtd.pool, name[j])) dtd 3816 srclib/apr-util/xml/expat/lib/xmlparse.c if (!poolAppendChar(&dtd.pool, XML_T('\0'))) dtd 3818 srclib/apr-util/xml/expat/lib/xmlparse.c id->prefix = (PREFIX *)lookup(&dtd.prefixes, poolStart(&dtd.pool), sizeof(PREFIX)); dtd 3819 srclib/apr-util/xml/expat/lib/xmlparse.c if (id->prefix->name == poolStart(&dtd.pool)) dtd 3820 srclib/apr-util/xml/expat/lib/xmlparse.c poolFinish(&dtd.pool); dtd 3822 srclib/apr-util/xml/expat/lib/xmlparse.c poolDiscard(&dtd.pool); dtd 3839 srclib/apr-util/xml/expat/lib/xmlparse.c if (dtd.defaultPrefix.binding) { dtd 3844 srclib/apr-util/xml/expat/lib/xmlparse.c len = dtd.defaultPrefix.binding->uriLen; dtd 3848 srclib/apr-util/xml/expat/lib/xmlparse.c if (!poolAppendChar(&tempPool, dtd.defaultPrefix.binding->uri[i])) dtd 3853 srclib/apr-util/xml/expat/lib/xmlparse.c hashTableIterInit(&iter, &(dtd.prefixes)); dtd 3880 srclib/apr-util/xml/expat/lib/xmlparse.c hashTableIterInit(&iter, &(dtd.generalEntities)); dtd 3911 srclib/apr-util/xml/expat/lib/xmlparse.c e = (ENTITY *)lookup(&dtd.generalEntities, poolStart(&tempPool), 0); dtd 3922 srclib/apr-util/xml/expat/lib/xmlparse.c prefix = &dtd.defaultPrefix; dtd 3926 srclib/apr-util/xml/expat/lib/xmlparse.c prefix = (PREFIX *)lookup(&dtd.prefixes, poolStart(&tempPool), sizeof(PREFIX)); dtd 3930 srclib/apr-util/xml/expat/lib/xmlparse.c prefix->name = poolCopyString(&dtd.pool, prefix->name); dtd 4527 srclib/apr-util/xml/expat/lib/xmlparse.c if (! dtd.scaffIndex) { dtd 4528 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.scaffIndex = MALLOC(groupSize * sizeof(int)); dtd 4529 srclib/apr-util/xml/expat/lib/xmlparse.c if (! dtd.scaffIndex) dtd 4531 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.scaffIndex[0] = 0; dtd 4534 srclib/apr-util/xml/expat/lib/xmlparse.c if (dtd.scaffCount >= dtd.scaffSize) { dtd 4535 srclib/apr-util/xml/expat/lib/xmlparse.c if (dtd.scaffold) { dtd 4536 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.scaffSize *= 2; dtd 4537 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.scaffold = (CONTENT_SCAFFOLD *) REALLOC(dtd.scaffold, dtd 4538 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.scaffSize * sizeof(CONTENT_SCAFFOLD)); dtd 4541 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.scaffSize = 32; dtd 4542 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.scaffold = (CONTENT_SCAFFOLD *) MALLOC(dtd.scaffSize * sizeof(CONTENT_SCAFFOLD)); dtd 4544 srclib/apr-util/xml/expat/lib/xmlparse.c if (! dtd.scaffold) dtd 4547 srclib/apr-util/xml/expat/lib/xmlparse.c next = dtd.scaffCount++; dtd 4548 srclib/apr-util/xml/expat/lib/xmlparse.c me = &dtd.scaffold[next]; dtd 4549 srclib/apr-util/xml/expat/lib/xmlparse.c if (dtd.scaffLevel) { dtd 4550 srclib/apr-util/xml/expat/lib/xmlparse.c CONTENT_SCAFFOLD *parent = &dtd.scaffold[dtd.scaffIndex[dtd.scaffLevel - 1]]; dtd 4552 srclib/apr-util/xml/expat/lib/xmlparse.c dtd.scaffold[parent->lastchild].nextsib = next; dtd 4570 srclib/apr-util/xml/expat/lib/xmlparse.c dest->type = dtd.scaffold[src_node].type; dtd 4571 srclib/apr-util/xml/expat/lib/xmlparse.c dest->quant = dtd.scaffold[src_node].quant; dtd 4575 srclib/apr-util/xml/expat/lib/xmlparse.c src = dtd.scaffold[src_node].name; dtd 4588 srclib/apr-util/xml/expat/lib/xmlparse.c dest->numchildren = dtd.scaffold[src_node].childcnt; dtd 4591 srclib/apr-util/xml/expat/lib/xmlparse.c for (i = 0, cn = dtd.scaffold[src_node].firstchild; dtd 4593 srclib/apr-util/xml/expat/lib/xmlparse.c i++, cn = dtd.scaffold[cn].nextsib) { dtd 4606 srclib/apr-util/xml/expat/lib/xmlparse.c int allocsize = dtd.scaffCount * sizeof(XML_Content) + dtd.contentStringLen; dtd 4612 srclib/apr-util/xml/expat/lib/xmlparse.c str = (char *) (&ret[dtd.scaffCount]); dtd 4625 srclib/apr-util/xml/expat/lib/xmlparse.c const XML_Char *name = poolStoreString(&dtd.pool, enc, ptr, end); dtd 4630 srclib/apr-util/xml/expat/lib/xmlparse.c ret = (ELEMENT_TYPE *) lookup(&dtd.elementTypes, name, sizeof(ELEMENT_TYPE)); dtd 4634 srclib/apr-util/xml/expat/lib/xmlparse.c poolDiscard(&dtd.pool); dtd 4636 srclib/apr-util/xml/expat/lib/xmlparse.c poolFinish(&dtd.pool);