From 8977deb7e5b566b2609cb994838d5398b94a91c7 Mon Sep 17 00:00:00 2001 From: fedor Date: Thu, 8 Apr 2004 23:00:43 +0000 Subject: [PATCH] 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 --- Tools/autogsdoc.m | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Tools/autogsdoc.m b/Tools/autogsdoc.m index 36f5515c7..7b7b6eb96 100644 --- a/Tools/autogsdoc.m +++ b/Tools/autogsdoc.m @@ -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: @"\n" @"\n" @"\n"