mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
cfg.mk: check ctype_macros only on *.[c|h] files
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>
This commit is contained in:
parent
f3a99869ff
commit
e9476e1035
1
cfg.mk
1
cfg.mk
@ -496,6 +496,7 @@ ctype_re = isalnum|isalpha|isascii|isblank|iscntrl|isdigit|isgraph|islower\
|
|||||||
|
|
||||||
sc_avoid_ctype_macros:
|
sc_avoid_ctype_macros:
|
||||||
@prohibit='\b($(ctype_re)) *\(' \
|
@prohibit='\b($(ctype_re)) *\(' \
|
||||||
|
in_vc_files='\.[ch]$$' \
|
||||||
halt='use c-ctype.h instead of ctype macros' \
|
halt='use c-ctype.h instead of ctype macros' \
|
||||||
$(_sc_search_regexp)
|
$(_sc_search_regexp)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user