Imported Upstream version 2.5.1
[debian/amanda] / common-src / arglist.h
index 1c87202cda094d6697c0d9bd8607691273584140..e18b4a79e5fb485096d33f0b6db03f5d98e53fee 100644 (file)
@@ -24,7 +24,7 @@
  * file named AUTHORS, in the root directory of this distribution.
  */
 /*
- * $Id: arglist.h,v 1.7 2002/12/03 21:36:39 martinea Exp $
+ * $Id: arglist.h,v 1.9 2006/06/16 11:33:43 martinea Exp $
  *
  * support macros for variable argument list declaration and definition
  */
              arg2_type arg2_name, \
              hook_type hook_name, ...)
 
+#define printf_arglist_function3(fdecl, \
+                                arg1_type, arg1_name, \
+                                arg2_type, arg2_name, \
+                                arg3_type, arg3_name, \
+                                hook_type, hook_name) \
+       __attribute__ ((format (printf, 4, 0))) \
+       fdecl(arg1_type arg1_name, \
+             arg2_type arg2_name, \
+             arg3_type arg3_name, \
+             hook_type hook_name, ...)
+
 #define arglist_function(fdecl, \
                         hook_type, hook_name) \
         fdecl(hook_type hook_name, ...)