aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2005-02-01 15:45:03 +0000
committerJörg Mayer <jmayer@loplof.de>2005-02-01 15:45:03 +0000
commit64e12f75186edc37f02634c089bbc52ddfc08190 (patch)
treea7b5b4d53f9b8affca23cfad7dbb3f916f86f2c5
parent2614749268f6c9c916dc7d35d7994d57619ef26a (diff)
Add boolean to the list of non-portable types
svn path=/trunk/; revision=13227
-rw-r--r--doc/README.developer17
1 files changed, 9 insertions, 8 deletions
diff --git a/doc/README.developer b/doc/README.developer
index 5d70fbebb1..dfea3e1ece 100644
--- a/doc/README.developer
+++ b/doc/README.developer
@@ -39,14 +39,15 @@ the function in a header file, even if this requires that you not make
it inline on any platform.
Don't use "uchar", "u_char", "ushort", "u_short", "uint", "u_int",
-"ulong", or "u_long"; they aren't defined on all platforms. If you want
-an 8-bit unsigned quantity, use "guint8"; if you want an 8-bit character
-value with the 8th bit not interpreted as a sign bit, use "guchar"; if
-you want a 16-bit unsigned quantity, use "guint16"; if you want a 32-bit
-unsigned quantity, use "guint32"; and if you want an "int-sized"
-unsigned quantity, use "guint". Use "%d", "%u", "%x", and "%o" to print
-those types; don't use "%ld", "%lu", "%lx", or "%lo", as longs are 64
-bits long on many platforms, but "guint32" is 32 bits long.
+"ulong", "u_long" or "boolean"; they aren't defined on all platforms.
+If you want an 8-bit unsigned quantity, use "guint8"; if you want an
+8-bit character value with the 8th bit not interpreted as a sign bit,
+use "guchar"; if you want a 16-bit unsigned quantity, use "guint16";
+if you want a 32-bit unsigned quantity, use "guint32"; and if you want
+an "int-sized" unsigned quantity, use "guint"; if you want a boolean,
+use "gboolean". Use "%d", "%u", "%x", and "%o" to print those types;
+don't use "%ld", "%lu", "%lx", or "%lo", as longs are 64 bits long on
+many platforms, but "guint32" is 32 bits long.
Don't use "long" to mean "signed 32-bit integer", and don't use
"unsigned long" to mean "unsigned 32-bit integer"; "long"s are 64 bits