Print also the bool value 'off'.

Do not abort ngspice when vector LIST cannot be printed,
just skip printing and continue.
This commit is contained in:
Holger Vogt 2020-06-26 22:59:52 +02:00
parent 8f4e512826
commit 2c0729e8de
1 changed files with 5 additions and 2 deletions

View File

@ -709,9 +709,12 @@ vec_get(const char *vec_name) {
case CP_NUM:
fprintf(stdout, "%s=%d\n", nv->va_name, nv->va_num);
break;
case CP_BOOL:
fprintf(stdout, "%s=%d\n", nv->va_name, nv->va_bool);
break;
default: {
fprintf(stderr, "ERROR: enumeration value `CP_BOOL' or `CP_LIST' not handled in vec_get\nAborting...\n");
controlled_exit(EXIT_FAILURE);
fprintf(stderr, "ERROR: enumeration value `CP_LIST' not handled in vec_get\nIgnoring...\n");
break;
}
}
nv = nv->va_next;