C API Functions |
Lookup the specified entity by name, based on the source file, line, and column that an entity reference occurs at.
#include "udb/udb.h" UdbEntity udbLookupEntityByReference(UdbEntity file, char *name, int line, int col, int *matchline)
UdbEntity file
File entity.
char *name
Name of entity to lookup.
int line
Line reference occurs on
int col
Column reference occurs on
int *matchline
If not NULL, return matched line, or 0
UdbEntity
Return the referenced entity.
refentity = udbLookupEntityByReference( udbLookupFile(filename), entityname, refline, refcol, NULL);
udbLookupReferenceExists to check if an entity has any references of the specified kinds.
Scientific Toolworks, Inc. http://www.scitools.com Voice: (802) 763-2995 Fax: (802) 763-3066 support@scitools.com sales@scitools.com |