default initialize source_timeout with -1 so we have a sane timeout value

Mon Dec 21 03:48:04 1998  Tim Janik  <timj@gtk.org>

        * gmain.c (g_main_iterate): default initialize source_timeout with -1
        so we have a sane timeout value if (*prpare) doesn't set it.
This commit is contained in:
Tim Janik 1998-12-21 03:28:25 +00:00 committed by Tim Janik
parent 7f237f6fcd
commit 85755f7e77
10 changed files with 44 additions and 4 deletions

View File

@ -1,3 +1,8 @@
Mon Dec 21 03:48:04 1998 Tim Janik <timj@gtk.org>
* gmain.c (g_main_iterate): default initialize source_timeout with -1
so we have a sane timeout value if (*prpare) doesn't set it.
Sat Dec 19 16:56:02 1998 Owen Taylor <otaylor@redhat.com>
* glib.h gmain.c (G_PRIORITY_LOW): Add #defines defining

View File

@ -1,3 +1,8 @@
Mon Dec 21 03:48:04 1998 Tim Janik <timj@gtk.org>
* gmain.c (g_main_iterate): default initialize source_timeout with -1
so we have a sane timeout value if (*prpare) doesn't set it.
Sat Dec 19 16:56:02 1998 Owen Taylor <otaylor@redhat.com>
* glib.h gmain.c (G_PRIORITY_LOW): Add #defines defining

View File

@ -1,3 +1,8 @@
Mon Dec 21 03:48:04 1998 Tim Janik <timj@gtk.org>
* gmain.c (g_main_iterate): default initialize source_timeout with -1
so we have a sane timeout value if (*prpare) doesn't set it.
Sat Dec 19 16:56:02 1998 Owen Taylor <otaylor@redhat.com>
* glib.h gmain.c (G_PRIORITY_LOW): Add #defines defining

View File

@ -1,3 +1,8 @@
Mon Dec 21 03:48:04 1998 Tim Janik <timj@gtk.org>
* gmain.c (g_main_iterate): default initialize source_timeout with -1
so we have a sane timeout value if (*prpare) doesn't set it.
Sat Dec 19 16:56:02 1998 Owen Taylor <otaylor@redhat.com>
* glib.h gmain.c (G_PRIORITY_LOW): Add #defines defining

View File

@ -1,3 +1,8 @@
Mon Dec 21 03:48:04 1998 Tim Janik <timj@gtk.org>
* gmain.c (g_main_iterate): default initialize source_timeout with -1
so we have a sane timeout value if (*prpare) doesn't set it.
Sat Dec 19 16:56:02 1998 Owen Taylor <otaylor@redhat.com>
* glib.h gmain.c (G_PRIORITY_LOW): Add #defines defining

View File

@ -1,3 +1,8 @@
Mon Dec 21 03:48:04 1998 Tim Janik <timj@gtk.org>
* gmain.c (g_main_iterate): default initialize source_timeout with -1
so we have a sane timeout value if (*prpare) doesn't set it.
Sat Dec 19 16:56:02 1998 Owen Taylor <otaylor@redhat.com>
* glib.h gmain.c (G_PRIORITY_LOW): Add #defines defining

View File

@ -1,3 +1,8 @@
Mon Dec 21 03:48:04 1998 Tim Janik <timj@gtk.org>
* gmain.c (g_main_iterate): default initialize source_timeout with -1
so we have a sane timeout value if (*prpare) doesn't set it.
Sat Dec 19 16:56:02 1998 Owen Taylor <otaylor@redhat.com>
* glib.h gmain.c (G_PRIORITY_LOW): Add #defines defining

View File

@ -1,3 +1,8 @@
Mon Dec 21 03:48:04 1998 Tim Janik <timj@gtk.org>
* gmain.c (g_main_iterate): default initialize source_timeout with -1
so we have a sane timeout value if (*prpare) doesn't set it.
Sat Dec 19 16:56:02 1998 Owen Taylor <otaylor@redhat.com>
* glib.h gmain.c (G_PRIORITY_LOW): Add #defines defining

View File

@ -436,7 +436,7 @@ g_main_iterate (gboolean block,
gboolean dispatch)
{
GHook *hook;
GTimeVal current_time;
GTimeVal current_time ={ 0, 0 };
gint n_ready = 0;
gint current_priority = 0;
gint timeout;
@ -468,7 +468,7 @@ g_main_iterate (gboolean block,
{
GSource *source = (GSource *)hook;
GHook *tmp;
gint source_timeout;
gint source_timeout = -1;
if ((n_ready > 0) && (source->priority > current_priority))
break;

View File

@ -436,7 +436,7 @@ g_main_iterate (gboolean block,
gboolean dispatch)
{
GHook *hook;
GTimeVal current_time;
GTimeVal current_time ={ 0, 0 };
gint n_ready = 0;
gint current_priority = 0;
gint timeout;
@ -468,7 +468,7 @@ g_main_iterate (gboolean block,
{
GSource *source = (GSource *)hook;
GHook *tmp;
gint source_timeout;
gint source_timeout = -1;
if ((n_ready > 0) && (source->priority > current_priority))
break;