Commit 8b853a62 authored by Tim Janik's avatar Tim Janik Committed by Tim Janik

change order of gpointer data; field in struct _GNode to be partly binary

Mon Aug  3 16:02:26 1998  Tim Janik  <timj@gtk.org>

        * glib.h:
        * gnode.c: change order of gpointer data; field in struct _GNode to
        be partly binary compatible with GList and GSList.
parent de89a5b9
Mon Aug 3 16:02:26 1998 Tim Janik <timj@gtk.org>
* glib.h:
* gnode.c: change order of gpointer data; field in struct _GNode to
be partly binary compatible with GList and GSList.
1998-08-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* garray.c (g_ptr_array_remove_index): bugfix: index check for
......
Mon Aug 3 16:02:26 1998 Tim Janik <timj@gtk.org>
* glib.h:
* gnode.c: change order of gpointer data; field in struct _GNode to
be partly binary compatible with GList and GSList.
1998-08-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* garray.c (g_ptr_array_remove_index): bugfix: index check for
......
Mon Aug 3 16:02:26 1998 Tim Janik <timj@gtk.org>
* glib.h:
* gnode.c: change order of gpointer data; field in struct _GNode to
be partly binary compatible with GList and GSList.
1998-08-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* garray.c (g_ptr_array_remove_index): bugfix: index check for
......
Mon Aug 3 16:02:26 1998 Tim Janik <timj@gtk.org>
* glib.h:
* gnode.c: change order of gpointer data; field in struct _GNode to
be partly binary compatible with GList and GSList.
1998-08-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* garray.c (g_ptr_array_remove_index): bugfix: index check for
......
Mon Aug 3 16:02:26 1998 Tim Janik <timj@gtk.org>
* glib.h:
* gnode.c: change order of gpointer data; field in struct _GNode to
be partly binary compatible with GList and GSList.
1998-08-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* garray.c (g_ptr_array_remove_index): bugfix: index check for
......
Mon Aug 3 16:02:26 1998 Tim Janik <timj@gtk.org>
* glib.h:
* gnode.c: change order of gpointer data; field in struct _GNode to
be partly binary compatible with GList and GSList.
1998-08-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* garray.c (g_ptr_array_remove_index): bugfix: index check for
......
Mon Aug 3 16:02:26 1998 Tim Janik <timj@gtk.org>
* glib.h:
* gnode.c: change order of gpointer data; field in struct _GNode to
be partly binary compatible with GList and GSList.
1998-08-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* garray.c (g_ptr_array_remove_index): bugfix: index check for
......
Mon Aug 3 16:02:26 1998 Tim Janik <timj@gtk.org>
* glib.h:
* gnode.c: change order of gpointer data; field in struct _GNode to
be partly binary compatible with GList and GSList.
1998-08-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* garray.c (g_ptr_array_remove_index): bugfix: index check for
......
......@@ -748,12 +748,11 @@ gint g_tree_nnodes (GTree *tree);
*/
struct _GNode
{
GNode *prev;
gpointer data;
GNode *next;
GNode *prev;
GNode *parent;
GNode *children;
gpointer data;
};
#define G_NODE_IS_ROOT(node) (((GNode*) (node))->parent == NULL && \
......
......@@ -748,12 +748,11 @@ gint g_tree_nnodes (GTree *tree);
*/
struct _GNode
{
GNode *prev;
gpointer data;
GNode *next;
GNode *prev;
GNode *parent;
GNode *children;
gpointer data;
};
#define G_NODE_IS_ROOT(node) (((GNode*) (node))->parent == NULL && \
......
......@@ -49,11 +49,11 @@ g_node_new (gpointer data)
else
node = g_chunk_new (GNode, g_tree_node_chunk);
node->prev = NULL;
node->data = data;
node->next = NULL;
node->prev = NULL;
node->parent = NULL;
node->children = NULL;
node->data = data;
return node;
}
......
......@@ -49,11 +49,11 @@ g_node_new (gpointer data)
else
node = g_chunk_new (GNode, g_tree_node_chunk);
node->prev = NULL;
node->data = data;
node->next = NULL;
node->prev = NULL;
node->parent = NULL;
node->children = NULL;
node->data = data;
return node;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment