aboutsummaryrefslogtreecommitdiff
path: root/src/algebra
diff options
context:
space:
mode:
Diffstat (limited to 'src/algebra')
-rw-r--r--src/algebra/files.spad.pamphlet9
-rw-r--r--src/algebra/fortran.spad.pamphlet7
-rw-r--r--src/algebra/mathml.spad.pamphlet4
3 files changed, 9 insertions, 11 deletions
diff --git a/src/algebra/files.spad.pamphlet b/src/algebra/files.spad.pamphlet
index 98543b32..efc90616 100644
--- a/src/algebra/files.spad.pamphlet
+++ b/src/algebra/files.spad.pamphlet
@@ -185,7 +185,7 @@ File(S:SetCategory): FileCategory(FileName, S) with
f.fileIOmode ~= "output" =>
error "File not in write state"
z := PRINT_-FULL(x, f.fileState)$Lisp
- TERPRI(f.fileState)$Lisp
+ %writeNewline(f.fileState)$Foreign(Builtin)
x
@
@@ -260,16 +260,15 @@ TextFile: Cat == Def where
"failed"
write!(f, x) ==
f.fileIOmode ~= "output" => error "File not in write state"
- PRINTEXP(x, f.fileState)$Lisp
+ %writeString(x, f.fileState)$Foreign(Builtin)
x
writeLine! f ==
f.fileIOmode ~= "output" => error "File not in write state"
- TERPRI(f.fileState)$Lisp
+ %writeNewline(f.fileState)$Foreign(Builtin)
""
writeLine!(f, x) ==
f.fileIOmode ~= "output" => error "File not in write state"
- PRINTEXP(x, f.fileState)$Lisp
- TERPRI(f.fileState)$Lisp
+ %writeLine(x,f.fileState)$Foreign(Builtin)
x
endOfFile? f ==
f.fileIOmode = "output" => false
diff --git a/src/algebra/fortran.spad.pamphlet b/src/algebra/fortran.spad.pamphlet
index 59de4cb1..050960e0 100644
--- a/src/algebra/fortran.spad.pamphlet
+++ b/src/algebra/fortran.spad.pamphlet
@@ -1342,14 +1342,13 @@ FortranTemplate() : specification == implementation where
Rep := TextFile
fortranLiteralLine(s:String):Void ==
- PRINTEXP(s,_$fortranOutputStream$Lisp)$Lisp
- TERPRI(_$fortranOutputStream$Lisp)$Lisp
+ %writeLine(s,_$fortranOutputStream$Lisp)$Foreign(Builtin)
fortranLiteral(s:String):Void ==
- PRINTEXP(s,_$fortranOutputStream$Lisp)$Lisp
+ %writeString(s,_$fortranOutputStream$Lisp)$Foreign(Builtin)
fortranCarriageReturn():Void ==
- TERPRI(_$fortranOutputStream$Lisp)$Lisp
+ %writeNewline(_$fortranOutputStream$Lisp)$Foreign(Builtin)
writePassiveLine!(line:String):Void ==
-- We might want to be a bit clever here and look for new SubPrograms etc.
diff --git a/src/algebra/mathml.spad.pamphlet b/src/algebra/mathml.spad.pamphlet
index 086d0d0f..b40ed836 100644
--- a/src/algebra/mathml.spad.pamphlet
+++ b/src/algebra/mathml.spad.pamphlet
@@ -258,8 +258,8 @@ mathmlFormat expr ==
formatFn := getFunctionFromDomain("coerce",mml,[$OutputForm])
displayFn := getFunctionFromDomain("display",mml,[mmlrep])
SPADCALL(SPADCALL(expr,formatFn),displayFn)
- TERPRI $mathmlOutputStream
- FORCE_-OUTPUT $mathmlOutputStream
+ writeNewline $mathmlOutputStream
+ flushOutput $mathmlOutputStream
NIL
\end{verbatim}