summaryrefslogtreecommitdiff
path: root/src/Scilab2C
diff options
context:
space:
mode:
authorjofret2009-02-27 09:08:58 +0000
committerjofret2009-02-27 09:08:58 +0000
commitd1cd335c163124e6eada5e0d5ef3219e190bf017 (patch)
tree094b47deaff6116750f00781c6fcb0d1918d7eac /src/Scilab2C
parent24dcc2e6044138042251ad9ca6682b7026497243 (diff)
downloadscilab2c-d1cd335c163124e6eada5e0d5ef3219e190bf017.tar.gz
scilab2c-d1cd335c163124e6eada5e0d5ef3219e190bf017.tar.bz2
scilab2c-d1cd335c163124e6eada5e0d5ef3219e190bf017.zip
Remove line splitting using standard functions
Diffstat (limited to 'src/Scilab2C')
-rw-r--r--src/Scilab2C/Scilab2C/ASTManagement/SciFile2ASTFile.sci7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Scilab2C/Scilab2C/ASTManagement/SciFile2ASTFile.sci b/src/Scilab2C/Scilab2C/ASTManagement/SciFile2ASTFile.sci
index 943b8e58..40bf7605 100644
--- a/src/Scilab2C/Scilab2C/ASTManagement/SciFile2ASTFile.sci
+++ b/src/Scilab2C/Scilab2C/ASTManagement/SciFile2ASTFile.sci
@@ -2,7 +2,7 @@ function SciFile2ASTFile(SciFile,ASTFile);
// function SciFile2ASTFile(SciFile,ASTFile);
// -----------------------------------------------------------------
// This function makes use of the macr2tree function to generate
-// the ASTFile containing the AST (Abstract Syntactic Tree) of the
+// the ASTFile containing the AST (Abstract Syntactic Tree) of the
// input Scilab function (SciFile).
//
// Input data:
@@ -28,6 +28,9 @@ AST=eval('macr2tree('+ScilabFunName+')');
if ASTierr == 0
mdelete(ASTFile);
end
-write(ASTFile,string(AST));
+
+fd = mopen(ASTFile, "wt");
+mputl(string(AST), fd);
+mclose(fd);
endfunction