aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-07-20 09:55:08 +0000
committerGuy Harris <guy@alum.mit.edu>2001-07-20 09:55:08 +0000
commita627bc24636c001a8866a2e4d750162abf7c087a (patch)
treea8878472b55fd56d292c8f10ac5da3ead90bbe5f /doc
parentd7b4534d38b6e27e8fdd7ecd9ca9abba798c8ca1 (diff)
downloadwireshark-a627bc24636c001a8866a2e4d750162abf7c087a.tar.gz
wireshark-a627bc24636c001a8866a2e4d750162abf7c087a.tar.bz2
wireshark-a627bc24636c001a8866a2e4d750162abf7c087a.zip
Tell people *NOT* to create zero-length "hf[]" arrays if they don't have
any fields to register. svn path=/trunk/; revision=3754
Diffstat (limited to 'doc')
-rw-r--r--doc/README.developer11
1 files changed, 8 insertions, 3 deletions
diff --git a/doc/README.developer b/doc/README.developer
index 205be3ab4a..993e5f8c7d 100644
--- a/doc/README.developer
+++ b/doc/README.developer
@@ -1,4 +1,4 @@
-$Id: README.developer,v 1.30 2001/07/16 06:16:14 guy Exp $
+$Id: README.developer,v 1.31 2001/07/20 09:55:08 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
@@ -62,7 +62,7 @@ code inside
is needed only if you are using the "snprintf()" function.
-The "$Id: README.developer,v 1.30 2001/07/16 06:16:14 guy Exp $"
+The "$Id: README.developer,v 1.31 2001/07/20 09:55:08 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.
@@ -72,7 +72,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.30 2001/07/16 06:16:14 guy Exp $
+ * $Id: README.developer,v 1.31 2001/07/20 09:55:08 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -831,6 +831,11 @@ typedef struct hf_register_info {
Also be sure to use the handy array_length() macro found in packet.h
to have the compiler compute the array length for you at compile time.
+If you don't have any fields to register, do *NOT* create a zero-length
+"hf" array; not all compilers used to compile Ethereal support them.
+Just omit the "hf" array, and the "proto_register_field_array()" call,
+entirely.
+
1.6.2 Adding Items and Values to the Protocol Tree.
A protocol item is added to an existing protocol tree with one of a