called by argcheck(allmain.c) from early_options(sys/xxx/xxxmain.c) */
| 491 | |
| 492 | /* called by argcheck(allmain.c) from early_options(sys/xxx/xxxmain.c) */ |
| 493 | void |
| 494 | dump_version_info(void) |
| 495 | { |
| 496 | char buf[BUFSZ]; |
| 497 | const char *hname = gh.hname ? gh.hname : "nethack"; |
| 498 | |
| 499 | if (strlen(hname) > 33) |
| 500 | hname = eos(nhStr(hname)) - 33; /* discard const for eos() */ |
| 501 | runtime_info_init(); |
| 502 | Snprintf(buf, sizeof buf, "%-12.33s %08lx %08lx %08lx", |
| 503 | hname, |
| 504 | nomakedefs.version_number, |
| 505 | (nomakedefs.version_features & ~nomakedefs.ignored_features), |
| 506 | nomakedefs.version_sanity1); |
| 507 | raw_print(buf); |
| 508 | release_runtime_info(); |
| 509 | return; |
| 510 | } |
| 511 | void |
| 512 | store_version(NHFILE *nhfp) |
| 513 | { |
no test coverage detected