(sc_obsolete_symbols): New rule.

(syntax-check-rules): Add it to the list.
This commit is contained in:
Jim Meyering committed 2005-07-02 11:58:22 +00:00
1 parent f6d8b10a1c
commit 6f368f2f48
1 file changed
+8
+8
View File
@@ -75,6 +75,7 @@ syntax-check-rules = \
sc_dd_max_sym_length \
sc_error_exit_success \
sc_file_system \
sc_obsolete_symbols \
sc_prohibit_atoi_atof \
sc_prohibit_jm_in_m4 \
sc_root_tests \
@@ -147,6 +148,13 @@ sc_file_system:
'rewrite to use "file system"' 1>&2; \
exit 1; } || :
sc_obsolete_symbols:
@( $(CVS_LIST) ) > /dev/null 2>&1 || : && \
grep -E '\<(HAVE_(FCNTL|UNISTD)_H)\>' \
$$($(CVS_LIST) | grep -vEf .x-$@ ) && \
{ echo '$(ME): do not use HAVE_FCNTL_H or HAVE_UNISTD_H' \
1>&2; exit 1; } || :
# FIXME: warn about definitions of EXIT_FAILURE, EXIT_SUCCESS, STREQ
# Each nonempty line must start with a year number, or a TAB.