Use GS_PASS_ARGUMENTS

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6844 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2000-06-29 14:25:07 +00:00
parent 44d29da832
commit 136417828c
8 changed files with 49 additions and 8 deletions

View file

@ -227,11 +227,16 @@ init(int argc, char** argv)
}
int
main(int argc, char** argv)
main(int argc, char** argv, char **env)
{
NSAutoreleasePool *pool = [NSAutoreleasePool new];
ExampleServices *server = [ExampleServices new];
NSAutoreleasePool *pool;
ExampleServices *server;
#ifdef GS_PASS_ARGUMENTS
[NSProcessInfo initializeWithArguments:argv count:argc environment:env];
#endif
pool = [NSAutoreleasePool new];
server = [ExampleServices new];
init(argc, argv);
// [NSObject enableDoubleReleaseCheck: YES];

View file

@ -1030,10 +1030,14 @@ init(int argc, char** argv)
int
main(int argc, char** argv)
main(int argc, char** argv, char **env)
{
NSAutoreleasePool *pool = [NSAutoreleasePool new];
NSAutoreleasePool *pool;
#ifdef GS_PASS_ARGUMENTS
[NSProcessInfo initializeWithArguments:argv count:argc environment:env];
#endif
pool = [NSAutoreleasePool new];
init(argc, argv);
// [NSObject enableDoubleReleaseCheck: YES];

View file

@ -55,7 +55,7 @@ static Class dClass;
static Class sClass;
int
main(int argc, char** argv)
main(int argc, char** argv, char **env_c)
{
NSAutoreleasePool *pool;
NSData *data;
@ -74,6 +74,9 @@ main(int argc, char** argv)
NSMutableDictionary *fullMap;
NSDictionary *oldMap;
#ifdef GS_PASS_ARGUMENTS
[NSProcessInfo initializeWithArguments:argv count:argc environment:env_c];
#endif
pool = [NSAutoreleasePool new];
aClass = [NSArray class];

View file

@ -30,7 +30,7 @@
int
main(int argc, char** argv)
main(int argc, char** argv, char **env)
{
NSAutoreleasePool *pool;
NSProcessInfo *proc;
@ -38,6 +38,9 @@ main(int argc, char** argv)
unsigned index;
// [NSObject enableDoubleReleaseCheck: YES];
#ifdef GS_PASS_ARGUMENTS
[NSProcessInfo initializeWithArguments:argv count:argc environment:env];
#endif
pool = [NSAutoreleasePool new];