зеркало из https://github.com/mozilla/pjs.git
Adding code to make stdout and stderr unbuffered, depending on the MOZ_UNBUFFERED_STDIO environment variable. This is needed for tests to run correctly.
This commit is contained in:
Родитель
053dc8ead0
Коммит
09b1c9dc04
|
@ -1,6 +0,0 @@
|
|||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
int main(int argc, const char *argv[])
|
||||
{
|
||||
return NSApplicationMain(argc, argv);
|
||||
}
|
|
@ -1,6 +1,17 @@
|
|||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
static void SetupRuntimeOptions(int argc, const char *argv[])
|
||||
{
|
||||
if (getenv("MOZ_UNBUFFERED_STDIO")) {
|
||||
printf("stdout and stderr unbuffered\n");
|
||||
setbuf(stdout, 0);
|
||||
setbuf(stderr, 0);
|
||||
}
|
||||
}
|
||||
|
||||
int main(int argc, const char *argv[])
|
||||
{
|
||||
SetupRuntimeOptions(argc, argv);
|
||||
|
||||
return NSApplicationMain(argc, argv);
|
||||
}
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
int main(int argc, const char *argv[])
|
||||
{
|
||||
return NSApplicationMain(argc, argv);
|
||||
}
|
|
@ -1,6 +1,17 @@
|
|||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
static void SetupRuntimeOptions(int argc, const char *argv[])
|
||||
{
|
||||
if (getenv("MOZ_UNBUFFERED_STDIO")) {
|
||||
printf("stdout and stderr unbuffered\n");
|
||||
setbuf(stdout, 0);
|
||||
setbuf(stderr, 0);
|
||||
}
|
||||
}
|
||||
|
||||
int main(int argc, const char *argv[])
|
||||
{
|
||||
SetupRuntimeOptions(argc, argv);
|
||||
|
||||
return NSApplicationMain(argc, argv);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче