mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-08 10:14:04 +02:00
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:
@@ -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
|
||||||
|
@@ -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
|
||||||
|
@@ -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
|
||||||
|
@@ -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
|
||||||
|
@@ -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
|
||||||
|
@@ -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
|
||||||
|
@@ -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
|
||||||
|
@@ -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
5
glib.h
@@ -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 && \
|
||||||
|
@@ -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 && \
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
4
gnode.c
4
gnode.c
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user