]> xenbits.xensource.com Git - libvirt.git/commitdiff
cfg.mk: check ctype_macros only on *.[c|h] files
authorRadostin Stoyanov <rstoyanov1@gmail.com>
Tue, 20 Mar 2018 06:48:52 +0000 (06:48 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 20 Mar 2018 12:13:35 +0000 (12:13 +0000)
The functions like isalnum(), isalpha(), isdigit(), etc. are also
available in Python, however `make syntax-check` do not intend to
prohibit them.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
cfg.mk

diff --git a/cfg.mk b/cfg.mk
index bc8088d7c01dffcb245b262f4d52e04bb2574f12..4aa26d434a20ac9c31603ed6ace3472bdf979185 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -496,6 +496,7 @@ ctype_re = isalnum|isalpha|isascii|isblank|iscntrl|isdigit|isgraph|islower\
 
 sc_avoid_ctype_macros:
        @prohibit='\b($(ctype_re)) *\(' \
+       in_vc_files='\.[ch]$$' \
        halt='use c-ctype.h instead of ctype macros' \
          $(_sc_search_regexp)