Support global indexing.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@11999 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-01-05 10:11:34 +00:00
parent 70688d1483
commit 59de9afc02
2 changed files with 11 additions and 4 deletions

View file

@ -758,7 +758,11 @@ static NSMutableSet *textNodes = nil;
NSString *type = [prop objectForKey: @"type"];
NSDictionary *dict = [localRefs refs];
if (projectRefs != nil && [scope isEqual: @"project"] == YES)
if (globalRefs != nil && [scope isEqual: @"global"] == YES)
{
dict = [globalRefs refs];
}
else if (projectRefs != nil && [scope isEqual: @"project"] == YES)
{
dict = [projectRefs refs];
}

View file

@ -487,8 +487,11 @@
<!-- Index ... generates an index of the specified type of elements.
'scope' determines whether the index is generated for the current file
or for the whole of the current project ... if the document is
processed in a standalone manner, the scope if always project.
or for the whole of the current project, or for everything the software
can find (global) ... if the document is processed in a standalone manner,
the scope if always file. For method or ivariable indexing, if the index
is inside a class, protocol, or category, only indexes for that unit
should be generated.
'type' determines the type of entry listed in the index. The 'title'
type really only makes sense for a project scope index as it produces
a list of the files in the project (by title).
@ -496,7 +499,7 @@
<!ELEMENT index EMPTY>
<!ATTLIST index
type (class | protocol | method | ivariable | function | type | macro | variable | constant | label | title) "label"
scope (file | project) "file"
scope (file | project | global) "file"
>