• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/gettext-0.17/gettext-tools/gnulib-lib/libxml/

Lines Matching defs:states

319     int nbState;                /* the number of states */
372 xmlRelaxNGStatesPtr states; /* the accumulated state list */
374 xmlRelaxNGStatesPtr freeState; /* the pool of free valid states */
1023 xmlRngVErrMemory(ctxt, "allocating states\n");
1032 xmlRngVErrMemory(ctxt, "allocating states\n");
1042 * @states: the states container
1052 xmlRelaxNGStatesPtr states,
1058 if (states->nbState >= states->maxState) {
1062 size = states->maxState * 2;
1063 tmp = (xmlRelaxNGValidStatePtr *) xmlRealloc(states->tabState,
1068 xmlRngVErrMemory(ctxt, "adding states\n");
1071 states->tabState = tmp;
1072 states->maxState = size;
1074 states->tabState[states->nbState++] = state;
1081 * @states: the states container
1090 xmlRelaxNGStatesPtr states,
1098 if (states->nbState >= states->maxState) {
1102 size = states->maxState * 2;
1103 tmp = (xmlRelaxNGValidStatePtr *) xmlRealloc(states->tabState,
1108 xmlRngVErrMemory(ctxt, "adding states\n");
1111 states->tabState = tmp;
1112 states->maxState = size;
1114 for (i = 0; i < states->nbState; i++) {
1115 if (xmlRelaxNGEqualValidState(ctxt, state, states->tabState[i])) {
1120 states->tabState[states->nbState++] = state;
1127 * @states: teh container
1133 xmlRelaxNGStatesPtr states)
1135 if (states == NULL)
1143 xmlRngVErrMemory(ctxt, "storing states\n");
1154 xmlRngVErrMemory(ctxt, "storing states\n");
1155 xmlFree(states->tabState);
1156 xmlFree(states);
1163 xmlFree(states->tabState);
1164 xmlFree(states);
1166 ctxt->freeStates[ctxt->freeStatesNr++] = states;
1210 xmlRngVErrMemory(ctxt, "allocating states\n");
1234 xmlRngVErrMemory(ctxt, "allocating states\n");
1243 xmlRngVErrMemory(ctxt, "allocating states\n");
1292 xmlRngVErrMemory(ctxt, "allocating states\n");
1308 xmlRngVErrMemory(ctxt, "allocating states\n");
1318 xmlRngVErrMemory(ctxt, "allocating states\n");
1337 * Compare the validation states for equality
8100 } else if (ctxt->states != NULL) {
8105 for (i = 0; i < ctxt->states->nbState; i++) {
8106 state = ctxt->states->tabState[i];
8122 for (i = 0; i < ctxt->states->nbState; i++) {
8123 xmlRelaxNGFreeValidState(ctxt, ctxt->states->tabState[i]);
8125 xmlRelaxNGFreeStates(ctxt, ctxt->states);
8126 ctxt->states = NULL;
9038 if ((ctxt->state != NULL) || (ctxt->states != NULL)) {
9272 } else if (ctxt->states != NULL) {
9282 for (j = 0; j < ctxt->states->nbState; j++) {
9283 cur = ctxt->states->tabState[j]->seq;
9287 lowattr = ctxt->states->tabState[j]->nbAttrLeft;
9291 if (ctxt->states->tabState[j]->nbAttrLeft <= lowattr) {
9293 lowattr = ctxt->states->tabState[j]->nbAttrLeft;
9300 lowattr = ctxt->states->tabState[j]->nbAttrLeft;
9303 if (ctxt->states->tabState[j]->nbAttrLeft <= lowattr) {
9305 lowattr = ctxt->states->tabState[j]->nbAttrLeft;
9313 if (ctxt->states->nbState > 0) {
9316 oldstate = ctxt->states->tabState[best];
9317 ctxt->states->tabState[best] = NULL;
9320 ctxt->states->tabState[ctxt->states->nbState - 1];
9321 ctxt->states->tabState[ctxt->states->nbState - 1] = NULL;
9324 for (j = 0; j < ctxt->states->nbState ; j++) {
9325 xmlRelaxNGFreeValidState(ctxt, ctxt->states->tabState[j]);
9327 xmlRelaxNGFreeStates(ctxt, ctxt->states);
9328 ctxt->states = NULL;
9397 if ((ctxt->state != NULL) || (ctxt->states != NULL)) {
9530 * Find the "best" state in the ctxt->states list of states to report
9545 if ((ctxt == NULL) || (ctxt->states == NULL) ||
9546 (ctxt->states->nbState <= 0))
9549 for (i = 0; i < ctxt->states->nbState; i++) {
9550 state = ctxt->states->tabState[i];
9573 * Find the "best" state in the ctxt->states list of states to report
9581 if ((ctxt == NULL) || (ctxt->states == NULL) ||
9582 (ctxt->states->nbState <= 0))
9586 if ((best >= 0) && (best < ctxt->states->nbState)) {
9587 ctxt->state = ctxt->states->tabState[best];
9776 xmlRelaxNGStatesPtr tmpstates = ctxt->states;
9781 ctxt->states = NULL;
9788 ctxt->states = tmpstates;
9799 if (ctxt->states != NULL) {
9802 for (i = 0; i < ctxt->states->nbState; i++) {
9803 state = ctxt->states->tabState[i];
9819 for (i = 0; i < ctxt->states->nbState; i++) {
9821 ctxt->states->
9824 xmlRelaxNGFreeStates(ctxt, ctxt->states);
9826 ctxt->states = NULL;
9855 if (ctxt->states != NULL) {
9858 for (i = 0; i < ctxt->states->nbState; i++) {
9859 state = ctxt->states->tabState[i];
9874 for (i = 0; i < ctxt->states->nbState; i++) {
9876 ctxt->states->
9879 xmlRelaxNGFreeStates(ctxt, ctxt->states);
9881 ctxt->states = NULL;
9946 if (ctxt->states != NULL) {
9947 xmlRelaxNGAddStates(ctxt, ctxt->states, oldstate);
9949 ctxt->states = xmlRelaxNGNewStates(ctxt, 1);
9950 if (ctxt->states == NULL) {
9958 xmlRelaxNGAddStates(ctxt, ctxt->states, oldstate);
9959 xmlRelaxNGAddStates(ctxt, ctxt->states, ctxt->state);
9979 xmlRelaxNGStatesPtr states = NULL, res = NULL;
9989 * All the input states are also exit states
9997 for (j = 0; j < ctxt->states->nbState; j++) {
10001 states->
10012 if (ctxt->states != NULL) {
10013 states = ctxt->states;
10014 for (i = 0; i < states->nbState; i++) {
10015 ctxt->state = states->tabState[i];
10016 ctxt->states = NULL;
10027 } else if (ctxt->states != NULL) {
10028 for (j = 0; j < ctxt->states->nbState;
10033 states->
10040 ctxt->states);
10041 ctxt->states = NULL;
10066 } else if (ctxt->states != NULL) {
10067 for (j = 0; j < ctxt->states->nbState; j++) {
10070 states->
10075 if (states == NULL) {
10076 states = ctxt->states;
10079 ctxt->states);
10081 ctxt->states = NULL;
10096 if (states == NULL) {
10099 states = ctxt->states;
10100 if (states == NULL) {
10105 states->nbState = 0;
10107 xmlRelaxNGAddStates(ctxt, states,
10111 ctxt->states = states;
10115 if (states != NULL) {
10116 xmlRelaxNGFreeStates(ctxt, states);
10118 ctxt->states = res;
10132 xmlRelaxNGStatesPtr states = NULL;
10190 if (states == NULL) {
10191 states = xmlRelaxNGNewStates(ctxt, 1);
10194 xmlRelaxNGAddStates(ctxt, states, ctxt->state);
10195 } else if (ctxt->states != NULL) {
10196 for (i = 0; i < ctxt->states->nbState; i++) {
10197 xmlRelaxNGAddStates(ctxt, states,
10198 ctxt->states->
10201 xmlRelaxNGFreeStates(ctxt, ctxt->states);
10202 ctxt->states = NULL;
10210 if (states != NULL) {
10212 ctxt->states = states;
10216 ctxt->states = NULL;
10422 xmlRelaxNGStatesPtr states, res;
10426 * We should NOT have both ctxt->state and ctxt->states
10428 if ((ctxt->state != NULL) && (ctxt->states != NULL)) {
10433 if ((ctxt->states == NULL) || (ctxt->states->nbState == 1)) {
10434 if (ctxt->states != NULL) {
10435 ctxt->state = ctxt->states->tabState[0];
10436 xmlRelaxNGFreeStates(ctxt, ctxt->states);
10437 ctxt->states = NULL;
10440 if ((ctxt->state != NULL) && (ctxt->states != NULL)) {
10444 if ((ctxt->states != NULL) && (ctxt->states->nbState == 1)) {
10445 ctxt->state = ctxt->states->tabState[0];
10446 xmlRelaxNGFreeStates(ctxt, ctxt->states);
10447 ctxt->states = NULL;
10452 states = ctxt->states;
10453 ctxt->states = NULL;
10458 for (i = 0; i < states->nbState; i++) {
10459 ctxt->state = states->tabState[i];
10460 ctxt->states = NULL;
10463 * We should NOT have both ctxt->state and ctxt->states
10465 if ((ctxt->state != NULL) && (ctxt->states != NULL)) {
10470 if (ctxt->states == NULL) {
10476 /* add the state directly in states */
10477 states->tabState[j++] = ctxt->state;
10483 res = ctxt->states;
10484 ctxt->states = NULL;
10487 states->tabState[k]);
10490 for (k = 0; k < ctxt->states->nbState; k++)
10492 ctxt->states->tabState[k]);
10493 xmlRelaxNGFreeStates(ctxt, ctxt->states);
10494 ctxt->states = NULL;
10501 } else if (ctxt->states != NULL) {
10502 for (k = 0; k < ctxt->states->nbState; k++)
10504 ctxt->states->tabState[k]);
10505 xmlRelaxNGFreeStates(ctxt, ctxt->states);
10506 ctxt->states = NULL;
10512 xmlRelaxNGFreeStates(ctxt, states);
10513 ctxt->states = res;
10516 states->nbState = j;
10517 ctxt->states = states;
10520 ctxt->state = states->tabState[0];
10521 xmlRelaxNGFreeStates(ctxt, states);
10525 xmlRelaxNGFreeStates(ctxt, states);
10526 if (ctxt->states != NULL) {
10527 xmlRelaxNGFreeStates(ctxt, ctxt->states);
10528 ctxt->states = NULL;
10531 if ((ctxt->state != NULL) && (ctxt->states != NULL)) {
10579 } else if (ctxt->states != NULL) {
10583 for (i = 0; i < ctxt->states->nbState; i++) {
10584 state = ctxt->states->tabState[i];
10666 ret->states = NULL;
10686 if (ctxt->states != NULL)
10687 xmlRelaxNGFreeStates(NULL, ctxt->states);