From 90f512bb93d9aa5b9b1c1c38991c0b53283db45d Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Sat, 4 May 2024 01:34:39 -0700 Subject: [PATCH 1/2] cfg.mk: Add checks for 'u_int'. * cfg.mk (sc_unsigned_int): New rule. (sc_unsigned_short): Correct type in error message. --- cfg.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cfg.mk b/cfg.mk index 9eddbcf2..1be7e6f9 100644 --- a/cfg.mk +++ b/cfg.mk @@ -82,7 +82,12 @@ sc_unsigned_long: sc_unsigned_short: @prohibit=u''_short \ - halt='don'\''t use u''_char; instead use unsigned short' \ + halt='don'\''t use u''_short; instead use unsigned short' \ + $(_sc_search_regexp) + +sc_unsigned_int: + @prohibit=u''_int \ + halt='don'\''t use u''_int; instead use unsigned int' \ $(_sc_search_regexp) sc_assignment_in_if: -- 2.44.0