Commit f026692d authored by Manish Singh's avatar Manish Singh Committed by Manish Singh

glib/gasyncqueue.c glib/ghook.c g_return_if_fail -> g_return_val_if_fail

Mon Nov  8 10:45:50 2004  Manish Singh  <yosh@gimp.org>

        * glib/gasyncqueue.c
        * glib/ghook.c
        * glib/giochannel.c: g_return_if_fail -> g_return_val_if_fail

        * glib/gmain.c: Ditto, plus also make g_main_context_ref() actually
        return the passed in pointer.
parent c83e5260
Mon Nov 8 10:45:50 2004 Manish Singh <yosh@gimp.org>
* glib/gasyncqueue.c
* glib/ghook.c
* glib/giochannel.c: g_return_if_fail -> g_return_val_if_fail
* glib/gmain.c: Ditto, plus also make g_main_context_ref() actually
return the passed in pointer.
2004-11-08 Matthias Clasen <mclasen@redhat.com>
* glib/gasyncqueue.[hc]:
......
Mon Nov 8 10:45:50 2004 Manish Singh <yosh@gimp.org>
* glib/gasyncqueue.c
* glib/ghook.c
* glib/giochannel.c: g_return_if_fail -> g_return_val_if_fail
* glib/gmain.c: Ditto, plus also make g_main_context_ref() actually
return the passed in pointer.
2004-11-08 Matthias Clasen <mclasen@redhat.com>
* glib/gasyncqueue.[hc]:
......
Mon Nov 8 10:45:50 2004 Manish Singh <yosh@gimp.org>
* glib/gasyncqueue.c
* glib/ghook.c
* glib/giochannel.c: g_return_if_fail -> g_return_val_if_fail
* glib/gmain.c: Ditto, plus also make g_main_context_ref() actually
return the passed in pointer.
2004-11-08 Matthias Clasen <mclasen@redhat.com>
* glib/gasyncqueue.[hc]:
......
Mon Nov 8 10:45:50 2004 Manish Singh <yosh@gimp.org>
* glib/gasyncqueue.c
* glib/ghook.c
* glib/giochannel.c: g_return_if_fail -> g_return_val_if_fail
* glib/gmain.c: Ditto, plus also make g_main_context_ref() actually
return the passed in pointer.
2004-11-08 Matthias Clasen <mclasen@redhat.com>
* glib/gasyncqueue.[hc]:
......
Mon Nov 8 10:45:50 2004 Manish Singh <yosh@gimp.org>
* glib/gasyncqueue.c
* glib/ghook.c
* glib/giochannel.c: g_return_if_fail -> g_return_val_if_fail
* glib/gmain.c: Ditto, plus also make g_main_context_ref() actually
return the passed in pointer.
2004-11-08 Matthias Clasen <mclasen@redhat.com>
* glib/gasyncqueue.[hc]:
......
......@@ -70,8 +70,8 @@ g_async_queue_new (void)
GAsyncQueue *
g_async_queue_ref (GAsyncQueue *queue)
{
g_return_if_fail (queue);
g_return_if_fail (g_atomic_int_get (&queue->ref_count) > 0);
g_return_val_if_fail (queue, NULL);
g_return_val_if_fail (g_atomic_int_get (&queue->ref_count) > 0, NULL);
g_atomic_int_inc (&queue->ref_count);
......
......@@ -226,9 +226,9 @@ GHook *
g_hook_ref (GHookList *hook_list,
GHook *hook)
{
g_return_if_fail (hook_list != NULL);
g_return_if_fail (hook != NULL);
g_return_if_fail (hook->ref_count > 0);
g_return_val_if_fail (hook_list != NULL, NULL);
g_return_val_if_fail (hook != NULL, NULL);
g_return_val_if_fail (hook->ref_count > 0, NULL);
hook->ref_count++;
......
......@@ -94,7 +94,7 @@ g_io_channel_init (GIOChannel *channel)
GIOChannel *
g_io_channel_ref (GIOChannel *channel)
{
g_return_if_fail (channel != NULL);
g_return_val_if_fail (channel != NULL, NULL);
channel->ref_count++;
......
......@@ -595,10 +595,12 @@ g_poll (GPollFD *fds,
GMainContext *
g_main_context_ref (GMainContext *context)
{
g_return_if_fail (context != NULL);
g_return_if_fail (g_atomic_int_get (&context->ref_count) > 0);
g_return_val_if_fail (context != NULL, NULL);
g_return_val_if_fail (g_atomic_int_get (&context->ref_count) > 0, NULL);
g_atomic_int_inc (&context->ref_count);
return context;
}
/* If DISABLE_MEM_POOLS is defined, then freeing the
......
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