[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnulib update (Tue Sep 13 09:03:01 EDT 2005)
From: |
Derek Price |
Subject: |
Re: gnulib update (Tue Sep 13 09:03:01 EDT 2005) |
Date: |
Tue, 13 Sep 2005 10:23:32 -0400 |
User-agent: |
Mozilla Thunderbird 1.0.6 (Windows/20050716) |
Jim, all,
Is there a GNULIB standard for this yet? Paul Eggert just went through
my glob_.h and tweaked the cpp spacing in the other direction. I
assumed at the time this meant that double-include protection should be
ignored for the purposes of indenting compiler directives in headers,
but Jim just went the other way here:
2005-09-13 Jim Meyering <address@hidden>
* canon-host.c: Filter through gnu indent and reword comments slightly.
* canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
[ . . . ]
>*** lib/canon-host.h 13 Sep 2005 04:15:15 -0000 1.1
>--- lib/canon-host.h 13 Sep 2005 12:35:24 -0000 1.2
>***************
>*** 25,30 ****
> char *canon_host_r (char const *host, int *cherror);
>
> const char *ch_strerror (void);
>! #define ch_strerror_r(cherror) gai_strerror (cherror);
>
> #endif /* !CANON_HOST_H */
>--- 25,30 ----
> char *canon_host_r (char const *host, int *cherror);
>
> const char *ch_strerror (void);
>! # define ch_strerror_r(cherror) gai_strerror (cherror);
>
> #endif /* !CANON_HOST_H */
>
>
I would note that GNU indent doesn't currently support Paul's style. It
supports intentation of cpp directives, but only to leave them
unmodified or to indent them by a set # of spaces per nested block,
without an option to make an exception for the first #if block encountered.
Regards,
Derek
--
Derek R. Price
CVS Solutions Architect
Ximbiot <http://ximbiot.com>
v: +1 717.579.6168
f: +1 717.234.3125
<mailto:address@hidden>
- Re: gnulib update (Tue Sep 13 09:03:01 EDT 2005),
Derek Price <=