summaryrefslogtreecommitdiff
path: root/gutils.c
diff options
context:
space:
mode:
authorTor Lillqvist <tml@src.gnome.org>1999-04-25 20:52:42 +0000
committerTor Lillqvist <tml@src.gnome.org>1999-04-25 20:52:42 +0000
commitd6c6eb3d92e857a296134c68c2cd590636b1fb63 (patch)
tree03a00c8ee55919e9f12066b1cce42e78fafe686a /gutils.c
parent2aa1277d60f63d283a955d40cc681f1d30a067e8 (diff)
downloadglib-d6c6eb3d92e857a296134c68c2cd590636b1fb63.tar.gz
More editing. Use gcc, not ld to link. On native Win32 use _unlink(). Use
* README.win32: More editing. * build-dll: Use gcc, not ld to link. * glib.h: On native Win32 use _unlink(). * gscanner.c: Use corrent NATIVE_WIN32 feature test macro, not _MSC_VER. * gstring.c: Include <io.h> on Win32 for _read prototype. * gutils.c: Remove old IO channel code (was in #if 0). * makefile.cygwin: Don't need to link with kernel32 and msvcrt explicitly, they are included anyway.
Diffstat (limited to 'gutils.c')
-rw-r--r--gutils.c63
1 files changed, 0 insertions, 63 deletions
diff --git a/gutils.c b/gutils.c
index c9362cc5b..4d90a6671 100644
--- a/gutils.c
+++ b/gutils.c
@@ -662,69 +662,6 @@ g_int_hash (gconstpointer v)
return *(const gint*) v;
}
-#if 0 /* Old IO Channels */
-
-GIOChannel*
-g_iochannel_new (gint fd)
-{
- GIOChannel *channel = g_new (GIOChannel, 1);
-
- channel->fd = fd;
-
-#ifdef NATIVE_WIN32
- channel->peer = 0;
- channel->peer_fd = 0;
- channel->offset = 0;
- channel->need_wakeups = 0;
-#endif /* NATIVE_WIN32 */
-
- return channel;
-}
-
-void
-g_iochannel_free (GIOChannel *channel)
-{
- g_return_if_fail (channel != NULL);
-
- g_free (channel);
-}
-
-void
-g_iochannel_close_and_free (GIOChannel *channel)
-{
- g_return_if_fail (channel != NULL);
-
- close (channel->fd);
-
- g_iochannel_free (channel);
-}
-
-#undef g_iochannel_wakeup_peer
-
-void
-g_iochannel_wakeup_peer (GIOChannel *channel)
-{
-#ifdef NATIVE_WIN32
- static guint message = 0;
-#endif
-
- g_return_if_fail (channel != NULL);
-
-#ifdef NATIVE_WIN32
- if (message == 0)
- message = RegisterWindowMessage ("gdk-pipe-readable");
-
-# if 0
- g_print ("g_iochannel_wakeup_peer: calling PostThreadMessage (%#x, %d, %d, %d)\n",
- channel->peer, message, channel->peer_fd, channel->offset);
-# endif
- PostThreadMessage (channel->peer, message,
- channel->peer_fd, channel->offset);
-#endif /* NATIVE_WIN32 */
-}
-
-#endif /* Old IO Channels */
-
#ifdef NATIVE_WIN32
int