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.
This commit is contained in:
Tim Janik
1998-08-03 14:06:18 +00:00
committed by Tim Janik
parent de89a5b945
commit 8b853a62c5
12 changed files with 56 additions and 10 deletions

View File

@@ -1,3 +1,9 @@
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> 1998-08-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* garray.c (g_ptr_array_remove_index): bugfix: index check for * garray.c (g_ptr_array_remove_index): bugfix: index check for

View File

@@ -1,3 +1,9 @@
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> 1998-08-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* garray.c (g_ptr_array_remove_index): bugfix: index check for * garray.c (g_ptr_array_remove_index): bugfix: index check for

View File

@@ -1,3 +1,9 @@
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> 1998-08-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* garray.c (g_ptr_array_remove_index): bugfix: index check for * garray.c (g_ptr_array_remove_index): bugfix: index check for

View File

@@ -1,3 +1,9 @@
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> 1998-08-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* garray.c (g_ptr_array_remove_index): bugfix: index check for * garray.c (g_ptr_array_remove_index): bugfix: index check for

View File

@@ -1,3 +1,9 @@
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> 1998-08-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* garray.c (g_ptr_array_remove_index): bugfix: index check for * garray.c (g_ptr_array_remove_index): bugfix: index check for

View File

@@ -1,3 +1,9 @@
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> 1998-08-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* garray.c (g_ptr_array_remove_index): bugfix: index check for * garray.c (g_ptr_array_remove_index): bugfix: index check for

View File

@@ -1,3 +1,9 @@
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> 1998-08-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* garray.c (g_ptr_array_remove_index): bugfix: index check for * garray.c (g_ptr_array_remove_index): bugfix: index check for

View File

@@ -1,3 +1,9 @@
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> 1998-08-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* garray.c (g_ptr_array_remove_index): bugfix: index check for * garray.c (g_ptr_array_remove_index): bugfix: index check for

5
glib.h
View File

@@ -748,12 +748,11 @@ gint g_tree_nnodes (GTree *tree);
*/ */
struct _GNode struct _GNode
{ {
GNode *prev; gpointer data;
GNode *next; GNode *next;
GNode *prev;
GNode *parent; GNode *parent;
GNode *children; GNode *children;
gpointer data;
}; };
#define G_NODE_IS_ROOT(node) (((GNode*) (node))->parent == NULL && \ #define G_NODE_IS_ROOT(node) (((GNode*) (node))->parent == NULL && \

View File

@@ -748,12 +748,11 @@ gint g_tree_nnodes (GTree *tree);
*/ */
struct _GNode struct _GNode
{ {
GNode *prev; gpointer data;
GNode *next; GNode *next;
GNode *prev;
GNode *parent; GNode *parent;
GNode *children; GNode *children;
gpointer data;
}; };
#define G_NODE_IS_ROOT(node) (((GNode*) (node))->parent == NULL && \ #define G_NODE_IS_ROOT(node) (((GNode*) (node))->parent == NULL && \

View File

@@ -49,11 +49,11 @@ g_node_new (gpointer data)
else else
node = g_chunk_new (GNode, g_tree_node_chunk); node = g_chunk_new (GNode, g_tree_node_chunk);
node->prev = NULL; node->data = data;
node->next = NULL; node->next = NULL;
node->prev = NULL;
node->parent = NULL; node->parent = NULL;
node->children = NULL; node->children = NULL;
node->data = data;
return node; return node;
} }

View File

@@ -49,11 +49,11 @@ g_node_new (gpointer data)
else else
node = g_chunk_new (GNode, g_tree_node_chunk); node = g_chunk_new (GNode, g_tree_node_chunk);
node->prev = NULL; node->data = data;
node->next = NULL; node->next = NULL;
node->prev = NULL;
node->parent = NULL; node->parent = NULL;
node->children = NULL; node->children = NULL;
node->data = data;
return node; return node;
} }