string tests: PASS 48/18048/1
Clément DAVID [Wed, 6 Apr 2016 10:00:53 +0000 (12:00 +0200)]
Change-Id: Ie3fd738e1730e234fa497b0ce1ad88c6c2630d08

scilab/modules/string/macros/expression2code.sci
scilab/modules/string/macros/tree2code.sci

index 83a6760..0ff6dff 100644 (file)
@@ -28,7 +28,7 @@ function C=expression2code(e)
     prodops=["*","/",".*","./","\",".\","^",".^"] //2
     othops=["==",">=","<=","~=",">","<","~",".''",".''",":"] //3
 
-    C=[]
+    C=""
     select typeof(e)
         // ---------
         // OPERATION
@@ -311,7 +311,7 @@ function C=expression2code(e)
         // ----
     case "list"
         // Recursive extraction
-        C=[]
+        C=""
         for k=1:lstsize(e)
             ind=expression2code(e(k))
             if type(e(k))==15 then // Recursive extraction in recursive extraction
index bf2c938..5381fea 100644 (file)
@@ -33,8 +33,8 @@ function C=tree2code(P,bprettyprintformat)
     C=""
 
     // Function prototype
-    lhsstr=[]
-    rhsstr=[]
+    lhsstr=""
+    rhsstr=""
     if P.name<>"" then // Not a batch file
         for k=1:size(P.outputs)
             lhsstr=[lhsstr,expression2code(P.outputs(k))]