This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Preprocessor symbol style
- From: "Eli Zaretskii" <eliz at gnu dot org>
- To: Mark Kettenis <kettenis at chello dot nl>
- Cc: gdb at sources dot redhat dot com
- Date: Sat, 14 Aug 2004 13:36:34 +0300
- Subject: Re: Preprocessor symbol style
- References: <200408132202.i7DM1x5k012167@elgar.kettenis.dyndns.org>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> 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.