Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Nov 2008 12:43:29 -0600
From:      "Scot Hetzel" <swhetzel@gmail.com>
To:        "Pankov Pavel" <pankov_p@mail.ru>
Cc:        current@freebsd.org
Subject:   Re: [PATCH] #endif comment fixes
Message-ID:  <790a9fff0811151043l5544194bn9c12f130292e0a6e@mail.gmail.com>
In-Reply-To: <491EFFAF.2040700@mail.ru>
References:  <491EFFAF.2040700@mail.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/15/08, Pankov Pavel <pankov_p@mail.ru> wrote:
> Hello.
>
>  According to style(9), there can be a comment added to #endif, telling
>  the reader about the corresponding #if* condition. This information
>  isn't used by any program; it's just to save some time for humans,
>  reading the code. And, as it isn't checked, these comments have
>  accumulated many errors. Mainly, it's typos, copy-paste bugs, and file
>  rename leftovers. I have prepared a patch to fix some of them in the
>  tree. I clearly understand that the patch cannot be committed as is,
>  because of touched files are maintained outside of FreeBSD source tree.
>  But maybe respective maintainers will be able to review my patch and
>  commit or submit fixes upstream. CVS diff against -CURRENT is available
>  from
> http://files.pankov.pp.ru/freebsd/endif-comments-fix.diff.bz2
> (~ 14

The change to mcore.h is wrong, while it makes the #endif comment
match the #ifdef and #define at the top of the file, the #ifdef and
#define are misspelled:

-- contrib/binutils/include/elf/mcore.h	26 Jun 2001 16:57:18 -0000	1.1.1.3
+++ contrib/binutils/include/elf/mcore.h	15 Nov 2008 15:32:30 -0000
@@ -43,4 +43,4 @@
 /* Section Attributes.  */
 #define SHF_MCORE_NOREAD	0x80000000

-#endif /* _ELF_MCORE_H */
+#endif /* _ELF_MORE_H */

Scot



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0811151043l5544194bn9c12f130292e0a6e>