summaryrefslogtreecommitdiff
path: root/devel/check/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'devel/check/patches/patch-ab')
-rw-r--r--devel/check/patches/patch-ab28
1 files changed, 0 insertions, 28 deletions
diff --git a/devel/check/patches/patch-ab b/devel/check/patches/patch-ab
deleted file mode 100644
index f51bc2c3da8..00000000000
--- a/devel/check/patches/patch-ab
+++ /dev/null
@@ -1,28 +0,0 @@
-$NetBSD: patch-ab,v 1.2 2005/03/14 14:19:01 rillig Exp $
-
-This patch makes check compile with cpp-2.95.3. The bug which it fixes
-is quite subtile. When fail_if(x) is expanded, the preprocessor deletes
-the last token before the ##. For cpp-2.95, this token starts with the
-"f" of failed. Later versions of cpp just remove the comma.
-
---- src/check.h.in.orig Wed Aug 18 14:03:46 2004
-+++ src/check.h.in Mon Mar 14 13:29:49 2005
-@@ -157,15 +157,15 @@ static void __testname (void)\
- /* Fail the test case unless expr is true */
- #define fail_unless(expr, msg, args...)\
- _fail_unless(expr, __FILE__, __LINE__,\
-- msg ? msg : "Assertion '"#expr"' failed", ##args)
-+ msg ? msg : "Assertion '"#expr"' failed" , ##args)
-
- /* Fail the test case if expr is true */
- #define fail_if(expr, msg, args...)\
- _fail_unless(!(expr), __FILE__, __LINE__,\
-- msg ?msg :"Assertion '"#expr"' failed", ##args)
-+ msg ?msg :"Assertion '"#expr"' failed" , ##args)
-
- /* Always fail */
--#define fail(msg, args...) _fail_unless(0, __FILE__, __LINE__, msg, ##args)
-+#define fail(msg, args...) _fail_unless(0, __FILE__, __LINE__, msg , ##args)
-
- /* Non macro version of #fail_unless, with more complicated interface */
- void _fail_unless (int result, const char *file,