[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] maint.mk: three new prohibit_<HDR>_without_use rules
From: |
Jim Meyering |
Subject: |
[PATCH] maint.mk: three new prohibit_<HDR>_without_use rules |
Date: |
Wed, 18 May 2011 14:41:41 +0200 |
FYI, three more prohibit_<HDR>_without_use rules:
>From 2c25c9ebe8db1415bfde25f0a451767332c8cf59 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Fri, 13 May 2011 23:35:48 +0200
Subject: [PATCH] maint.mk: three new prohibit_<HDR>_without_use rules
* top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
(sc_prohibit_stdio-safer_without_use): Likewise.
(sc_prohibit_xfreopen_without_use): Likewise.
---
ChangeLog | 7 +++++++
top/maint.mk | 14 ++++++++++++++
2 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c326081..ffea473 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-13 Jim Meyering <address@hidden>
+
+ maint.mk: three new prohibit_<HDR>_without_use rules
+ * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
+ (sc_prohibit_stdio-safer_without_use): Likewise.
+ (sc_prohibit_xfreopen_without_use): Likewise.
+
2011-05-17 Jim Meyering <address@hidden>
announce-gen: fail if the NEWS delta is empty
diff --git a/top/maint.mk b/top/maint.mk
index d0d33e4..c838516 100644
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -568,6 +568,16 @@ sc_prohibit_signal_without_use:
re='\<($(_sig_function_re)) *\(|\<($(_sig_syms_re))\>' \
$(_sc_header_without_use)
+# Don't include stdio--.h unless you use one of its functions.
+sc_prohibit_stdio--_without_use:
+ @h='"stdio--.h"' re='\<((f(re)?|p)open|tmpfile) *\(' \
+ $(_sc_header_without_use)
+
+# Don't include stdio-safer.h unless you use one of its functions.
+sc_prohibit_stdio-safer_without_use:
+ @h='"stdio-safer.h"' re='\<((f(re)?|p)open|tmpfile)_safer *\(' \
+ $(_sc_header_without_use)
+
# Prohibit the inclusion of strings.h without a sensible use.
# Using the likes of bcmp, bcopy, bzero, index or rindex is not sensible.
sc_prohibit_strings_without_use:
@@ -595,6 +605,10 @@ sc_prohibit_stddef_without_use:
re='\<($(_stddef_syms_re)) *\(' \
$(_sc_header_without_use)
+# Don't include xfreopen.h unless you use one of its functions.
+sc_prohibit_xfreopen_without_use:
+ @h='"xfreopen.h"' re='\<xfreopen *\(' $(_sc_header_without_use)
+
sc_obsolete_symbols:
@prohibit='\<(HAVE''_FCNTL_H|O''_NDELAY)\>' \
halt='do not use HAVE''_FCNTL_H or O'_NDELAY \
--
1.7.5.1.341.g177b8
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] maint.mk: three new prohibit_<HDR>_without_use rules,
Jim Meyering <=