From: Francois Fleuret Date: Fri, 10 Feb 2012 10:38:49 +0000 (+0100) Subject: Removed the check. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=2a35de53de26795087f36b34e2716b4c232fc2c1;p=selector.git Removed the check. --- diff --git a/selector.c b/selector.c index cf90315..06c43e3 100644 --- a/selector.c +++ b/selector.c @@ -410,25 +410,6 @@ int match(struct matcher *matcher, char *string, int *nb_switches, int *switches *nb_switches = add_interval(*nb_switches, switches, (int) (where - string), (int) (where - string) + strlen(matcher->patterns[n])); -#warning CHECK THE INTERVALS - { - /* int i; */ - /* FILE *out = fopen("/tmp/intervals", "w"); */ - /* for(k = 0; k < (*nb_switches)/2; k++) { */ - /* i = 0; */ - /* for(; i < switches[2 * k]; i++) fprintf(out, "-"); */ - /* for(; i < switches[2 * k + 1]; i++) fprintf(out, "%c", string[i]); */ - /* for(; i < strlen(string); i++) fprintf(out, "-"); */ - /* fprintf(out, "\n"); */ - /* } */ - /* fclose(out); */ - int k; - for(k = 0; k < *nb_switches - 1; k++) { - if(switches[k] > switches[k+1]) { - abort(); - } - } - } } } }