Glib - more effective code - GNode



Hi

in file gnode.c, function g_node_first_sibling():

...
while (node->prev)
  node = node->prev
return node
...


More effective this:????
...
g_return_val_if_fail(node->parent != NULL, node);
node = node->parent->children;
return node;
...

bye Michal Burda

Objevujte Internet s http://www.centrum.cz
Založte si svuj mail na http://mail.centrum.cz




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