From aa7005d1c046abf0de407604517e102cae7206f8 Mon Sep 17 00:00:00 2001 From: Pavel Hrdina Date: Mon, 18 Nov 2019 16:20:17 +0100 Subject: [PATCH] syntax-check: update c-type checks to refer to Glib Signed-off-by: Pavel Hrdina Reviewed-by: Cole Robinson --- build-aux/syntax-check.mk | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/build-aux/syntax-check.mk b/build-aux/syntax-check.mk index b29def5a30..15e2802e56 100644 --- a/build-aux/syntax-check.mk +++ b/build-aux/syntax-check.mk @@ -534,7 +534,7 @@ sc_prohibit_select: # Prohibit the inclusion of . sc_prohibit_ctype_h: @prohibit='^# *include *' \ - 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='\