1
0
mirror of https://github.com/simh/simh.git synced 2026-01-11 23:52:58 +00:00

SCP: Report optional VM specific release after optional delta in SHOW VERSION

From simh v3.12-5 changes
This commit is contained in:
J. David Bryan 2024-05-21 14:22:41 -10:00 committed by Mark Pizzolato
parent 5d10f2c724
commit b24bf74f29

8
scp.c
View File

@ -7020,15 +7020,15 @@ setenv ("SIM_MINOR", vmin_s, 1);
sprintf (vpat_s, "%d", vpat);
setenv ("SIM_PATCH", vpat_s, 1);
fprintf (st, "%s simulator V%d.%d-%d", sim_name, vmaj, vmin, vpat);
if (sim_vm_release != NULL) { /* if a release string is defined */
setenv ("SIM_VM_RELEASE", sim_vm_release, 1);
fprintf (st, " Release %s", sim_vm_release); /* then display it */
}
if (vdelt) {
sprintf (vdelt_s, "%d", vdelt);
setenv ("SIM_DELTA", vdelt_s, 1);
fprintf (st, " delta %d", vdelt);
}
if (sim_vm_release != NULL) { /* if a release string is defined */
setenv ("SIM_VM_RELEASE", sim_vm_release, 1);
fprintf (st, " Release %s", sim_vm_release); /* then display it */
}
#if defined (SIM_VERSION_MODE)
if (1) {
char mode[] = __STR(SIM_VERSION_MODE);