maint: convert .x-sc_* into exclude_file_name_regexp--sc_* exemptions

Many of the .x-sc_* exemptions were no long necessary.  Remove those
files and instead, provide exemptions via variable definitions in
cfg.mk to address the few remaining exceptions.
* .x-sc_prohibit_atoi_atof: Remove file.
* .x-sc_space_tab: Likewise.
* .x-sc_sun_os_names: Likewise.
* .x-sc_trailing_blank: Likewise.
* .x-sc_two_space_separator_in_usage: Likewise.
* .x-sc_useless_cpp_parens: Likewise.
* cfg.mk: Add minimal exemptions.
* cfg.mk: Add minimal exemptions.
* doc/standards.texi (Standard C): Address the sole useless-cpp-parens
violation in this file:
-#if defined (__STDC__) || defined (WINDOWSNT)
+#if defined __STDC__ || defined WINDOWSNT
With that, the only remaining offender is config.guess, whose name
is now listed in cfg.mk.
Suggested by Eric Blake.
This commit is contained in:
Jim Meyering 2012-01-21 16:12:45 +01:00
parent 015ecc5018
commit ae930c76c7
8 changed files with 8 additions and 18 deletions

View File

@ -1,3 +0,0 @@
ChangeLog
maint.mk
doc/autoconf.texi

View File

@ -1,4 +0,0 @@
build-aux/config.guess
build-aux/config.sub
aclocal.m4
configure

View File

@ -1 +0,0 @@
build-aux/config.guess

View File

@ -1,5 +0,0 @@
build-aux/gendocs.sh
build-aux/texinfo.tex
doc/gendocs_template
doc/gnu-oids.texi
doc/standards.texi

View File

@ -1 +0,0 @@
gnupload

View File

@ -1,2 +0,0 @@
build-aux/config.guess
doc/standards.texi

6
cfg.mk
View File

@ -133,3 +133,9 @@ old_NEWS_hash = 33207c359dd7db17cc0cd151da6b9567
exclude_file_name_regexp--sc_prohibit_undesirable_word_seq = ^maint\.mk$$
exclude_file_name_regexp--sc_prohibit_test_minus_ao = \
^(maint\.mk|doc/autoconf\.texi)$$
exclude_file_name_regexp--sc_prohibit_atoi_atof = ^doc/autoconf\.texi$$
exclude_file_name_regexp--sc_useless_cpp_parens = ^build-aux/config\.guess$$
exclude_file_name_regexp--sc_trailing_blank = ^build-aux/texinfo\.tex$$
exclude_file_name_regexp--sc_two_space_separator_in_usage = \
^build-aux/gnupload$$

View File

@ -3,7 +3,7 @@
@setfilename standards.info
@settitle GNU Coding Standards
@c This date is automagically updated when you save this file:
@set lastupdate January 8, 2012
@set lastupdate January 21, 2012
@c %**end of header
@dircategory GNU organization
@ -472,7 +472,7 @@ prototypes, you may want to use a preprocessor macro like this:
@example
/* Declare the prototype for a general external function. */
#if defined (__STDC__) || defined (WINDOWSNT)
#if defined __STDC__ || defined WINDOWSNT
#define P_(proto) proto
#else
#define P_(proto) ()