* Bug 14425 fixed - xpause() set obsolete, merged in sleep(). sleep(,'s') implemented
[scilab.git] / scilab / modules / m2sci / macros / sci_files / sci_pause.sci
index ed6f9f9..49793bf 100644 (file)
 // For more information, see the COPYING file which you should have received
 // along with this program.
 
-function [tree]=sci_pause(tree)
+function [tree] = sci_pause(tree)
     // M2SCI function
     // Conversion function for Matlab pause
     // Input: tree = Matlab funcall tree
     // Ouput: tree = Scilab equivalent for tree
 
     if rhs<1 then
-        tree.name="halt"
+        tree.name = "halt"
     else
         n = getrhs(tree)
         if n.vtype==String then // pause on/off
             no_equiv(expression2code(tree));
         else
-            tree.rhs=Rhs_tlist(Operation("*",list(Cste(1000),n),list()))
-            tree.name="xpause"
+            tree.name = "sleep"
         end
     end
 
 endfunction
+