Ethereal-dev: Re: [Ethereal-dev] Plrave review: Functioncasting in lemon.c

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

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Mon, 26 Jan 2004 17:11:54 -0800

On Jan 24, 2004, at 6:56 AM, Joerg Mayer wrote:

Can someone please have a look whether I got the function casting right
this time?

Too bad the folks at AT&T didn't come up with

http://gcc.gnu.org/onlinedocs/gcc-3.3.2/gcc/Designated- Inits.html#Designated%20Inits

so we had to wait for C99 to get it. (Well, it's in GCC even with C89, but not all C compilers support that extension.) With that extension, the "arg" member of a "struct s_options" could've been a union without making it impossible to initialize properly.