OSSP CVS Repository

ossp - Difference in ossp-pkg/js/src/js.c versions 1.3 and 1.4
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/js/src/js.c 1.3 -> 1.4

--- js.c 2006/07/24 18:38:26     1.3
+++ js.c 2006/07/30 08:00:45     1.4
@@ -206,7 +206,11 @@
     }
     JS_SetThreadStackLimit(cx, stackLimit);
 
+#if defined(OSSP) && defined(XP_WIN)
+    if (filename) {
+#else
     if (!isatty(fileno(file))) {
+#endif
         /*
          * It's not interactive - just execute it.
          *
@@ -2492,6 +2496,11 @@
     setbuf(stderr,0);
 #endif
 
+#if defined(OSSP) && defined(XP_WIN)
+    setvbuf(stderr, 0, _IONBF, 0);
+    setvbuf(stdout, 0, _IONBF, 0);
+#endif
+
     gErrFile = stderr;
     gOutFile = stdout;
 

CVSTrac 2.0.1