From c849886ef096a445a65041c0e54ab02728b7b512 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Sat, 12 May 2012 03:11:52 +0000 Subject: * interp/c-util.boot: Miscellaneous cleanup. * interp/compiler.boot: Likewise. * interp/database.boot: Likewise. * interp/debug.lisp: Likewise. * interp/format.boot: Likewise. * interp/g-timer.boot: Likewise. * interp/ht-util.boot: Likewise. * interp/i-syscmd.boot: Likewise. * interp/macros.lisp: Likewise. * interp/monitor.lisp: Likewise. * interp/msgdb.boot: Likewise. * interp/newfort.boot: Likewise. * interp/nlib.lisp: Likewise. * interp/parsing.lisp: Likewise. * interp/pf2atree.boot: Likewise. * interp/pf2sex.boot: Likewise. * interp/posit.boot: Likewise. * interp/sfsfun.boot: Likewise. * interp/util.lisp: Likewise. --- src/interp/i-syscmd.boot | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/interp/i-syscmd.boot') diff --git a/src/interp/i-syscmd.boot b/src/interp/i-syscmd.boot index 611a3db6..63cda3aa 100644 --- a/src/interp/i-syscmd.boot +++ b/src/interp/i-syscmd.boot @@ -2772,7 +2772,7 @@ doSystemCommand string == handleNoParseCommands(unab, string) == string := stripSpaces string - spaceIndex := SEARCH('" ", string) + spaceIndex := findChar(char " ", string) unab is "lisp" => if (null spaceIndex) then sayKeyedMsg("S2IV0005", nil) @@ -2805,9 +2805,9 @@ handleNoParseCommands(unab, string) == npboot str == sex := string2BootTree str - FORMAT(true, '"~&~S~%", sex) + formatToStdout('"~&~S~%", sex) $ans := eval sex - FORMAT(true, '"~&Value = ~S~%", $ans) + formatToStdout('"~&Value = ~S~%", $ans) stripLisp str == found := false @@ -2821,16 +2821,16 @@ stripLisp str == nplisp str == $ans := eval READ_-FROM_-STRING str - FORMAT(true, '"~&Value = ~S~%", $ans) + formatToStdout('"~&Value = ~S~%", $ans) npsystem(unab, str) == - spaceIndex := SEARCH('" ", str) + spaceIndex := findChar(char " ", str) null spaceIndex => sayKeyedMsg('"S2IZ0080", [str]) sysPart := subSequence(str, 0, spaceIndex) -- The following is a hack required by the fact that unAbbreviateKeyword -- returns the word "system" for unknown words - null SEARCH(sysPart, STRING unab) => + null findString(sysPart, STRING unab) => sayKeyedMsg('"S2IZ0080", [sysPart]) command := subSequence(str, spaceIndex+1) runCommand command @@ -2902,7 +2902,7 @@ handleParsedSystemCommands(unabr, optionList) == systemCommand parcmd parseSystemCmd opt == - spaceIndex := SEARCH('" ", opt) + spaceIndex := findChar(char " ", opt) spaceIndex => commandString := stripSpaces subSequence(opt, 0, spaceIndex) argString := stripSpaces subSequence(opt, spaceIndex) @@ -2923,7 +2923,7 @@ handleTokensizeSystemCommands(unabr, optionList) == parcmd => tokenSystemCommand(unabr, parcmd) getFirstWord string == - spaceIndex := SEARCH('" ", string) + spaceIndex := findChar(char " ", string) null spaceIndex => string stripSpaces subSequence(string, 0, spaceIndex) -- cgit v1.2.3