home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d1xx / d131 / mg1b.lha / Mg1b / Source / amiga / varargs.h < prev   
Text File  |  1988-03-14  |  345b  |  12 lines

  1. /*
  2.  * Varargs, for use on AmigaDOS with the Lattice C compiler,
  3.  *    or (maybe?) the Manx compiler with 32-bit ints.
  4.  *    Blatantly lifted from 4.2BSD.
  5.  */
  6.  
  7. typedef char        *va_list;
  8. #define va_dcl        int va_alist;
  9. #define va_start(pv)    pv = (char *) &va_alist
  10. #define va_end(pv)    /* Naught to do... */
  11. #define va_arg(pv, t)    ((t *) (pv += sizeof(t)))[-1]
  12.