Move var decl to beggining of block

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@19061 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2004-04-08 23:00:43 +00:00
parent b5d99bc98b
commit b0731cae60

View file

@ -636,6 +636,10 @@ main(int argc, char **argv, char **env)
NSAutoreleasePool *outer = nil;
NSAutoreleasePool *pool = nil;
#endif
NSString *arg;
NSString *opt;
NSSet *argSet;
NSArray *argsGiven;
/*
Overall process in this file is as follows:
@ -786,10 +790,8 @@ main(int argc, char **argv, char **env)
@"for display in HTML frames",
@"MakeFrames",
nil];
NSString *arg;
NSString *opt;
NSSet *argSet = [NSSet setWithArray: [argsRecognized allKeys]];
NSArray *argsGiven = [[NSProcessInfo processInfo] arguments];
argSet = [NSSet setWithArray: [argsRecognized allKeys]];
argsGiven = [[NSProcessInfo processInfo] arguments];
for (i = 0; i < [argsGiven count]; i++)
{
@ -1849,12 +1851,12 @@ main(int argc, char **argv, char **env)
}
if (i == [gFiles count])
{
NSMutableString *prjFileContents =
[NSMutableString stringWithCapacity: cap];
NSLog(@"\n\nNOTE: Generating a simple introductory page for your"
@" project.\nTo replace this with a custom version, edit the gsdoc file \n"
@"named %@ in the documentation output directory.\n"
@"Then include this file in the arguments to autogsdoc.\n\n", prjFile);
NSMutableString *prjFileContents =
[NSMutableString stringWithCapacity: cap];
[prjFileContents setString: @"<?xml version=\"1.0\"?>\n"
@"<!DOCTYPE gsdoc PUBLIC \"-//GNUstep//DTD gsdoc 1.0.1//EN\" \"http://www.gnustep.org/gsdoc-1_0_1.xml\">\n"
@"<gsdoc base=\"[prjName]\">\n"