home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / e / emxdev8f.zip / STDARG.H < prev    next >
Text File  |  1992-11-12  |  496b  |  24 lines

  1. /* stdarg.h (emx+gcc) */
  2.  
  3. #if !defined (_STDARG_H)
  4. #define _STDARG_H
  5.  
  6. #if !defined (_VA_LIST)
  7. #define _VA_LIST
  8. typedef char *va_list;
  9. #endif
  10.  
  11. #if !defined (NULL)
  12. #define NULL ((void *)0)
  13. #endif
  14.  
  15. #define _VA_ROUND(t) ((sizeof (t) + 3) & -4)
  16.  
  17. #if !defined (va_start)
  18. #define va_start(ap,v) ap = (va_list)&v + ((sizeof (v) + 3) & -4)
  19. #define va_arg(ap,t) (ap += _VA_ROUND (t), *(t *)(ap - _VA_ROUND (t)))
  20. #define va_end(ap) ap = NULL
  21. #endif
  22.  
  23. #endif /* !defined (_STDARG_H) */
  24.