stdarg.h 427 B

12345678910111213141516
  1. #ifndef _STDARG_H
  2. #define _STDARG_H
  3. typedef char *va_list;
  4. /* only correct for i386 */
  5. #define va_start(ap,last) ap = ((char *)&(last)) + ((sizeof(last)+3)&~3)
  6. #define va_arg(ap,type) (ap += (sizeof(type)+3)&~3, *(type *)(ap - ((sizeof(type)+3)&~3)))
  7. #define va_copy(dest, src) (dest) = (src)
  8. #define va_end(ap)
  9. /* fix a buggy dependency on GCC in libio.h */
  10. typedef va_list __gnuc_va_list;
  11. #define _VA_LIST_DEFINED
  12. #endif