OSSP CVS Repository

ossp - Difference in ossp-pkg/l2/l2_p.h versions 1.2 and 1.3
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/l2/l2_p.h 1.2 -> 1.3

--- l2_p.h       2001/05/17 14:41:30     1.2
+++ l2_p.h       2001/05/19 20:08:30     1.3
@@ -56,5 +56,24 @@
     l2_format_t  *formatters[L2_MAX_FORMATTERS];
 };
 
+/* variable argument handling taking care on argument passing conventions */
+#define _va_type_recv_char    int
+#define _va_type_cast_char    char
+#define _va_type_recv_short   int
+#define _va_type_cast_short   short
+#define _va_type_recv_int     int
+#define _va_type_cast_int     int
+#define _va_type_recv_long    long
+#define _va_type_cast_long    long
+#define _va_type_recv_float   double
+#define _va_type_cast_float   double
+#define _va_type_recv_double  double
+#define _va_type_cast_double  double
+#define _va_type_recv_charptr void *
+#define _va_type_cast_charptr char *
+#define _va_type_recv_voidptr void *
+#define _va_type_cast_voidptr void *
+#define va_get(ap,type) (_va_type_cast_##type)va_arg((ap),_va_type_recv_##type)
+
 #endif /* __L2_P_H__ */
 

CVSTrac 2.0.1