"gboolean foo : 1" results in TRUE being -1 once assigned, use "guint foo

2001-08-30  Michael Natterer  <mitch@gimp.org>

	* glib/giochannel.h: (struct GIOChannel): "gboolean foo : 1"
	results in TRUE being -1 once assigned, use "guint foo : 1"
	instead.
This commit is contained in:
Michael Natterer 2001-08-29 23:11:17 +00:00 committed by Michael Natterer
parent ee2712c487
commit 66529cef67
9 changed files with 54 additions and 6 deletions

View File

@ -1,3 +1,9 @@
2001-08-30 Michael Natterer <mitch@gimp.org>
* 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 <darin@bentspoon.com>
* glib/gconvert.h:

View File

@ -1,3 +1,9 @@
2001-08-30 Michael Natterer <mitch@gimp.org>
* 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 <darin@bentspoon.com>
* glib/gconvert.h:

View File

@ -1,3 +1,9 @@
2001-08-30 Michael Natterer <mitch@gimp.org>
* 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 <darin@bentspoon.com>
* glib/gconvert.h:

View File

@ -1,3 +1,9 @@
2001-08-30 Michael Natterer <mitch@gimp.org>
* 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 <darin@bentspoon.com>
* glib/gconvert.h:

View File

@ -1,3 +1,9 @@
2001-08-30 Michael Natterer <mitch@gimp.org>
* 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 <darin@bentspoon.com>
* glib/gconvert.h:

View File

@ -1,3 +1,9 @@
2001-08-30 Michael Natterer <mitch@gimp.org>
* 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 <darin@bentspoon.com>
* glib/gconvert.h:

View File

@ -1,3 +1,9 @@
2001-08-30 Michael Natterer <mitch@gimp.org>
* 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 <darin@bentspoon.com>
* glib/gconvert.h:

View File

@ -1,3 +1,9 @@
2001-08-30 Michael Natterer <mitch@gimp.org>
* 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 <darin@bentspoon.com>
* glib/gconvert.h:

View File

@ -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,