Enable checking a list variable as o.k.

This commit is contained in:
Holger Vogt 2025-12-10 21:56:54 +01:00
parent 0cf185e518
commit e7c694d771
1 changed files with 6 additions and 1 deletions

View File

@ -1400,6 +1400,8 @@ inp_dodeck(
break; break;
case CP_STRING: case CP_STRING:
break; break;
case CP_LIST:
break;
default: { default: {
fprintf(stderr, "ERROR: wrong format in option %s!\n", eev->va_name); fprintf(stderr, "ERROR: wrong format in option %s!\n", eev->va_name);
fprintf(stderr, " Aborting...\n"); fprintf(stderr, " Aborting...\n");
@ -1612,8 +1614,11 @@ inp_dodeck(
case CP_STRING: case CP_STRING:
if_option(ct->ci_ckt, eev->va_name, eev->va_type, eev->va_string); if_option(ct->ci_ckt, eev->va_name, eev->va_type, eev->va_string);
break; break;
case CP_LIST:
if_option(ct->ci_ckt, eev->va_name, eev->va_type, eev->va_string);
break;
default: { default: {
fprintf(stderr, "ERROR: enumeration value `CP_LIST' not handled in inp_dodeck\nAborting...\n"); fprintf(stderr, "ERROR: Unknown variable type for variable %s\nAborting...\n", eev->va_name);
controlled_exit(EXIT_FAILURE); controlled_exit(EXIT_FAILURE);
} }
} // switch . . . } // switch . . .