On 03 Jul 2003, Philippe Faes wrote:
> The file properties.h contains this definition:
>
> typedef void (*PropertyType_Load)(Property *prop, AttributeNode attr,
> DataNode data);
>
> However, it seems that the load funtions don't use "attr", but only
> "data". I didn't check the load funtions of ALL properties, obviously...
The pointarrayprop load function uses attr.
find . -name \*.c | xargs grep --after-context=6 prop_load\( | less
is your friend:)
> Why are there two Nodes being passed to the load functions? Is this for
> historical reasons only? Is it safe for me to use only "data", and
> ignore "attr"?
It's XML. Remember it's <tag attr="value">data</tag>. Functions must have
access to both, it's just that most don't use any attributes.
-Lars
--
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| HĂ„rdgrim of Numenor
"I do not agree with a word that you say, but I |----------------------------
will defend to the death your right to say it." | Where are we going, and
--Evelyn Beatrice Hall paraphrasing Voltaire | what's with the handbasket?