Compile in the debugging code all the time, but only output debug messages
authorTor Lillqvist <tml@iki.fi>
Sun, 30 Jul 2000 00:27:39 +0000 (00:27 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Sun, 30 Jul 2000 00:27:39 +0000 (00:27 +0000)
commit1860151db04ba6232e1f2f06aedf7891d371918f
tree7a6ee22573f740c21a9106e71e154e64afa07b32
parentb965bb5db1732cee8e0ed92d6484921a1431d6a9
Compile in the debugging code all the time, but only output debug messages

2000-07-30  Tor Lillqvist  <tml@iki.fi>

* giowin32.c: Compile in the debugging code all the time, but only
output debug messages if told so. Add (unadvertised) function to
turn on/off debug messages for a channel.

(buffer_read): Don't loop. It is expected behaviour to return a
short read occasionally, for instance when reading from
pipes. It's the calling code that should loop if it *knows* how
much the writer has written.

* tests/gio-test.c: Correct the program's name in the output.
(recv_message): Loop calling g_io_channel_read() (in a new
function read_all()) until we have all the bytes we want (that we
know the writer has written/will write).
13 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
giowin32.c
glib.def
glib/giowin32.c
glib/glib.def
tests/gio-test.c