/**************************************************************************** * try_add_cmos_table_enum * * Attempt to add a CMOS enum to our internal repository. Exit with an error * message on failure. ****************************************************************************/ static void try_add_cmos_table_enum(cmos_enum_t * cmos_enum) { switch (add_cmos_enum(cmos_enum)) { case OK: return; case LAYOUT_DUPLICATE_ENUM: fprintf(stderr, "%s: Duplicate enum %s found in CMOS option " "table.\n", prog_name, cmos_enum->text); break; default: BUG(); } exit(1); }
/**************************************************************************** * try_add_cmos_enum * * Attempt to add the given CMOS enum to our internal repository. Exit with * an error message on failure. ****************************************************************************/ static void try_add_cmos_enum(const cmos_enum_t * cmos_enum) { switch (add_cmos_enum(cmos_enum)) { case OK: return; case LAYOUT_DUPLICATE_ENUM: fprintf(stderr, "%s: Error on line %d of CMOS layout file: " "Enumeration found with duplicate ID/value combination.\n", prog_name, line_num); break; default: BUG(); } exit(1); }