david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

Add our own trivial version of stdarg.h. This makes our build

entirely self-hosted (which avoids problems when building the same
tree on multiple systems - e.g. when you have /home NFS-mounted).

Also saves around 50 bytes in total - not sure why.
This commit is contained in:
Michael Brown 2007-06-09 18:11:07 +01:00
parent f7b4b77c2e
commit adf6c8e2a6
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
#ifndef _STDARG_H
#define _STDARG_H
typedef void * va_list;
#define va_start( ap, last ) do { \
ap = ( &last + 1 ); \
} while ( 0 )
#define va_arg( ap, type ) ({ \
type *_this = ap; \
ap = ( _this + 1 ); \
*(_this); \
})
#define va_end( ap ) do { } while ( 0 )
#define va_copy( dest, src ) do { \
dest = src; \
} while ( 0 )
#endif /* _STDARG_H */