diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-10-17 20:05:04 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-10-17 20:05:04 +0000 |
commit | 9ce0f18987817768284561205ecd597a2429d097 (patch) | |
tree | cbc4e7c35a4add8ca5c0c0439fde3b015ad2d09b /doc/README.developer | |
parent | 0bba015d3e44062f247a6c7bdcb2d17009484ab9 (diff) |
Put in a note telling people not to use "long" for 32-bit quantities.
svn path=/trunk/; revision=6446
Diffstat (limited to 'doc/README.developer')
-rw-r--r-- | doc/README.developer | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/doc/README.developer b/doc/README.developer index 424c4990c7..3104ff294b 100644 --- a/doc/README.developer +++ b/doc/README.developer @@ -1,4 +1,4 @@ -$Id: README.developer,v 1.61 2002/08/26 09:36:22 guy Exp $ +$Id: README.developer,v 1.62 2002/10/17 20:05:04 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 @@ -45,7 +45,12 @@ defined. Also, don't assume you can use "%lld", "%llu", "%llx", or Don't use "uint", "ulong" or "ushort"; they aren't defined on all platforms. If you want an "int-sized" unsigned quantity, use "uint"; if you want a 32-bit unsigned quantity, use "guint32"; and if you want a -16-bit unsigned quantity, use "guint16". +16-bit unsigned quantity, use "guint16". + +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 +long on many platforms. Use "gint32" for signed 32-bit integers and use +"guint32" for unsigned 32-bit integers. Don't use a label without a statement following it. For example, something such as @@ -139,7 +144,7 @@ code inside is needed only if you are using the "snprintf()" function. -The "$Id: README.developer,v 1.61 2002/08/26 09:36:22 guy Exp $" +The "$Id: README.developer,v 1.62 2002/10/17 20:05:04 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. @@ -149,7 +154,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.61 2002/08/26 09:36:22 guy Exp $ + * $Id: README.developer,v 1.62 2002/10/17 20:05:04 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> |