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