Minor autogsdoc improvements

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13657 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2002-05-15 11:29:52 +00:00
parent 94c89b5b31
commit 3bfa2956fd
3 changed files with 22 additions and 4 deletions

View file

@ -3,6 +3,10 @@
* Source/Unicode.m: GSFromUnicode(), GSToUnicode(), bugfix - ensure * Source/Unicode.m: GSFromUnicode(), GSToUnicode(), bugfix - ensure
that returned memory is allocated from specified zone, rather than that returned memory is allocated from specified zone, rather than
returning internal buffer. returning internal buffer.
* Tools/AGSIndex.m: When a string missmatch is found when merging,
update the output to the new string as well as warning.
* Tools/autogsdoc.m: Don't automatically include refs to installed
copies of the project being documented.
2002-05-13 Richard Frith-Macdonald <rfm@gnu.org> 2002-05-13 Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -89,6 +89,7 @@ mergeDictionaries(NSMutableDictionary *dst, NSDictionary *src, BOOL override)
{ {
NSLog(@"String missmatch in merge for %@. S:%@, D:%@", NSLog(@"String missmatch in merge for %@. S:%@, D:%@",
stack, s, d); stack, s, d);
[dst setObject: s forKey: k];
} }
} }
} }

View file

@ -237,7 +237,11 @@
the cross reference ... if it is an empty string, the path to use the cross reference ... if it is an empty string, the path to use
is assumed to be a file in the same directory where the igsdoc is assumed to be a file in the same directory where the igsdoc
file was found, otherwise it is used as a prefix to the name in file was found, otherwise it is used as a prefix to the name in
the index. the index.<br />
NB. Local projects with the same name as the project currently
being documented will <em>not</em> be included by this mechanism.
If you wish to include such projects, you must do so explicitly
using <em>-Projects</em>
</item> </item>
<item><strong>Project</strong> <item><strong>Project</strong>
May be used to specify the name of this project ... determines the May be used to specify the name of this project ... determines the
@ -280,7 +284,11 @@
the cross reference ... if it is an empty string, the path to use the cross reference ... if it is an empty string, the path to use
is assumed to be a file in the same directory where the igsdoc is assumed to be a file in the same directory where the igsdoc
file was found, otherwise it is used as a prefix to the name in file was found, otherwise it is used as a prefix to the name in
the index. the index.<br />
NB. System projects with the same name as the project currently
being documented will <em>not</em> be included by this mechanism.
If you wish to include such projects, you must do so explicitly
using <em>-Projects</em>
</item> </item>
<item><strong>Up</strong> <item><strong>Up</strong>
A string used to supply the name to be used in the 'up' link from A string used to supply the name to be used in the 'up' link from
@ -357,6 +365,7 @@ main(int argc, char **argv, char **env)
NSString *declared; NSString *declared;
NSString *headerDirectory; NSString *headerDirectory;
NSString *project; NSString *project;
NSString *refsName;
NSDictionary *originalIndex; NSDictionary *originalIndex;
AGSIndex *projectRefs; AGSIndex *projectRefs;
AGSIndex *globalRefs; AGSIndex *globalRefs;
@ -417,6 +426,7 @@ main(int argc, char **argv, char **env)
declared = [defs stringForKey: @"Declared"]; declared = [defs stringForKey: @"Declared"];
project = [defs stringForKey: @"Project"]; project = [defs stringForKey: @"Project"];
refsName = [[project stringByAppendingPathExtension: @"igsdoc"] copy];
headerDirectory = [defs stringForKey: @"HeaderDirectory"]; headerDirectory = [defs stringForKey: @"HeaderDirectory"];
if (headerDirectory == nil) if (headerDirectory == nil)
@ -924,7 +934,8 @@ main(int argc, char **argv, char **env)
{ {
NSString *ext = [file pathExtension]; NSString *ext = [file pathExtension];
if ([ext isEqualToString: @"igsdoc"] == YES) if ([ext isEqualToString: @"igsdoc"] == YES
&& [[file lastPathComponent] isEqual: refsName] == NO)
{ {
NSString *key; NSString *key;
NSString *val; NSString *val;
@ -962,8 +973,10 @@ main(int argc, char **argv, char **env)
while ((file = [enumerator nextObject]) != nil) while ((file = [enumerator nextObject]) != nil)
{ {
NSString *ext = [file pathExtension]; NSString *ext = [file pathExtension];
if ([ext isEqualToString: @"igsdoc"] == YES) if ([ext isEqualToString: @"igsdoc"] == YES
&& [[file lastPathComponent] isEqual: refsName] == NO)
{ {
NSString *key; NSString *key;
NSString *val; NSString *val;