index a1d8fe0cb62f5d1b043dea932fd75576fd9225a2..688ab50e228f41f6cffe395d46a8b34ccb041036 100644 (file)
int (*yyparse)(void) = NULL;
int (*yylex_destroy)(void) = NULL;
- int ch;
- bool ticset = false;
const char *fconfig = NULL;
+ int ch;
filter_mode = false;
etiq_en = NULL;
switch (ch) {
#ifdef TICV01
case '1':
- if (ticset)
+ if (yyparse)
errx(-1, "ERREUR: Une seule version de TIC peut être analysée à la fois");
parse_config = parse_config_v01;
yyparse = ticv01yyparse;
yylex_destroy = ticv01yylex_destroy;
- ticset = true;
break;
#endif
#ifdef TICV02
case '2':
- if (ticset)
+ if (yyparse)
errx(-1, "ERREUR: Une seule version de TIC peut être analysée à la fois");
parse_config = parse_config_v02;
yyparse = ticv02yyparse;
yylex_destroy = ticv02yylex_destroy;
- ticset = true;
break;
#endif
case 'd':
argv += optind;
#endif /* !BAREBUILD */
- if (!ticset)
+ if (!yyparse)
errx(-1, "ERREUR: version TIC non spécifiée");
if (fconfig)