1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2025-01-12 04:30:42 +00:00

Switch to new when/is/otherwise with break

This commit is contained in:
David Schmenk 2014-07-07 22:15:57 -07:00
parent e14757982f
commit d6faa42e32
3 changed files with 13 additions and 1 deletions

View File

@ -994,8 +994,10 @@ while 1
quit quit
is 'M' is 'M'
syscall($02) syscall($02)
break
is '+' is '+'
execmod(cmdptr) execmod(cmdptr)
break
otherwise otherwise
prstr(@huhstr) prstr(@huhstr)
wend wend

View File

@ -1278,16 +1278,22 @@ while 1
when toupper(parsecmd(cmdptr)) when toupper(parsecmd(cmdptr))
is 'Q' is 'Q'
reboot() reboot()
break
is 'C' is 'C'
catalog(cmdptr) catalog(cmdptr)
break
is 'P' is 'P'
setpfx(cmdptr) setpfx(cmdptr)
break
is 'V' is 'V'
volumes(); volumes()
break
is '-' is '-'
execsys(cmdptr) execsys(cmdptr)
break
is '+' is '+'
execmod(cmdptr) execmod(cmdptr)
break
otherwise otherwise
prstr(@huhstr) prstr(@huhstr)
wend wend

View File

@ -1276,13 +1276,17 @@ while 1
quit quit
is 'C' is 'C'
catalog(cmdptr) catalog(cmdptr)
break
is 'P' is 'P'
setpfx(cmdptr) setpfx(cmdptr)
break
is 'V' is 'V'
volumes volumes
break
is '+' is '+'
execmod(cmdptr) execmod(cmdptr)
write(refcons, @textmode, 3) write(refcons, @textmode, 3)
break
otherwise otherwise
prstr(@huhstr) prstr(@huhstr)
wend wend