Glib - more effective code - GNode
- From: "Michal Burda" <michal burda centrum cz>
- To: "GTK forum (gtk-list)" <gtk-list gnome org>
- Subject: Glib - more effective code - GNode
- Date: Wed, 20 Sep 2000 20:32:50 +0200
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]