Re: [Vala] Some problems with migration to Vala 0.3.1



On Thu, April 24, 2008 20:40, gege2061 wrote:
Second, with length function :
--------------------------------------------------------------------------------
Xml.NodeSet* node = ...;

nodes->length ();
--------------------------------------------------------------------------------

is transformed to c code :
--------------------------------------------------------------------------------
xmlXPathNodeSetGetLength (((gpointer) nodes));
--------------------------------------------------------------------------------

but xmlXPathNodeSetGetLength is macro extend to :
--------------------------------------------------------------------------------
 ((ns) ? (ns)->nodeNr : 0)
--------------------------------------------------------------------------------

Makes an error :
--------------------------------------------------------------------------------
warning: dereferencing 'void *' pointer
error: request for member 'nodeNr' in something not a structure or union
--------------------------------------------------------------------------------

Please file a bug about this issue.

Juerg




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]