Re: pfdCleanTree question

New Message Reply Date view Thread view Subject view Author view

AnitaKishore (kishore++at++electrogig.com)
Mon, 11 Mar 1996 11:11:13 -0800


On Mar 11, 8:58am, Angus Henderson wrote:
> Subject: Re: pfdCleanTree question
> I like to use pfdCleanTree, but for about one node in a hundred in my
database
> I would like to have a parent with one child which has a name that I search
for
> and do things too.
>
> At the moment I have to have a group with a name to which I attach two
objects,
> or else I call the group "Sea" and the child object "sea" and hope that one
of
> the names make it through the cleanup.
>
> Perhaps there's a more elegant solution.
>
> ANgus
>-- End of excerpt from Angus Henderson

The man page of pfdCleanTree says that you can send a pointer to your own
function which decides if the current node should be cleaned up or not.

I have tried using this feature of pfdCleanTree, but for some reason,
my function which is passed a pfuTraverser type from pfdCleanTree, doesn't
contain a valid "node" field of pfuTraverser. It is always NULL. Hence I
can't do any comparisons for node cleanup. Looking at the code of
pfdCleanTree it looks like the traverser is not being properly initialized
to contain a valid "node" field before being passed to the user supplied
function. I guess this is what is causing the problem.

Since this is an unsupported tool, we need to correct it ourselves.

Good luck

-anita


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:32 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.