]> Savannah Git Hosting - gnulib.git/commitdiff
maintainer-makefile: Prohibit BSD4.3/SysV u_char etc types.
authorSimon Josefsson <simon@josefsson.org>
Mon, 6 May 2024 13:01:10 +0000 (15:01 +0200)
committerSimon Josefsson <simon@josefsson.org>
Mon, 6 May 2024 13:01:10 +0000 (15:01 +0200)
* top/maint.mk (sc_unsigned_char, sc_unsigned_short)
(sc_unsigned_int, sc_unsigned_long): Add.

ChangeLog
top/maint.mk

index 6b969dddbe9f999df2690ac9039462a3d5a233b1..54ac701a98838ffd64b58f8d45eeacc4d93b2641 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-05-06  Simon Josefsson  <simon@josefsson.org>
+
+       maintainer-makefile: Prohibit BSD4.3/SysV u_char etc types.
+       * top/maint.mk (sc_unsigned_char, sc_unsigned_short)
+       (sc_unsigned_int, sc_unsigned_long): Add.
+
 2024-05-06  Simon Josefsson  <simon@josefsson.org>
 
        inet-ntop, inet-pton: Avoid obsolete u_char type.
index af865717c49a75213418ea2fc88f722c12f0c161..32228f4366b143f394e0d24317e16c4bec8ee786 100644 (file)
@@ -854,6 +854,24 @@ sc_obsolete_symbols:
        halt='do not use HAVE''_FCNTL_H or O'_NDELAY                    \
          $(_sc_search_regexp)
 
+# Prohibit BSD4.3/SysV u_char, u_short, u_int and u_long usage.
+sc_unsigned_char:
+       @prohibit=u''_char \
+       halt='don'\''t use u''_char; instead use unsigned char' \
+         $(_sc_search_regexp)
+sc_unsigned_short:
+       @prohibit=u''_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_unsigned_long:
+       @prohibit=u''_long \
+       halt='don'\''t use u''_long; instead use unsigned long' \
+         $(_sc_search_regexp)
+
 # FIXME: warn about definitions of EXIT_FAILURE, EXIT_SUCCESS, STREQ
 
 # Each nonempty ChangeLog line must start with a year number, or a TAB.