Warn if no callback. Call callback correctly. (g_io_win32_create_watch):
authorTor Lillqvist <tml@iki.fi>
Thu, 14 Dec 2000 21:02:20 +0000 (21:02 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Thu, 14 Dec 2000 21:02:20 +0000 (21:02 +0000)
commitb74e7d2f4780c159f7583bd4eecd07ee222d1d9c
treea798d4c358afea2d19ff034eddf229c550c257aa
parentb0baf3db03355028f7c7eabdef9bcfa7f4e08eaf
Warn if no callback. Call callback correctly. (g_io_win32_create_watch):

2000-12-14  Tor Lillqvist  <tml@iki.fi>

* giowin32.c (g_io_win32_dispatch): Warn if no callback. Call
callback correctly.
(g_io_win32_create_watch): Fix typo.
(g_io_win32_fd_create_watch): Ditto.
(g_io_channel_unix_new): If it is a file descriptor (i.e., a Unix
fd lookalike provided by the C library), call
g_io_channel_win32_new_fd(). If it is a socket (from WinSock),
call g_io_cahnnel_win32_new_stream_socket(). Hopefully sockets and
fds don't overlap. TODO: Implement also datagram sockets.
(g_io_channel_win32_poll): Call g_main_context_get_poll_func().

* gcompletion.h: Include <unistd.h> only on Unix. Is this
inclusion really needed here? OTOH, do include <stddef.h>, for
size_t.

* gmessages.c: (Win32) Don't define a function called "write" that
might clash with the prototype from <io.h>, use a #define.

* glib.def: Update.

* gmain.c (g_source_add_poll): Don't return a value from void
function.
(g_main_context_get_poll_func): Compile also for non-Win32, as
presumably was intended. The result var is a GPollFunc, not a
GPollFunc*. Return the result!

gobject:

 2000-12-14  Tor Lillqvist  <tml@iki.fi>

* makefile.mingw.in: Update, include parts from Makefile.am to
build gmarshal.[ch]. Some day, we won't need these separate
makefiles for Win32 compilation. I hope.

* makefile.msc.in: Update. No use trying to build gmarshal.[ch]
here, it would require Unixish tools. MSVC users building from CVS
sources are out of luck.

* gobject.def: Update.
22 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gcompletion.h
giowin32.c
glib.def
glib/gcompletion.h
glib/giowin32.c
glib/glib.def
glib/gmain.c
glib/gmessages.c
gmain.c
gmessages.c
gobject/ChangeLog
gobject/gobject.def
gobject/makefile.mingw.in
gobject/makefile.msc.in