[prev in list] [next in list] [prev in thread] [next in thread]
List: ethereal-dev
Subject: Re: [Ethereal-dev] Question on applying patches
From: Guy Harris <guy () netapp ! com>
Date: 2001-05-30 23:44:54
[Download RAW message or body]
> 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".
_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@ethereal.com
http://www.ethereal.com/mailman/listinfo/ethereal-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic