aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-07-27 01:19:06 +0000
committerGuy Harris <guy@alum.mit.edu>2010-07-27 01:19:06 +0000
commitf0bb5f4c9aa425f3b08e0d96139db0910fadd134 (patch)
tree1012116cc900aa8ffc83f70516d1be88cfdef6de /doc
parent9f4c3409b20a8dc6c3560db82faba6b45fab824f (diff)
Fix grammaro, indent example code.
svn path=/trunk/; revision=33641
Diffstat (limited to 'doc')
-rw-r--r--doc/README.developer17
1 files changed, 9 insertions, 8 deletions
diff --git a/doc/README.developer b/doc/README.developer
index ba94c68b5f..86ac925989 100644
--- a/doc/README.developer
+++ b/doc/README.developer
@@ -100,15 +100,16 @@ Don't declare variables in the middle of executable code; not all C
compilers support that. Variables should be declared outside a
function, or at the beginning of a function or compound statement.
-Don't use anonymous unions; not all compilers support it.
+Don't use anonymous unions; not all compilers support them.
Example:
-typedef struct foo {
- guint32 foo;
- union {
- guint32 foo_l;
- guint16 foo_s;
- } u; /* have a name here */
-} foo_t;
+
+ typedef struct foo {
+ guint32 foo;
+ union {
+ guint32 foo_l;
+ guint16 foo_s;
+ } u; /* have a name here */
+ } foo_t;
Don't use "uchar", "u_char", "ushort", "u_short", "uint", "u_int",
"ulong", "u_long" or "boolean"; they aren't defined on all platforms.