Home | History | Annotate | Download | only in lib

Lines Matching refs:state

115 #define setTopLevel(state) \
116 ((state)->handler = ((state)->documentEntity \
120 #define setTopLevel(state) ((state)->handler = internalSubset)
123 typedef int PTRCALL PROLOG_HANDLER(PROLOG_STATE *state,
147 static int FASTCALL common(PROLOG_STATE *state, int tok);
150 prolog0(PROLOG_STATE *state,
158 state->handler = prolog1;
161 state->handler = prolog1;
164 state->handler = prolog1;
167 state->handler = prolog1;
177 state->handler = doctype0;
180 state->handler = error;
183 return common(state, tok);
187 prolog1(PROLOG_STATE *state,
215 state->handler = doctype0;
218 state->handler = error;
221 return common(state, tok);
225 prolog2(PROLOG_STATE *state,
239 state->handler = error;
242 return common(state, tok);
246 doctype0(PROLOG_STATE *state,
257 state->handler = doctype1;
260 return common(state, tok);
264 doctype1(PROLOG_STATE *state,
274 state->handler = internalSubset;
277 state->handler = prolog2;
281 state->handler = doctype3;
285 state->handler = doctype2;
290 return common(state, tok);
294 doctype2(PROLOG_STATE *state,
304 state->handler = doctype3;
307 return common(state, tok);
311 doctype3(PROLOG_STATE *state,
321 state->handler = doctype4;
324 return common(state, tok);
328 doctype4(PROLOG_STATE *state,
338 state->handler = internalSubset;
341 state->handler = prolog2;
344 return common(state, tok);
348 doctype5(PROLOG_STATE *state,
358 state->handler = prolog2;
361 return common(state, tok);
365 internalSubset(PROLOG_STATE *state,
379 state->handler = entity0;
386 state->handler = attlist0;
393 state->handler = element0;
400 state->handler = notation0;
411 state->handler = doctype5;
416 return common(state, tok);
422 externalSubset0(PROLOG_STATE *state,
428 state->handler = externalSubset1;
431 return externalSubset1(state, tok, ptr, end, enc);
435 externalSubset1(PROLOG_STATE *state,
443 state->handler = condSect0;
446 if (state->includeLevel == 0)
448 state->includeLevel -= 1;
455 if (state->includeLevel)
459 return internalSubset(state, tok, ptr, end, enc);
461 return common(state, tok);
467 entity0(PROLOG_STATE *state,
477 state->handler = entity1;
480 state->handler = entity2;
483 return common(state, tok);
487 entity1(PROLOG_STATE *state,
497 state->handler = entity7;
500 return common(state, tok);
504 entity2(PROLOG_STATE *state,
515 state->handler = entity4;
519 state->handler = entity3;
524 state->handler = declClose;
525 state->role_none = XML_ROLE_ENTITY_NONE;
528 return common(state, tok);
532 entity3(PROLOG_STATE *state,
542 state->handler = entity4;
545 return common(state, tok);
549 entity4(PROLOG_STATE *state,
559 state->handler = entity5;
562 return common(state, tok);
566 entity5(PROLOG_STATE *state,
576 setTopLevel(state);
580 state->handler = entity6;
585 return common(state, tok);
589 entity6(PROLOG_STATE *state,
599 state->handler = declClose;
600 state->role_none = XML_ROLE_ENTITY_NONE;
603 return common(state, tok);
607 entity7(PROLOG_STATE *state,
618 state->handler = entity9;
622 state->handler = entity8;
627 state->handler = declClose;
628 state->role_none = XML_ROLE_ENTITY_NONE;
631 return common(state, tok);
635 entity8(PROLOG_STATE *state,
645 state->handler = entity9;
648 return common(state, tok);
652 entity9(PROLOG_STATE *state,
662 state->handler = entity10;
665 return common(state, tok);
669 entity10(PROLOG_STATE *state,
679 setTopLevel(state);
682 return common(state, tok);
686 notation0(PROLOG_STATE *state,
696 state->handler = notation1;
699 return common(state, tok);
703 notation1(PROLOG_STATE *state,
714 state->handler = notation3;
718 state->handler = notation2;
723 return common(state, tok);
727 notation2(PROLOG_STATE *state,
737 state->handler = notation4;
740 return common(state, tok);
744 notation3(PROLOG_STATE *state,
754 state->handler = declClose;
755 state->role_none = XML_ROLE_NOTATION_NONE;
758 return common(state, tok);
762 notation4(PROLOG_STATE *state,
772 state->handler = declClose;
773 state->role_none = XML_ROLE_NOTATION_NONE;
776 setTopLevel(state);
779 return common(state, tok);
783 attlist0(PROLOG_STATE *state,
794 state->handler = attlist1;
797 return common(state, tok);
801 attlist1(PROLOG_STATE *state,
811 setTopLevel(state);
815 state->handler = attlist2;
818 return common(state, tok);
822 attlist2(PROLOG_STATE *state,
846 state->handler = attlist8;
851 state->handler = attlist5;
856 state->handler = attlist3;
859 return common(state, tok);
863 attlist3(PROLOG_STATE *state,
875 state->handler = attlist4;
878 return common(state, tok);
882 attlist4(PROLOG_STATE *state,
892 state->handler = attlist8;
895 state->handler = attlist3;
898 return common(state, tok);
902 attlist5(PROLOG_STATE *state,
912 state->handler = attlist6;
915 return common(state, tok);
919 attlist6(PROLOG_STATE *state,
929 state->handler = attlist7;
932 return common(state, tok);
936 attlist7(PROLOG_STATE *state,
946 state->handler = attlist8;
949 state->handler = attlist6;
952 return common(state, tok);
957 attlist8(PROLOG_STATE *state,
971 state->handler = attlist1;
978 state->handler = attlist1;
985 state->handler = attlist9;
990 state->handler = attlist1;
993 return common(state, tok);
997 attlist9(PROLOG_STATE *state,
1007 state->handler = attlist1;
1010 return common(state, tok);
1014 element0(PROLOG_STATE *state,
1025 state->handler = element1;
1028 return common(state, tok);
1032 element1(PROLOG_STATE *state,
1043 state->handler = declClose;
1044 state->role_none = XML_ROLE_ELEMENT_NONE;
1048 state->handler = declClose;
1049 state->role_none = XML_ROLE_ELEMENT_NONE;
1054 state->handler = element2;
1055 state->level = 1;
1058 return common(state, tok);
1062 element2(PROLOG_STATE *state,
1076 state->handler = element3;
1081 state->level = 2;
1082 state->handler = element6;
1086 state->handler = element7;
1089 state->handler = element7;
1092 state->handler = element7;
1095 state->handler = element7;
1098 return common(state, tok);
1102 element3(PROLOG_STATE *state,
1112 state->handler = declClose;
1113 state->role_none = XML_ROLE_ELEMENT_NONE;
1116 state->handler = declClose;
1117 state->role_none = XML_ROLE_ELEMENT_NONE;
1120 state->handler = element4;
1123 return common(state, tok);
1127 element4(PROLOG_STATE *state,
1138 state->handler = element5;
1141 return common(state, tok);
1145 element5(PROLOG_STATE *state,
1155 state->handler = declClose;
1156 state->role_none = XML_ROLE_ELEMENT_NONE;
1159 state->handler = element4;
1162 return common(state, tok);
1166 element6(PROLOG_STATE *state,
1176 state->level += 1;
1180 state->handler = element7;
1183 state->handler = element7;
1186 state->handler = element7;
1189 state->handler = element7;
1192 return common(state, tok);
1196 element7(PROLOG_STATE *state,
1206 state->level -= 1;
1207 if (state->level == 0) {
1208 state->handler = declClose;
1209 state->role_none = XML_ROLE_ELEMENT_NONE;
1213 state->level -= 1;
1214 if (state->level == 0) {
1215 state->handler = declClose;
1216 state->role_none = XML_ROLE_ELEMENT_NONE;
1220 state->level -= 1;
1221 if (state->level == 0) {
1222 state->handler = declClose;
1223 state->role_none = XML_ROLE_ELEMENT_NONE;
1227 state->level -= 1;
1228 if (state->level == 0) {
1229 state->handler = declClose;
1230 state->role_none = XML_ROLE_ELEMENT_NONE;
1234 state->handler = element6;
1237 state->handler = element6;
1240 return common(state, tok);
1246 condSect0(PROLOG_STATE *state,
1257 state->handler = condSect1;
1261 state->handler = condSect2;
1266 return common(state, tok);
1270 condSect1(PROLOG_STATE *state,
1280 state->handler = externalSubset1;
1281 state->includeLevel += 1;
1284 return common(state, tok);
1288 condSect2(PROLOG_STATE *state,
1298 state->handler = externalSubset1;
1301 return common(state, tok);
1307 declClose(PROLOG_STATE *state,
1315 return state->role_none;
1317 setTopLevel(state);
1318 return state->role_none;
1320 return common(state, tok);
1344 error(PROLOG_STATE *UNUSED_P(state),
1355 common(PROLOG_STATE *state, int tok)
1358 if (!state->documentEntity && tok == XML_TOK_PARAM_ENTITY_REF)
1361 state->handler = error;
1366 XmlPrologStateInit(PROLOG_STATE *state)
1368 state->handler = prolog0;
1370 state->documentEntity = 1;
1371 state->includeLevel = 0;
1372 state->inEntityValue = 0;
1379 XmlPrologStateInitExternalEntity(PROLOG_STATE *state)
1381 state->handler = externalSubset0;
1382 state->documentEntity = 0;
1383 state->includeLevel = 0;