This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Preprocessor symbol style


> Date: Sat, 14 Aug 2004 00:02:00 +0200 (CEST)
> From: Mark Kettenis <kettenis@chello.nl>
> 
> #ifdef HAVE_FOO_H
> # include <foo.h>
> #else
> # ifdef HAVE_BAR_H
> #  include <bar.h>
> #  ifndef HAVE_FOOBAR
> #   define FOOBAR FOO(BAR)
> #  endif
> # endif
> #endif
> 
> This makes it much easier to see how the #if's and #endif's balance.
> 
> Can we please adopt the second style for GDB?

I agree that the second style is more readable.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]