summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjofret2009-02-27 09:08:58 +0000
committerjofret2009-02-27 09:08:58 +0000
commit0266b926b0315cd18e0bf7c7e2732e9a46fd4603 (patch)
treeaa355dca33251c5f0b1b6748fc0060791d672df5
parent6d25969ad410725b9fadc3496c92d980762604bb (diff)
downloadscilab2c-0266b926b0315cd18e0bf7c7e2732e9a46fd4603.tar.gz
scilab2c-0266b926b0315cd18e0bf7c7e2732e9a46fd4603.tar.bz2
scilab2c-0266b926b0315cd18e0bf7c7e2732e9a46fd4603.zip
Remove line splitting using standard functions
-rw-r--r--scilab2c/src/Scilab2C/Scilab2C/ASTManagement/SciFile2ASTFile.sci7
1 files changed, 5 insertions, 2 deletions
diff --git a/scilab2c/src/Scilab2C/Scilab2C/ASTManagement/SciFile2ASTFile.sci b/scilab2c/src/Scilab2C/Scilab2C/ASTManagement/SciFile2ASTFile.sci
index 943b8e58..40bf7605 100644
--- a/scilab2c/src/Scilab2C/Scilab2C/ASTManagement/SciFile2ASTFile.sci
+++ b/scilab2c/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