| 1391 | #endif |
| 1392 | |
| 1393 | staticfn int |
| 1394 | optfn_DECgraphics( |
| 1395 | int optidx, int req, boolean negated, |
| 1396 | char *opts, char *op UNUSED) |
| 1397 | { |
| 1398 | #ifdef BACKWARD_COMPAT |
| 1399 | boolean badflag = FALSE; |
| 1400 | #endif |
| 1401 | |
| 1402 | if (req == do_init) { |
| 1403 | return optn_ok; |
| 1404 | } |
| 1405 | if (req == do_set) { |
| 1406 | /* "DECgraphics" */ |
| 1407 | |
| 1408 | #ifdef BACKWARD_COMPAT |
| 1409 | if (!negated) { |
| 1410 | /* There is no rogue level DECgraphics-specific set */ |
| 1411 | if (gs.symset[PRIMARYSET].name) { |
| 1412 | badflag = TRUE; |
| 1413 | } else { |
| 1414 | gs.symset[PRIMARYSET].name = dupstr(allopt[optidx].name); |
| 1415 | if (!read_sym_file(PRIMARYSET)) { |
| 1416 | badflag = TRUE; |
| 1417 | clear_symsetentry(PRIMARYSET, TRUE); |
| 1418 | } else |
| 1419 | switch_symbols(TRUE); |
| 1420 | } |
| 1421 | if (badflag) { |
| 1422 | config_error_add("Failure to load symbol set %s.", |
| 1423 | allopt[optidx].name); |
| 1424 | return optn_err; |
| 1425 | } |
| 1426 | } |
| 1427 | return optn_ok; |
| 1428 | #else |
| 1429 | config_error_add("'%s' no longer supported; use 'symset:%s' instead", |
| 1430 | allopt[optidx].name, allopt[optidx].name); |
| 1431 | return optn_err; |
| 1432 | #endif |
| 1433 | } |
| 1434 | if (req == get_val || req == get_cnf_val) { |
| 1435 | opts[0] = '\0'; |
| 1436 | return optn_ok; |
| 1437 | } |
| 1438 | return optn_ok; |
| 1439 | } |
| 1440 | |
| 1441 | staticfn int |
| 1442 | optfn_disclose( |
nothing calls this directly
no test coverage detected