From: Michael Natterer Date: Wed, 29 Aug 2001 23:11:17 +0000 (+0000) Subject: "gboolean foo : 1" results in TRUE being -1 once assigned, use "guint foo X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=66529cef67ae7bf10ddf81ca7a243c4576a7fa9e;p=dana%2Fcg-glib.git "gboolean foo : 1" results in TRUE being -1 once assigned, use "guint foo 2001-08-30 Michael Natterer * glib/giochannel.h: (struct GIOChannel): "gboolean foo : 1" results in TRUE being -1 once assigned, use "guint foo : 1" instead. --- diff --git a/ChangeLog b/ChangeLog index a7347707..0a6143a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-08-30 Michael Natterer + + * glib/giochannel.h: (struct GIOChannel): "gboolean foo : 1" + results in TRUE being -1 once assigned, use "guint foo : 1" + instead. + 2001-08-27 Darin Adler * glib/gconvert.h: diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index a7347707..0a6143a7 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,9 @@ +2001-08-30 Michael Natterer + + * glib/giochannel.h: (struct GIOChannel): "gboolean foo : 1" + results in TRUE being -1 once assigned, use "guint foo : 1" + instead. + 2001-08-27 Darin Adler * glib/gconvert.h: diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index a7347707..0a6143a7 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2001-08-30 Michael Natterer + + * glib/giochannel.h: (struct GIOChannel): "gboolean foo : 1" + results in TRUE being -1 once assigned, use "guint foo : 1" + instead. + 2001-08-27 Darin Adler * glib/gconvert.h: diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index a7347707..0a6143a7 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,9 @@ +2001-08-30 Michael Natterer + + * glib/giochannel.h: (struct GIOChannel): "gboolean foo : 1" + results in TRUE being -1 once assigned, use "guint foo : 1" + instead. + 2001-08-27 Darin Adler * glib/gconvert.h: diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index a7347707..0a6143a7 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,9 @@ +2001-08-30 Michael Natterer + + * glib/giochannel.h: (struct GIOChannel): "gboolean foo : 1" + results in TRUE being -1 once assigned, use "guint foo : 1" + instead. + 2001-08-27 Darin Adler * glib/gconvert.h: diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index a7347707..0a6143a7 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +2001-08-30 Michael Natterer + + * glib/giochannel.h: (struct GIOChannel): "gboolean foo : 1" + results in TRUE being -1 once assigned, use "guint foo : 1" + instead. + 2001-08-27 Darin Adler * glib/gconvert.h: diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index a7347707..0a6143a7 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +2001-08-30 Michael Natterer + + * glib/giochannel.h: (struct GIOChannel): "gboolean foo : 1" + results in TRUE being -1 once assigned, use "guint foo : 1" + instead. + 2001-08-27 Darin Adler * glib/gconvert.h: diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index a7347707..0a6143a7 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +2001-08-30 Michael Natterer + + * glib/giochannel.h: (struct GIOChannel): "gboolean foo : 1" + results in TRUE being -1 once assigned, use "guint foo : 1" + instead. + 2001-08-27 Darin Adler * glib/gconvert.h: diff --git a/glib/giochannel.h b/glib/giochannel.h index 9abd5112..3a89852c 100644 --- a/glib/giochannel.h +++ b/glib/giochannel.h @@ -120,12 +120,12 @@ struct _GIOChannel /* Group the flags together, immediately after partial_write_buf, to save memory */ - gboolean use_buffer : 1; /* The encoding uses the buffers */ - gboolean do_encode : 1; /* The encoding uses the GIConv coverters */ - gboolean close_on_unref : 1; /* Close the channel on final unref */ - gboolean is_readable : 1; /* Cached GIOFlag */ - gboolean is_writeable : 1; /* ditto */ - gboolean is_seekable : 1; /* ditto */ + guint use_buffer : 1; /* The encoding uses the buffers */ + guint do_encode : 1; /* The encoding uses the GIConv coverters */ + guint close_on_unref : 1; /* Close the channel on final unref */ + guint is_readable : 1; /* Cached GIOFlag */ + guint is_writeable : 1; /* ditto */ + guint is_seekable : 1; /* ditto */ }; typedef gboolean (*GIOFunc) (GIOChannel *source,