mirror of
https://github.com/coreutils/coreutils.git
synced 2024-12-04 23:43:45 +08:00
(sc_no_if_have_config_h): New rule.
(syntax-check-rules): Add it.
This commit is contained in:
parent
26ddff0c17
commit
eae3fa54bf
@ -74,6 +74,7 @@ syntax-check-rules = \
|
||||
sc_dd_max_sym_length \
|
||||
sc_error_exit_success \
|
||||
sc_file_system \
|
||||
sc_no_if_have_config_h \
|
||||
sc_obsolete_symbols \
|
||||
sc_prohibit_atoi_atof \
|
||||
sc_prohibit_jm_in_m4 \
|
||||
@ -148,6 +149,13 @@ sc_file_system:
|
||||
'rewrite to use "file system"' 1>&2; \
|
||||
exit 1; } || :
|
||||
|
||||
sc_no_if_have_config_h:
|
||||
@( $(CVS_LIST) ) > /dev/null 2>&1 || : && \
|
||||
grep '^# *if HAVE_CONFIG_H' \
|
||||
$$($(CVS_LIST) | grep -vEf .x-$@ ) && \
|
||||
{ echo '$(ME): found use of #if HAVE_CONFIG_H; use #ifdef' \
|
||||
1>&2; exit 1; } || :
|
||||
|
||||
sc_obsolete_symbols:
|
||||
@( $(CVS_LIST) ) > /dev/null 2>&1 || : && \
|
||||
grep -E '\<(HAVE_FCNTL_H)\>' \
|
||||
|
Loading…
Reference in New Issue
Block a user