From fdde921b6d70f3178e5895465a8519153c6bf867 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Sun, 15 Nov 2009 16:30:10 +0100 Subject: Update gnulib files. --- maint.mk | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'maint.mk') diff --git a/maint.mk b/maint.mk index 73ea8eaec1..34d66e1d14 100644 --- a/maint.mk +++ b/maint.mk @@ -289,6 +289,23 @@ sc_prohibit_error_without_use: re='\new(file => "/dev/stdin")->as_string'|sed 's/\?://g' +# Note this was produced by the above: +# _xa1 = x(alloc_(oversized|die)|([cz]|2?re)alloc|m(alloc|emdup)|strdup) +# But we can do better: +_xa1 = x(alloc_(oversized|die)|([cmz]|2?re)alloc|(mem|str)dup) +_xa2 = X([CZ]|N?M)ALLOC +sc_prohibit_xalloc_without_use: + @h='"xalloc.h"' \ + re='\<($(_xa1)|$(_xa2)) *\('\ + $(_header_without_use) + sc_prohibit_safe_read_without_use: @h='"safe-read.h"' re='(\|\