Initial import of binutils 2.22 on the new vendor branch
[dragonfly.git] / sys / boot / efi / include / efistdarg.h
1 /*
2  * $FreeBSD: src/sys/boot/efi/include/efistdarg.h,v 1.1 2001/06/09 16:49:49 dfr Exp $
3  * $DragonFly: src/sys/boot/efi/include/efistdarg.h,v 1.1 2003/11/10 06:08:32 dillon Exp $
4  */
5 #ifndef _EFISTDARG_H_
6 #define _EFISTDARG_H_
7
8 /*++
9
10 Copyright (c) 1998  Intel Corporation
11
12 Module Name:
13
14     devpath.h
15
16 Abstract:
17
18     Defines for parsing the EFI Device Path structures
19
20
21
22 Revision History
23
24 --*/
25
26 #define _INTSIZEOF(n)   ( (sizeof(n) + sizeof(UINTN) - 1) & ~(sizeof(UINTN) - 1) )
27
28 typedef CHAR8 * va_list;
29
30 #define va_start(ap,v)  ( ap = (va_list)&v + _INTSIZEOF(v) )
31 #define va_arg(ap,t)    ( *(t *)((ap += _INTSIZEOF(t)) - _INTSIZEOF(t)) )
32 #define va_end(ap)  ( ap = (va_list)0 )
33
34
35 #endif  /* _INC_STDARG */