mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-21 09:42:10 +01:00
Fix the Win32-only code to use current API,
2000-10-06 Tor Lillqvist <tml@iki.fi> * tests/gio-test.c (main): Fix the Win32-only code to use current API, g_io_channel_win32_make_pollfd() and g_io_channel_win32_poll().
This commit is contained in:
parent
8e847255e8
commit
18e7dc0215
@ -16,6 +16,9 @@
|
|||||||
|
|
||||||
* glib.def: Add new entry point.
|
* glib.def: Add new entry point.
|
||||||
|
|
||||||
|
* tests/gio-test.c (main): Fix the Win32-only code to use current
|
||||||
|
API, g_io_channel_win32_make_pollfd() and g_io_channel_win32_poll().
|
||||||
|
|
||||||
Fixes from Hans Breuer:
|
Fixes from Hans Breuer:
|
||||||
|
|
||||||
* glib.h (struct DIR): Keep the last readdir result cached inside
|
* glib.h (struct DIR): Keep the last readdir result cached inside
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
|
|
||||||
* glib.def: Add new entry point.
|
* glib.def: Add new entry point.
|
||||||
|
|
||||||
|
* tests/gio-test.c (main): Fix the Win32-only code to use current
|
||||||
|
API, g_io_channel_win32_make_pollfd() and g_io_channel_win32_poll().
|
||||||
|
|
||||||
Fixes from Hans Breuer:
|
Fixes from Hans Breuer:
|
||||||
|
|
||||||
* glib.h (struct DIR): Keep the last readdir result cached inside
|
* glib.h (struct DIR): Keep the last readdir result cached inside
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
|
|
||||||
* glib.def: Add new entry point.
|
* glib.def: Add new entry point.
|
||||||
|
|
||||||
|
* tests/gio-test.c (main): Fix the Win32-only code to use current
|
||||||
|
API, g_io_channel_win32_make_pollfd() and g_io_channel_win32_poll().
|
||||||
|
|
||||||
Fixes from Hans Breuer:
|
Fixes from Hans Breuer:
|
||||||
|
|
||||||
* glib.h (struct DIR): Keep the last readdir result cached inside
|
* glib.h (struct DIR): Keep the last readdir result cached inside
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
|
|
||||||
* glib.def: Add new entry point.
|
* glib.def: Add new entry point.
|
||||||
|
|
||||||
|
* tests/gio-test.c (main): Fix the Win32-only code to use current
|
||||||
|
API, g_io_channel_win32_make_pollfd() and g_io_channel_win32_poll().
|
||||||
|
|
||||||
Fixes from Hans Breuer:
|
Fixes from Hans Breuer:
|
||||||
|
|
||||||
* glib.h (struct DIR): Keep the last readdir result cached inside
|
* glib.h (struct DIR): Keep the last readdir result cached inside
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
|
|
||||||
* glib.def: Add new entry point.
|
* glib.def: Add new entry point.
|
||||||
|
|
||||||
|
* tests/gio-test.c (main): Fix the Win32-only code to use current
|
||||||
|
API, g_io_channel_win32_make_pollfd() and g_io_channel_win32_poll().
|
||||||
|
|
||||||
Fixes from Hans Breuer:
|
Fixes from Hans Breuer:
|
||||||
|
|
||||||
* glib.h (struct DIR): Keep the last readdir result cached inside
|
* glib.h (struct DIR): Keep the last readdir result cached inside
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
|
|
||||||
* glib.def: Add new entry point.
|
* glib.def: Add new entry point.
|
||||||
|
|
||||||
|
* tests/gio-test.c (main): Fix the Win32-only code to use current
|
||||||
|
API, g_io_channel_win32_make_pollfd() and g_io_channel_win32_poll().
|
||||||
|
|
||||||
Fixes from Hans Breuer:
|
Fixes from Hans Breuer:
|
||||||
|
|
||||||
* glib.h (struct DIR): Keep the last readdir result cached inside
|
* glib.h (struct DIR): Keep the last readdir result cached inside
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
|
|
||||||
* glib.def: Add new entry point.
|
* glib.def: Add new entry point.
|
||||||
|
|
||||||
|
* tests/gio-test.c (main): Fix the Win32-only code to use current
|
||||||
|
API, g_io_channel_win32_make_pollfd() and g_io_channel_win32_poll().
|
||||||
|
|
||||||
Fixes from Hans Breuer:
|
Fixes from Hans Breuer:
|
||||||
|
|
||||||
* glib.h (struct DIR): Keep the last readdir result cached inside
|
* glib.h (struct DIR): Keep the last readdir result cached inside
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
|
|
||||||
* glib.def: Add new entry point.
|
* glib.def: Add new entry point.
|
||||||
|
|
||||||
|
* tests/gio-test.c (main): Fix the Win32-only code to use current
|
||||||
|
API, g_io_channel_win32_make_pollfd() and g_io_channel_win32_poll().
|
||||||
|
|
||||||
Fixes from Hans Breuer:
|
Fixes from Hans Breuer:
|
||||||
|
|
||||||
* glib.h (struct DIR): Keep the last readdir result cached inside
|
* glib.h (struct DIR): Keep the last readdir result cached inside
|
||||||
|
@ -222,6 +222,7 @@ main (int argc,
|
|||||||
int i;
|
int i;
|
||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
GTimeVal start, end;
|
GTimeVal start, end;
|
||||||
|
GPollFD pollfd;
|
||||||
int pollresult;
|
int pollresult;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -268,7 +269,8 @@ main (int argc,
|
|||||||
|
|
||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
g_get_current_time (&start);
|
g_get_current_time (&start);
|
||||||
pollresult = g_io_channel_win32_wait_for_condition (my_read_channel, G_IO_IN, 100);
|
g_io_channel_win32_make_pollfd (my_read_channel, G_IO_IN, &pollfd);
|
||||||
|
pollresult = g_io_channel_win32_poll (&pollfd, 1, 100);
|
||||||
g_get_current_time (&end);
|
g_get_current_time (&end);
|
||||||
if (end.tv_usec < start.tv_usec)
|
if (end.tv_usec < start.tv_usec)
|
||||||
end.tv_sec--, end.tv_usec += 1000000;
|
end.tv_sec--, end.tv_usec += 1000000;
|
||||||
|
@ -19,6 +19,7 @@ TESTS = \
|
|||||||
array-test.exe \
|
array-test.exe \
|
||||||
date-test.exe \
|
date-test.exe \
|
||||||
dirname-test.exe\
|
dirname-test.exe\
|
||||||
|
gio-test.exe \
|
||||||
hash-test.exe \
|
hash-test.exe \
|
||||||
list-test.exe \
|
list-test.exe \
|
||||||
node-test.exe \
|
node-test.exe \
|
||||||
@ -26,6 +27,7 @@ TESTS = \
|
|||||||
rand-test.exe \
|
rand-test.exe \
|
||||||
relation-test.exe\
|
relation-test.exe\
|
||||||
slist-test.exe \
|
slist-test.exe \
|
||||||
|
# strfunc-test doesn't compile with MSVC
|
||||||
# strfunc-test.exe\
|
# strfunc-test.exe\
|
||||||
string-test.exe \
|
string-test.exe \
|
||||||
thread-test.exe \
|
thread-test.exe \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user