Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / arch / ia64 / stand / efi / include / efistdarg.h
blob661bfe142e444df3541b31706f824b591f28c188
1 /* $NetBSD: efistdarg.h,v 1.1 2006/04/07 14:21:29 cherry Exp $ */
2 /* $FreeBSD: src/sys/boot/efi/include/efistdarg.h,v 1.1 2001/06/09 16:49:49 dfr Exp $ */
4 #ifndef _EFISTDARG_H_
5 #define _EFISTDARG_H_
7 /*++
9 Copyright (c) 1998 Intel Corporation
11 Module Name:
13 devpath.h
15 Abstract:
17 Defines for parsing the EFI Device Path structures
21 Revision History
23 --*/
25 #define _INTSIZEOF(n) ( (sizeof(n) + sizeof(UINTN) - 1) & ~(sizeof(UINTN) - 1) )
27 typedef CHAR8 * va_list;
29 #define va_start(ap,v) ( ap = (va_list)&v + _INTSIZEOF(v) )
30 #define va_arg(ap,t) ( *(t *)((ap += _INTSIZEOF(t)) - _INTSIZEOF(t)) )
31 #define va_end(ap) ( ap = (va_list)0 )
34 #endif /* _INC_STDARG */