(sc_src_functions_have_static_scope): New rule.

(syntax-check-rules): Add it.
This commit is contained in:
Jim Meyering committed 2004-04-27 14:57:11 +00:00
1 parent c09c476689
commit 350228c3be
1 file changed
+4
+4
View File
@@ -75,6 +75,7 @@ syntax-check-rules = \
sc_prohibit_atoi_atof \
sc_prohibit_jm_in_m4 \
sc_space_tab \
sc_src_functions_have_static_scope \
sc_sun_os_names \
sc_system_h_headers \
sc_trailing_blank \
@@ -92,6 +93,9 @@ syntax-check: $(syntax-check-rules)
# exit 1; } || :
# FIXME: don't allow `#include .strings\.h' anywhere
sc_src_functions_have_static_scope:
$(MAKE) -C src $@
sc_cast_of_argument_to_free:
@grep -E '\<free \(\(' $(srcdir)/{lib,src}/*.[chly] && \
{ echo '$(ME): don'\''t cast free argument' 1>&2; \