mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
# vim: se ft=diff :
Bug 519843 - "JS shell on WinCE should run as if it NEVER has a tty, not as if it ALWAYS does" [r=mrbkap]
This commit is contained in:
parent
75e7313aa4
commit
d54cb40dda
@ -382,6 +382,10 @@ SetContextOptions(JSContext *cx)
|
||||
JS_SetOperationCallback(cx, ShellOperationCallback);
|
||||
}
|
||||
|
||||
#ifdef WINCE
|
||||
int errno;
|
||||
#endif
|
||||
|
||||
static void
|
||||
Process(JSContext *cx, JSObject *obj, char *filename, JSBool forceTTY)
|
||||
{
|
||||
@ -412,7 +416,9 @@ 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))) {
|
||||
if (!forceTTY && !isatty(fileno(file)))
|
||||
#endif
|
||||
{
|
||||
/*
|
||||
* It's not interactive - just execute it.
|
||||
*
|
||||
@ -444,7 +450,6 @@ 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