Put in a note about labels requiring statements following them.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 17 Dec 2001 08:35:09 +0000 (08:35 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 17 Dec 2001 08:35:09 +0000 (08:35 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4413 f5534014-38df-0310-8fa8-9805f1628bb7

doc/README.developer

index 46c9e4b6050d053eb0ac30412b76cbe75d1f511f..e91a2cd6583e8d6d4bdd773f0f4914443de47a8f 100644 (file)
@@ -1,4 +1,4 @@
-$Id: README.developer,v 1.43 2001/12/10 06:31:49 guy Exp $
+$Id: README.developer,v 1.44 2001/12/17 08:35:09 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
@@ -42,6 +42,28 @@ defined.  Also, don't assume you can use "%lld", "%llu", "%llx", or
 "%llo" to print 64-bit integral data types - not all platforms support
 "%ll" for printing them.
 
+Don't use a label without a statement following it.  For example,
+something such as
+
+       if (...) {
+
+               ...
+
+       done:
+       }
+       
+will not work with all compilers - you have to do
+
+       if (...) {
+
+               ...
+
+       done:
+               ;
+       }
+
+with some statement, even if it's a null statement, after the label.
+
 1.1.2 Name convention.
 
 Ethereal uses the underscore_convention rather than the InterCapConvention for
@@ -79,7 +101,7 @@ code inside
 
 is needed only if you are using the "snprintf()" function.
 
-The "$Id: README.developer,v 1.43 2001/12/10 06:31:49 guy Exp $"
+The "$Id: README.developer,v 1.44 2001/12/17 08:35:09 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.
@@ -89,7 +111,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.43 2001/12/10 06:31:49 guy Exp $
+ * $Id: README.developer,v 1.44 2001/12/17 08:35:09 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>