• Home
  • Raw
  • Download

Lines Matching full:state

93 #define setTopLevel(state) \  argument
94 ((state)->handler = ((state)->documentEntity \
98 #define setTopLevel(state) ((state)->handler = internalSubset) argument
101 typedef int PTRCALL PROLOG_HANDLER(PROLOG_STATE *state,
125 static int FASTCALL common(PROLOG_STATE *state, int tok);
128 prolog0(PROLOG_STATE *state, in prolog0() argument
136 state->handler = prolog1; in prolog0()
139 state->handler = prolog1; in prolog0()
142 state->handler = prolog1; in prolog0()
145 state->handler = prolog1; in prolog0()
155 state->handler = doctype0; in prolog0()
158 state->handler = error; in prolog0()
161 return common(state, tok); in prolog0()
165 prolog1(PROLOG_STATE *state, in prolog1() argument
186 state->handler = doctype0; in prolog1()
189 state->handler = error; in prolog1()
192 return common(state, tok); in prolog1()
196 prolog2(PROLOG_STATE *state, in prolog2() argument
210 state->handler = error; in prolog2()
213 return common(state, tok); in prolog2()
217 doctype0(PROLOG_STATE *state, in doctype0() argument
228 state->handler = doctype1; in doctype0()
231 return common(state, tok); in doctype0()
235 doctype1(PROLOG_STATE *state, in doctype1() argument
245 state->handler = internalSubset; in doctype1()
248 state->handler = prolog2; in doctype1()
252 state->handler = doctype3; in doctype1()
256 state->handler = doctype2; in doctype1()
261 return common(state, tok); in doctype1()
265 doctype2(PROLOG_STATE *state, in doctype2() argument
275 state->handler = doctype3; in doctype2()
278 return common(state, tok); in doctype2()
282 doctype3(PROLOG_STATE *state, in doctype3() argument
292 state->handler = doctype4; in doctype3()
295 return common(state, tok); in doctype3()
299 doctype4(PROLOG_STATE *state, in doctype4() argument
309 state->handler = internalSubset; in doctype4()
312 state->handler = prolog2; in doctype4()
315 return common(state, tok); in doctype4()
319 doctype5(PROLOG_STATE *state, in doctype5() argument
329 state->handler = prolog2; in doctype5()
332 return common(state, tok); in doctype5()
336 internalSubset(PROLOG_STATE *state, in internalSubset() argument
350 state->handler = entity0; in internalSubset()
357 state->handler = attlist0; in internalSubset()
364 state->handler = element0; in internalSubset()
371 state->handler = notation0; in internalSubset()
382 state->handler = doctype5; in internalSubset()
387 return common(state, tok); in internalSubset()
393 externalSubset0(PROLOG_STATE *state, in externalSubset0() argument
399 state->handler = externalSubset1; in externalSubset0()
402 return externalSubset1(state, tok, ptr, end, enc); in externalSubset0()
406 externalSubset1(PROLOG_STATE *state, in externalSubset1() argument
414 state->handler = condSect0; in externalSubset1()
417 if (state->includeLevel == 0) in externalSubset1()
419 state->includeLevel -= 1; in externalSubset1()
426 if (state->includeLevel) in externalSubset1()
430 return internalSubset(state, tok, ptr, end, enc); in externalSubset1()
432 return common(state, tok); in externalSubset1()
438 entity0(PROLOG_STATE *state, in entity0() argument
448 state->handler = entity1; in entity0()
451 state->handler = entity2; in entity0()
454 return common(state, tok); in entity0()
458 entity1(PROLOG_STATE *state, in entity1() argument
468 state->handler = entity7; in entity1()
471 return common(state, tok); in entity1()
475 entity2(PROLOG_STATE *state, in entity2() argument
486 state->handler = entity4; in entity2()
490 state->handler = entity3; in entity2()
495 state->handler = declClose; in entity2()
496 state->role_none = XML_ROLE_ENTITY_NONE; in entity2()
499 return common(state, tok); in entity2()
503 entity3(PROLOG_STATE *state, in entity3() argument
513 state->handler = entity4; in entity3()
516 return common(state, tok); in entity3()
520 entity4(PROLOG_STATE *state, in entity4() argument
530 state->handler = entity5; in entity4()
533 return common(state, tok); in entity4()
537 entity5(PROLOG_STATE *state, in entity5() argument
547 setTopLevel(state); in entity5()
551 state->handler = entity6; in entity5()
556 return common(state, tok); in entity5()
560 entity6(PROLOG_STATE *state, in entity6() argument
570 state->handler = declClose; in entity6()
571 state->role_none = XML_ROLE_ENTITY_NONE; in entity6()
574 return common(state, tok); in entity6()
578 entity7(PROLOG_STATE *state, in entity7() argument
589 state->handler = entity9; in entity7()
593 state->handler = entity8; in entity7()
598 state->handler = declClose; in entity7()
599 state->role_none = XML_ROLE_ENTITY_NONE; in entity7()
602 return common(state, tok); in entity7()
606 entity8(PROLOG_STATE *state, in entity8() argument
616 state->handler = entity9; in entity8()
619 return common(state, tok); in entity8()
623 entity9(PROLOG_STATE *state, in entity9() argument
633 state->handler = entity10; in entity9()
636 return common(state, tok); in entity9()
640 entity10(PROLOG_STATE *state, in entity10() argument
650 setTopLevel(state); in entity10()
653 return common(state, tok); in entity10()
657 notation0(PROLOG_STATE *state, in notation0() argument
667 state->handler = notation1; in notation0()
670 return common(state, tok); in notation0()
674 notation1(PROLOG_STATE *state, in notation1() argument
685 state->handler = notation3; in notation1()
689 state->handler = notation2; in notation1()
694 return common(state, tok); in notation1()
698 notation2(PROLOG_STATE *state, in notation2() argument
708 state->handler = notation4; in notation2()
711 return common(state, tok); in notation2()
715 notation3(PROLOG_STATE *state, in notation3() argument
725 state->handler = declClose; in notation3()
726 state->role_none = XML_ROLE_NOTATION_NONE; in notation3()
729 return common(state, tok); in notation3()
733 notation4(PROLOG_STATE *state, in notation4() argument
743 state->handler = declClose; in notation4()
744 state->role_none = XML_ROLE_NOTATION_NONE; in notation4()
747 setTopLevel(state); in notation4()
750 return common(state, tok); in notation4()
754 attlist0(PROLOG_STATE *state, in attlist0() argument
765 state->handler = attlist1; in attlist0()
768 return common(state, tok); in attlist0()
772 attlist1(PROLOG_STATE *state, in attlist1() argument
782 setTopLevel(state); in attlist1()
786 state->handler = attlist2; in attlist1()
789 return common(state, tok); in attlist1()
793 attlist2(PROLOG_STATE *state, in attlist2() argument
817 state->handler = attlist8; in attlist2()
822 state->handler = attlist5; in attlist2()
827 state->handler = attlist3; in attlist2()
830 return common(state, tok); in attlist2()
834 attlist3(PROLOG_STATE *state, in attlist3() argument
846 state->handler = attlist4; in attlist3()
849 return common(state, tok); in attlist3()
853 attlist4(PROLOG_STATE *state, in attlist4() argument
863 state->handler = attlist8; in attlist4()
866 state->handler = attlist3; in attlist4()
869 return common(state, tok); in attlist4()
873 attlist5(PROLOG_STATE *state, in attlist5() argument
883 state->handler = attlist6; in attlist5()
886 return common(state, tok); in attlist5()
890 attlist6(PROLOG_STATE *state, in attlist6() argument
900 state->handler = attlist7; in attlist6()
903 return common(state, tok); in attlist6()
907 attlist7(PROLOG_STATE *state, in attlist7() argument
917 state->handler = attlist8; in attlist7()
920 state->handler = attlist6; in attlist7()
923 return common(state, tok); in attlist7()
928 attlist8(PROLOG_STATE *state, in attlist8() argument
942 state->handler = attlist1; in attlist8()
949 state->handler = attlist1; in attlist8()
956 state->handler = attlist9; in attlist8()
961 state->handler = attlist1; in attlist8()
964 return common(state, tok); in attlist8()
968 attlist9(PROLOG_STATE *state, in attlist9() argument
978 state->handler = attlist1; in attlist9()
981 return common(state, tok); in attlist9()
985 element0(PROLOG_STATE *state, in element0() argument
996 state->handler = element1; in element0()
999 return common(state, tok); in element0()
1003 element1(PROLOG_STATE *state, in element1() argument
1014 state->handler = declClose; in element1()
1015 state->role_none = XML_ROLE_ELEMENT_NONE; in element1()
1019 state->handler = declClose; in element1()
1020 state->role_none = XML_ROLE_ELEMENT_NONE; in element1()
1025 state->handler = element2; in element1()
1026 state->level = 1; in element1()
1029 return common(state, tok); in element1()
1033 element2(PROLOG_STATE *state, in element2() argument
1047 state->handler = element3; in element2()
1052 state->level = 2; in element2()
1053 state->handler = element6; in element2()
1057 state->handler = element7; in element2()
1060 state->handler = element7; in element2()
1063 state->handler = element7; in element2()
1066 state->handler = element7; in element2()
1069 return common(state, tok); in element2()
1073 element3(PROLOG_STATE *state, in element3() argument
1083 state->handler = declClose; in element3()
1084 state->role_none = XML_ROLE_ELEMENT_NONE; in element3()
1087 state->handler = declClose; in element3()
1088 state->role_none = XML_ROLE_ELEMENT_NONE; in element3()
1091 state->handler = element4; in element3()
1094 return common(state, tok); in element3()
1098 element4(PROLOG_STATE *state, in element4() argument
1109 state->handler = element5; in element4()
1112 return common(state, tok); in element4()
1116 element5(PROLOG_STATE *state, in element5() argument
1126 state->handler = declClose; in element5()
1127 state->role_none = XML_ROLE_ELEMENT_NONE; in element5()
1130 state->handler = element4; in element5()
1133 return common(state, tok); in element5()
1137 element6(PROLOG_STATE *state, in element6() argument
1147 state->level += 1; in element6()
1151 state->handler = element7; in element6()
1154 state->handler = element7; in element6()
1157 state->handler = element7; in element6()
1160 state->handler = element7; in element6()
1163 return common(state, tok); in element6()
1167 element7(PROLOG_STATE *state, in element7() argument
1177 state->level -= 1; in element7()
1178 if (state->level == 0) { in element7()
1179 state->handler = declClose; in element7()
1180 state->role_none = XML_ROLE_ELEMENT_NONE; in element7()
1184 state->level -= 1; in element7()
1185 if (state->level == 0) { in element7()
1186 state->handler = declClose; in element7()
1187 state->role_none = XML_ROLE_ELEMENT_NONE; in element7()
1191 state->level -= 1; in element7()
1192 if (state->level == 0) { in element7()
1193 state->handler = declClose; in element7()
1194 state->role_none = XML_ROLE_ELEMENT_NONE; in element7()
1198 state->level -= 1; in element7()
1199 if (state->level == 0) { in element7()
1200 state->handler = declClose; in element7()
1201 state->role_none = XML_ROLE_ELEMENT_NONE; in element7()
1205 state->handler = element6; in element7()
1208 state->handler = element6; in element7()
1211 return common(state, tok); in element7()
1217 condSect0(PROLOG_STATE *state, in condSect0() argument
1228 state->handler = condSect1; in condSect0()
1232 state->handler = condSect2; in condSect0()
1237 return common(state, tok); in condSect0()
1241 condSect1(PROLOG_STATE *state, in condSect1() argument
1251 state->handler = externalSubset1; in condSect1()
1252 state->includeLevel += 1; in condSect1()
1255 return common(state, tok); in condSect1()
1259 condSect2(PROLOG_STATE *state, in condSect2() argument
1269 state->handler = externalSubset1; in condSect2()
1272 return common(state, tok); in condSect2()
1278 declClose(PROLOG_STATE *state, in declClose() argument
1286 return state->role_none; in declClose()
1288 setTopLevel(state); in declClose()
1289 return state->role_none; in declClose()
1291 return common(state, tok); in declClose()
1295 error(PROLOG_STATE *UNUSED_P(state), in error() argument
1305 common(PROLOG_STATE *state, int tok) in common() argument
1308 if (!state->documentEntity && tok == XML_TOK_PARAM_ENTITY_REF) in common()
1311 state->handler = error; in common()
1316 XmlPrologStateInit(PROLOG_STATE *state) in XmlPrologStateInit() argument
1318 state->handler = prolog0; in XmlPrologStateInit()
1320 state->documentEntity = 1; in XmlPrologStateInit()
1321 state->includeLevel = 0; in XmlPrologStateInit()
1322 state->inEntityValue = 0; in XmlPrologStateInit()
1329 XmlPrologStateInitExternalEntity(PROLOG_STATE *state) in XmlPrologStateInitExternalEntity() argument
1331 state->handler = externalSubset0; in XmlPrologStateInitExternalEntity()
1332 state->documentEntity = 0; in XmlPrologStateInitExternalEntity()
1333 state->includeLevel = 0; in XmlPrologStateInitExternalEntity()