Jim Helman (jimh++at++surreal)
Wed, 19 Jan 94 12:01:45 -0800
If you want a more general search, examine the code in
1.0/1.1: sample/pguide/trav.c or 1.2: libpfutil/trav.c.
trav.c provides a general traversal that can be adapted to
any purpose.
The routine in the mail message has two problems.
1) It only returns the first geode it encounters.
2) It ANDs a PFTYPE_ token. To test for
is-a-subclass, you want to AND with PFCLASS_ tokens.
PFTYPE_ tokens should only be used to test for
equality.
rgds,
-jim helman
jimh++at++surreal.asd.sgi.com
415/390-1151
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:09 PDT