| 1282 | } |
| 1283 | |
| 1284 | staticfn int |
| 1285 | optfn_crash_name( |
| 1286 | int optidx UNUSED, int req, boolean negated UNUSED, |
| 1287 | char *opts, char *op) |
| 1288 | { |
| 1289 | if (req == do_init) { |
| 1290 | return optn_ok; |
| 1291 | } |
| 1292 | if (req == do_set) { |
| 1293 | if ((op = string_for_opt(opts, FALSE)) == empty_optstr) |
| 1294 | return optn_err; |
| 1295 | if (gc.crash_name) |
| 1296 | free((genericptr_t) gc.crash_name); |
| 1297 | gc.crash_name = dupstr(op); |
| 1298 | return optn_ok; |
| 1299 | } |
| 1300 | if (req == get_val || req == get_cnf_val) { |
| 1301 | if (!opts) |
| 1302 | return optn_err; |
| 1303 | if (gc.crash_name) |
| 1304 | Sprintf(opts, "%s", gc.crash_name); |
| 1305 | return optn_ok; |
| 1306 | } |
| 1307 | return optn_ok; |
| 1308 | } |
| 1309 | |
| 1310 | staticfn int |
| 1311 | optfn_crash_urlmax( |
nothing calls this directly
no test coverage detected