mirror of
https://github.com/simh/simh.git
synced 2026-01-17 00:32:43 +00:00
SCP: Allow MTAB show routines to cleanly output nothing and be well formatted
Merely returning a non SCPE_OK status indicates no output and thus no comma or newline separation.
This commit is contained in:
parent
bff443b9b0
commit
ab6e65507d
4
scp.c
4
scp.c
@ -7390,9 +7390,9 @@ for (mptr = dptr->modifiers; mptr->mask != 0; mptr++) {
|
||||
((mptr->mask & MTAB_XTD)?
|
||||
(MODMASK(mptr,flag) && !MODMASK(mptr,MTAB_NMO)):
|
||||
((MTAB_VUN == (uint32)flag) && ((uptr->flags & mptr->mask) == mptr->match)))) {
|
||||
if (*toks > 2) {
|
||||
if ((*toks > 2) && (r == SCPE_OK)) {/* something emitted already? */
|
||||
fprintf (st, "\n");
|
||||
*toks = 0;
|
||||
*toks = 0; /* force device/unit name indent on next output */
|
||||
}
|
||||
if (r == SCPE_OK)
|
||||
fprint_sep (st, toks, flag);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user