Ethereal-dev: Re: [Ethereal-dev] Question on applying patches

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxx>
Date: Wed, 30 May 2001 16:44:54 -0700 (PDT)
> On Mon, May 21, 2001 at 09:39:48PM -0700, Guy Harris wrote:
> > Well, one problem is that it means you have to add a bunch of additional
> > fields to every entry in the "hf_register_info" array, to squelch the
> > warnings.  That makes it even more of a pain to set up that array.
> 
> It's 5 more values which will be "typed" via copy/paste in many (most?)
> cases anyway.
> 
> > Perhaps we should define a macro to use to initialize those entries - or
> > perhaps multiple macros, for different types.
> 
> Something along the line
> #define Z1 0
> #define Z2 0,0
> ...
> #define Zn 0,0,...,0 (n-times)
> ?

Or something along the lines of

	#define HF_INIT	0, 0, NULL, NULL

which would be defined in "epan/proto.h", and would be changed if more
fields were added to the "set by proto routines" part of "struct
_header_field_info".