Rev 1702 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1702 | Rev 1780 | ||
---|---|---|---|
Line 43... | Line 43... | ||
43 | 43 | ||
44 | #include <arch/types.h> |
44 | #include <arch/types.h> |
45 | 45 | ||
46 | typedef struct va_list { |
46 | typedef struct va_list { |
47 | int pos; |
47 | int pos; |
48 | __u8 *last; |
48 | uint8_t *last; |
49 | } va_list; |
49 | } va_list; |
50 | 50 | ||
51 | #define va_start(ap, lst) \ |
51 | #define va_start(ap, lst) \ |
52 | (ap).pos = sizeof(lst); \ |
52 | (ap).pos = sizeof(lst); \ |
53 | (ap).last = (__u8 *) &(lst) |
53 | (ap).last = (uint8_t *) &(lst) |
54 | 54 | ||
55 | #define va_arg(ap, type) \ |
55 | #define va_arg(ap, type) \ |
56 | (*((type *)((ap).last + ((ap).pos += sizeof(type) ) - sizeof(type)))) |
56 | (*((type *)((ap).last + ((ap).pos += sizeof(type) ) - sizeof(type)))) |
57 | 57 | ||
58 | #define va_copy(dst,src) dst=src |
58 | #define va_copy(dst,src) dst=src |