]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
syntax-check: update c-type checks to refer to Glib
authorPavel Hrdina <phrdina@redhat.com>
Mon, 18 Nov 2019 15:20:17 +0000 (16:20 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 10 Dec 2019 12:49:24 +0000 (13:49 +0100)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
build-aux/syntax-check.mk

index b29def5a30e8ff444a9eeba5d50b2535992c03d1..15e2802e56f368dace8d3ec26ee1221b33775db1 100644 (file)
@@ -534,7 +534,7 @@ sc_prohibit_select:
 # Prohibit the inclusion of <ctype.h>.
 sc_prohibit_ctype_h:
        @prohibit='^# *include  *<ctype\.h>' \
-       halt='use c-ctype.h instead of ctype.h' \
+       halt='use Glib g_ascii_* function instead of ctype.h' \
          $(_sc_search_regexp)
 
 # We have our own wrapper for mocking purposes
@@ -585,7 +585,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' \
+       halt='use Glib g_ascii_ macros instead of ctype macros' \
          $(_sc_search_regexp)
 
 sc_avoid_strcase:
@@ -1554,13 +1554,6 @@ sc_prohibit_openat_without_use:
        re='\<(openat_(permissive|needs_fchdir|(save|restore)_fail)|l?(stat|ch(own|mod))at|(euid)?accessat|(FCHMOD|FCHOWN|STAT)AT_INLINE)\>' \
          $(_sc_header_without_use)
 
-# Prohibit the inclusion of c-ctype.h without an actual use.
-ctype_re = isalnum|isalpha|isascii|isblank|iscntrl|isdigit|isgraph|islower\
-|isprint|ispunct|isspace|isupper|isxdigit|tolower|toupper
-sc_prohibit_c_ctype_without_use:
-       @h='c-ctype.h' re='\<c_($(ctype_re)) *\(' \
-         $(_sc_header_without_use)
-
 # The following list was generated by running:
 # man signal.h|col -b|perl -ne '/bsd_signal.*;/.../sigwaitinfo.*;/ and print' \
 #   | perl -lne '/^\s+(?:int|void).*?(\w+).*/ and print $1' | fmt