home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / minix / 4352 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  1.4 KB

  1. Path: sparky!uunet!mcsun!uknet!dsbc!ozz!harvey!kdw
  2. From: kdw@oasis.icl.co.uk (Keith Walker)
  3. Newsgroups: comp.os.minix
  4. Subject: Re: error when compiling c68 v4 source code for c68.
  5. Message-ID: <834@ozz.oasis.icl.co.uk>
  6. Date: 1 Sep 92 10:11:30 GMT
  7. References: <9208290342.AA04722@ucbvax.Berkeley.EDU>
  8. Sender: news@oasis.icl.co.uk
  9. Organization: International Computers Limited
  10. Lines: 23
  11. Nntp-Posting-Host: harvey.oasis.icl.co.uk
  12.  
  13. In article <9208290342.AA04722@ucbvax.Berkeley.EDU> glalonde@vnet.ibm.com ("Glen Lalonde") writes:
  14. >The file msgout.c had an include of varagrs.h, this file is not on
  15. >my system(MacMinix 1.5.10) anyone else have trouble compiling it?
  16. >Can I just use stdargs.h?????
  17.  
  18. Yes you can use stdargs.h provided that you use a compiler which
  19. supports ANSI C style varardic function definitions, e.g. the posted
  20. c68 binary,  due to the way that we configured msgout.c (we plan to
  21. make this selection easier next version).  You will also probably have
  22. to add the vfprintf() function which has just recently been posted to
  23. your C library.  However if you want to use varargs.h here is the
  24. version that I have:
  25.  
  26. /*  varargs.h  */
  27.  
  28. typedef char *va_list;
  29.  
  30. #define  va_dcl        int va_alist;
  31. #define  va_start(p)    (p) = (va_list) &va_alist;
  32. #define  va_arg(p,type)    ( (type *) ((p)+=sizeof(type)) )[-1]
  33. #define  va_end(p)
  34. Keith Walker, ICL, Lovelace Rd., Bracknell, Berkshire, United Kingdom RG12 8SN
  35. Email: kdw@oasis.icl.co.uk; Phone: +44 344 424842 x2209; Fax: +44 344 487832
  36.