summaryrefslogtreecommitdiff
path: root/devel/cqual/patches/patch-ca
blob: 520008c69a2defc89ef72157584452282c9d4dc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-ca,v 1.1 2006/01/19 04:21:39 rillig Exp $

Made the handling of the variadic macro arguments conforming to ISO C99.

--- src/cqual.h.orig	2003-09-10 20:52:04.000000000 +0200
+++ src/cqual.h	2006-01-19 04:28:23.000000000 +0100
@@ -60,11 +60,11 @@ void load_config_file_quals(const char *
 
 /* If you use fail_loc, you must give a 3rd argument!  Pass 0 if you
    don't need anything there. */
-#define fail_loc(l, s, args...) fail("(at %s:%ld) " s, ((l)->filename), ((l)->lineno), args)
+#define fail_loc(l, s, ...) fail("(at %s:%ld) " s, ((l)->filename), ((l)->lineno), __VA_ARGS__)
 
 /* If you use user_error_loc, you must give a 3rd argument!  Pass 0 if you
    don't need anything there. */
-#define user_error_loc(l, s, args...) user_error("(at %s:%ld) " s, ((l)->filename), ((l)->lineno), args)
+#define user_error_loc(l, s, ...) user_error("(at %s:%ld) " s, ((l)->filename), ((l)->lineno), __VA_ARGS__)
 
 EXTERN_C_END