mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Renamed g_queue_create to g_queue_new in conformance to all other GLib
2000-04-17 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * glib.h, gqueue.c, tests/queue-test.c (main): Renamed g_queue_create to g_queue_new in conformance to all other GLib data types.
This commit is contained in:
parent
186010f7ab
commit
8f02fac4ad
2
glib.h
2
glib.h
@ -1059,7 +1059,7 @@ gpointer g_slist_nth_data (GSList *list,
|
|||||||
|
|
||||||
/* Queues
|
/* Queues
|
||||||
*/
|
*/
|
||||||
GQueue* g_queue_create (void);
|
GQueue* g_queue_new (void);
|
||||||
void g_queue_free (GQueue *queue);
|
void g_queue_free (GQueue *queue);
|
||||||
void g_queue_push_head (GQueue *queue,
|
void g_queue_push_head (GQueue *queue,
|
||||||
gpointer data);
|
gpointer data);
|
||||||
|
@ -1059,7 +1059,7 @@ gpointer g_slist_nth_data (GSList *list,
|
|||||||
|
|
||||||
/* Queues
|
/* Queues
|
||||||
*/
|
*/
|
||||||
GQueue* g_queue_create (void);
|
GQueue* g_queue_new (void);
|
||||||
void g_queue_free (GQueue *queue);
|
void g_queue_free (GQueue *queue);
|
||||||
void g_queue_push_head (GQueue *queue,
|
void g_queue_push_head (GQueue *queue,
|
||||||
gpointer data);
|
gpointer data);
|
||||||
|
@ -32,7 +32,7 @@ static GMemChunk *queue_memchunk = NULL;
|
|||||||
static GTrashStack *free_queue_nodes = NULL;
|
static GTrashStack *free_queue_nodes = NULL;
|
||||||
|
|
||||||
GQueue*
|
GQueue*
|
||||||
g_queue_create (void)
|
g_queue_new (void)
|
||||||
{
|
{
|
||||||
GQueue *queue;
|
GQueue *queue;
|
||||||
|
|
||||||
|
2
gqueue.c
2
gqueue.c
@ -32,7 +32,7 @@ static GMemChunk *queue_memchunk = NULL;
|
|||||||
static GTrashStack *free_queue_nodes = NULL;
|
static GTrashStack *free_queue_nodes = NULL;
|
||||||
|
|
||||||
GQueue*
|
GQueue*
|
||||||
g_queue_create (void)
|
g_queue_new (void)
|
||||||
{
|
{
|
||||||
GQueue *queue;
|
GQueue *queue;
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ int main()
|
|||||||
GList *node;
|
GList *node;
|
||||||
gpointer data;
|
gpointer data;
|
||||||
|
|
||||||
q = g_queue_create ();
|
q = g_queue_new ();
|
||||||
|
|
||||||
g_assert (g_queue_is_empty (q) == TRUE);
|
g_assert (g_queue_is_empty (q) == TRUE);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user