udbListReferenceFilter |
Filter the specified list of references, using the reference kinds and/or the entity kinds specified, and return a new allocated array of references. If unique is specified, the newrefs array will only contain the first reference for each unique entity.
Call udbListReferenceFree() to free this list.
#include “udb/udb.h” void udbListReferenceFilter(UdbReference *refs, UdbKindList refkinds, UdbKindList entkinds, int unique, UdbReference **newrefs, int *items)
There are no function return values.
This example filters an existing list of reference to include only those references where there is an active callby or useby reference, or where the entity is declared or defined.
udbListReferenceFilter(refs, udbKindParse("callby ~inactive,declarein,definein, useby ~inactive"), NULL, 0, &xrefs, &items);
Scientific Toolworks, Inc. http://www.scitools.com |