diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-10-20 23:07:43 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-10-20 23:07:43 +0000 |
commit | d4fcd2d0a9ba921dbc52bcbab33e6b22d970311c (patch) | |
tree | 288e38d800ac681c494b8e8990c4139289c1bd2c /doc | |
parent | 86259d5a9e9c43a76c2ba3f45c8b0e2252b6346e (diff) |
Warn about Yet Another GCCism.
svn path=/trunk/; revision=8742
Diffstat (limited to 'doc')
-rw-r--r-- | doc/README.developer | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/doc/README.developer b/doc/README.developer index 0d2582c993..ac045370a1 100644 --- a/doc/README.developer +++ b/doc/README.developer @@ -1,4 +1,4 @@ -$Id: README.developer,v 1.81 2003/10/09 21:18:41 guy Exp $ +$Id: README.developer,v 1.82 2003/10/20 23:07:43 guy Exp $ This file is a HOWTO for Ethereal developers. It describes how to start coding a Ethereal protocol dissector and the use some of the important functions and @@ -27,6 +27,10 @@ example, doesn't do so by default). Don't use zero-length arrays; not all compilers support them. If an array would have no members, just leave it out. +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 "inline"; not all compilers support it. If you want to have a function be an inline function if the compiler supports it, use G_INLINE_FUNC, which is declared by <glib.h>. This may not work with @@ -231,7 +235,7 @@ code inside is needed only if you are using the "snprintf()" function. -The "$Id: README.developer,v 1.81 2003/10/09 21:18:41 guy Exp $" +The "$Id: README.developer,v 1.82 2003/10/20 23:07:43 guy Exp $" in the comment will be updated by CVS when the file is checked in; it will allow the RCS "ident" command to report which version of the file is currently checked out. @@ -241,7 +245,7 @@ version of the file is currently checked out. * Routines for PROTONAME dissection * Copyright 2000, YOUR_NAME <YOUR_EMAIL_ADDRESS> * - * $Id: README.developer,v 1.81 2003/10/09 21:18:41 guy Exp $ + * $Id: README.developer,v 1.82 2003/10/20 23:07:43 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> |