diff libinterp/interpfcn/sysdep.cc @ 15423:53d073233fa4

call more built-in functions directly * __init_gnuplot__.cc (gnuplot_graphics_toolkit::send_quit): Call built-in functions directly. * graphics.cc (gh_manager::do_process_events): Likewise. * sysdep.cc (Fkbhit, Fpause, Fsleep, Fusleep): Likewise.
author John W. Eaton <jwe@octave.org>
date Wed, 19 Sep 2012 15:34:15 -0400
parents 2fc554ffbc28
children d910b9211cca
line wrap: on
line diff
--- a/libinterp/interpfcn/sysdep.cc
+++ b/libinterp/interpfcn/sysdep.cc
@@ -69,6 +69,7 @@
 #include "quit.h"
 
 #include "Cell.h"
+#include "builtins.h"
 #include "defun.h"
 #include "error.h"
 #include "input.h"
@@ -645,7 +646,7 @@
 
   if (interactive || forced_interactive)
     {
-      feval ("drawnow");
+      Fdrawnow ();
 
       int c = octave_kbhit (args.length () == 0);
 
@@ -697,7 +698,7 @@
         {
           if (! xisnan (dval))
             {
-              feval ("drawnow");
+              Fdrawnow ();
 
               if (xisinf (dval))
                 {
@@ -713,7 +714,7 @@
     }
   else
     {
-      feval ("drawnow");
+      Fdrawnow ();
       flush_octave_stdout ();
       octave_kbhit ();
     }
@@ -746,7 +747,7 @@
             warning ("sleep: NaN is an invalid delay");
           else
             {
-              feval ("drawnow");
+              Fdrawnow ();
               octave_sleep (dval);
             }
         }
@@ -786,7 +787,7 @@
             warning ("usleep: NaN is an invalid delay");
           else
             {
-              feval ("drawnow");
+              Fdrawnow ();
 
               int delay = NINT (dval);