• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/libxml2-2.7.2/

Lines Matching refs:counter

10  *    - RELAX-NG/TREX i.e. the counter proposal
214 int counter;
1120 if (trans->counter >= 0) {
1121 fprintf(output, "counted %d, ", trans->counter);
1255 xmlRegexpErrMemory(ctxt, "allocating counter");
1265 xmlRegexpErrMemory(ctxt, "allocating counter");
1297 xmlRegexpErrMemory(ctxt, "allocating counter");
1339 int counter, int count) {
1361 (trans->counter == counter) &&
1398 else if (counter >= 0)
1399 printf("counted %d\n", counter);
1408 state->trans[state->nbTrans].counter = counter;
1490 * counter: the counter for that transition
1495 xmlRegStatePtr from, xmlRegStatePtr to, int counter) {
1501 xmlRegStateAddTrans(ctxt, from, NULL, to, counter, -1);
1509 * counter: the counter for that transition
1514 xmlRegStatePtr from, xmlRegStatePtr to, int counter) {
1520 xmlRegStateAddTrans(ctxt, from, NULL, to, -1, counter);
1585 int counter;
1626 counter = xmlRegGetCounter(ctxt);
1627 ctxt->counters[counter].min = atom->min - 1;
1628 ctxt->counters[counter].max = atom->max - 1;
1631 atom->stop, counter);
1634 newstate, counter);
1644 counter = xmlRegGetCounter(ctxt);
1645 ctxt->counters[counter].min = atom->min - 1;
1646 ctxt->counters[counter].max = atom->max - 1;
1649 atom->start, counter);
1652 newstate, counter);
1751 * @counter: should that transition be associated to a counted
1756 int tonr, int counter) {
1801 if (to->trans[transnr].counter >= 0) {
1804 to->trans[transnr].counter);
1808 counter);
1815 if (to->trans[transnr].counter >= 0) {
1818 to->trans[transnr].counter, -1);
1821 ctxt->states[newto], counter, -1);
1860 (state->trans[0].counter < 0) &&
1885 tmp->trans[j].counter,
1969 newto, state->trans[transnr].counter);
3204 xmlRegCounterPtr counter;
3215 counter = &exec->comp->counters[trans->count];
3218 trans->count, count, counter->min, counter->max);
3220 ret = ((count >= counter->min) && (count <= counter->max));
3221 if ((ret) && (counter->min != counter->max))
3235 * If there is a counter associated increment it now.
3237 * do not increment if the counter is already over the
3240 if (trans->counter >= 0) {
3241 xmlRegCounterPtr counter;
3249 counter = &exec->comp->counters[trans->counter];
3250 if (exec->counts[trans->counter] >= counter->max)
3254 printf("Increasing count %d\n", trans->counter);
3256 exec->counts[trans->counter]++;
3307 if (trans->counter >= 0) {
3313 printf("Decreasing count %d\n", trans->counter);
3315 exec->counts[trans->counter]--;
3347 if (trans->counter >= 0) {
3348 xmlRegCounterPtr counter;
3350 /* make sure we don't go over the counter maximum value */
3357 counter = &exec->comp->counters[trans->counter];
3358 if (exec->counts[trans->counter] >= counter->max)
3361 printf("Increasing count %d\n", trans->counter);
3363 exec->counts[trans->counter]++;
3786 xmlRegCounterPtr counter;
3801 if ((t->counter < 0) || (t == trans))
3803 counter = &exec->comp->counters[t->counter];
3804 count = exec->counts[t->counter];
3805 if ((count < counter->max) &&
3811 if ((count >= counter->min) &&
3812 (count < counter->max) &&
3824 xmlRegCounterPtr counter;
3836 if ((t->counter < 0) || (t == trans))
3838 counter = &exec->comp->counters[t->counter];
3839 count = exec->counts[t->counter];
3840 if ((count < counter->min) || (count > counter->max)) {
3847 xmlRegCounterPtr counter;
3854 counter = &exec->comp->counters[trans->count];
3857 trans->count, count, counter->min, counter->max);
3859 ret = ((count >= counter->min) && (count <= counter->max));
3871 if ((ret == 1) && (trans->counter >= 0)) {
3872 xmlRegCounterPtr counter;
3875 count = exec->counts[trans->counter];
3876 counter = &exec->comp->counters[trans->counter];
3877 if (count >= counter->max)
3960 if (trans->counter >= 0) {
3962 printf("Increasing count %d\n", trans->counter);
3964 exec->counts[trans->counter]++;
4242 } else if (trans->counter >= 0) {
4243 xmlRegCounterPtr counter = NULL;
4247 count = exec->errCounts[trans->counter];
4249 count = exec->counts[trans->counter];
4251 counter = &exec->comp->counters[trans->counter];
4252 if ((counter == NULL) || (count < counter->max)) {
4284 } else if (trans->counter >= 0) {
4403 xmlRegCounterPtr counter;
4410 counter = &exec->comp->counters[trans->count];
4413 trans->count, count, counter->min, counter->max);
4415 ret = ((count >= counter->min) && (count <= counter->max));
4493 if (trans->counter >= 0) {
4495 printf("Increasing count %d\n", trans->counter);
4497 exec->counts[trans->counter]++;
5790 int counter;
5830 * associate a counter to the transition.
5832 counter = xmlRegGetCounter(am);
5833 am->counters[counter].min = min;
5834 am->counters[counter].max = max;
5841 xmlRegStateAddTrans(am, from, atom, to, counter, -1);
5876 int counter;
5896 * associate a counter to the transition.
5898 counter = xmlRegGetCounter(am);
5899 am->counters[counter].min = min;
5900 am->counters[counter].max = max;
5907 xmlRegStateAddTrans(am, from, atom, to, counter, -1);
5945 int counter;
5982 * associate a counter to the transition.
5984 counter = xmlRegGetCounter(am);
5985 am->counters[counter].min = 1;
5986 am->counters[counter].max = 1;
5993 xmlRegStateAddTrans(am, from, atom, to, counter, -1);
6024 int counter;
6041 * associate a counter to the transition.
6043 counter = xmlRegGetCounter(am);
6044 am->counters[counter].min = 1;
6045 am->counters[counter].max = 1;
6052 xmlRegStateAddTrans(am, from, atom, to, counter, -1);
6128 * @min: the minimal value on the counter
6129 * @max: the maximal value on the counter
6131 * Create a new counter
6133 * Returns the counter number or -1 in case of error
6155 * @counter: the counter associated to that transition
6159 * which will increment the counter provided
6165 xmlAutomataStatePtr to, int counter) {
6166 if ((am == NULL) || (from == NULL) || (counter < 0))
6168 xmlFAGenerateCountedEpsilonTransition(am, from, to, counter);
6179 * @counter: the counter associated to that transition
6183 * which will be allowed only if the counter is within the right range.
6189 xmlAutomataStatePtr to, int counter) {
6190 if ((am == NULL) || (from == NULL) || (counter < 0))
6192 xmlFAGenerateCountedTransition(am, from, to, counter);