mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backing out bug 519843 due to Ts regression.
This commit is contained in:
commit
a55744b3f0
@ -381,10 +381,6 @@ SetContextOptions(JSContext *cx)
|
||||
JS_SetOperationCallback(cx, ShellOperationCallback);
|
||||
}
|
||||
|
||||
#ifdef WINCE
|
||||
int errno;
|
||||
#endif
|
||||
|
||||
static void
|
||||
Process(JSContext *cx, JSObject *obj, char *filename, JSBool forceTTY)
|
||||
{
|
||||
@ -415,9 +411,7 @@ Process(JSContext *cx, JSObject *obj, char *filename, JSBool forceTTY)
|
||||
|
||||
#ifndef WINCE
|
||||
/* windows mobile (and possibly other os's) does not have a TTY */
|
||||
if (!forceTTY && !isatty(fileno(file)))
|
||||
#endif
|
||||
{
|
||||
if (!forceTTY && !isatty(fileno(file))) {
|
||||
/*
|
||||
* It's not interactive - just execute it.
|
||||
*
|
||||
@ -449,6 +443,7 @@ Process(JSContext *cx, JSObject *obj, char *filename, JSBool forceTTY)
|
||||
fclose(file);
|
||||
return;
|
||||
}
|
||||
#endif /* WINCE */
|
||||
|
||||
/* It's an interactive filehandle; drop into read-eval-print loop. */
|
||||
lineno = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user