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

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