/[jscoverage]/trunk/js/shell/js.cpp
ViewVC logotype

Diff of /trunk/js/shell/js.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 507 by siliconforks, Sun Jan 10 07:23:34 2010 UTC revision 535 by siliconforks, Fri Apr 2 16:18:55 2010 UTC
# Line 379  Line 379 
379      JS_SetOperationCallback(cx, ShellOperationCallback);      JS_SetOperationCallback(cx, ShellOperationCallback);
380  }  }
381    
382    #ifdef WINCE
383    int errno;
384    #endif
385    
386  static void  static void
387  Process(JSContext *cx, JSObject *obj, char *filename, JSBool forceTTY)  Process(JSContext *cx, JSObject *obj, char *filename, JSBool forceTTY)
388  {  {
# Line 409  Line 413 
413    
414  #ifndef WINCE  #ifndef WINCE
415      /* windows mobile (and possibly other os's) does not have a TTY */      /* windows mobile (and possibly other os's) does not have a TTY */
416      if (!forceTTY && !isatty(fileno(file))) {      if (!forceTTY && !isatty(fileno(file)))
417    #endif
418        {
419          /*          /*
420           * It's not interactive - just execute it.           * It's not interactive - just execute it.
421           *           *
# Line 441  Line 447 
447              fclose(file);              fclose(file);
448          return;          return;
449      }      }
 #endif /* WINCE */  
450    
451      /* It's an interactive filehandle; drop into read-eval-print loop. */      /* It's an interactive filehandle; drop into read-eval-print loop. */
452      lineno = 1;      lineno = 1;

Legend:
Removed from v.507  
changed lines
  Added in v.535

  ViewVC Help
Powered by ViewVC 1.1.24