Ethereal-dev: Re: [Ethereal-dev] bool keyword in prefs-int.h

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

From: Chris Waters <chris@xxxxxxxxxxxx>
Date: Sat, 15 Jun 2002 22:26:07 -0700
Hi,

The issue is when I include the C header files from C++ code. Even when
extern "C" is used the compiler understands c++ types.

Regards,

Chris.

----- Original Message -----
From: "Guy Harris" <gharris@xxxxxxxxx>
To: "Chris Waters" <chris@xxxxxxxxxxxx>
Cc: "EtherealDev" <ethereal-dev@xxxxxxxxxxxx>
Sent: Saturday, June 15, 2002 6:04 PM
Subject: Re: [Ethereal-dev] bool keyword in prefs-int.h


> On Fri, Jun 14, 2002 at 08:50:25AM -0700, Chris Waters wrote:
> > The declaration for the preference structure in prefs-int.h uses the
name
> > 'bool' for a couple of the fields in the structure. bool is a keyword in
C++
> > and when compiling prefs-int.h with a C++ compiler (Borland C++ Builder
in
> > this case) the compiler complains. I haven't tried compiling with
MSVC++,
> > but its syntax highlighter thinks that bool is a keyword too.
>
> Well, we compile Ethereal from the command line, and MSVC++ does realize
> that Ethereal is C code, not C++ code, and doesn't apply C++'s rules to
> it.
>
> I don't know whether the GUI stuff would work as well; perhaps it
> doesn't, and would think it's all C++ - or perhaps it's just the syntax
> highlighter that doesn't know the difference.
>
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-dev
>