diff options
author | jofret | 2009-02-27 09:08:58 +0000 |
---|---|---|
committer | jofret | 2009-02-27 09:08:58 +0000 |
commit | d1cd335c163124e6eada5e0d5ef3219e190bf017 (patch) | |
tree | 094b47deaff6116750f00781c6fcb0d1918d7eac /src/Scilab2C | |
parent | 24dcc2e6044138042251ad9ca6682b7026497243 (diff) | |
download | scilab2c-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.sci | 7 |
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 |