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? _______________________________________________ Dia-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://www.lysator.liu.se/~alla/dia/faq.html Main page at http://www.lysator.liu.se/~alla/dia
