home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / programm / 22097 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  1.6 KB

  1. Path: sparky!uunet!usc!davidp
  2. From: davidp@stealth.usc.edu (David Peterson)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: MPW VarArgs.h?
  5. Date: 24 Jan 1993 18:46:23 -0800
  6. Organization: University of Southern California, Los Angeles, CA
  7. Lines: 24
  8. Distribution: world
  9. Message-ID: <1jvk9vINN302@stealth.usc.edu>
  10. References: <1993Jan22.164614.11185@novell.com>
  11. Reply-To: davidp@usc.edu
  12. NNTP-Posting-Host: stealth.usc.edu
  13.  
  14.  
  15. In article <1993Jan22.164614.11185@novell.com>, Duane Murphy <damurphy@wc.novell.com> writes:
  16. |> 
  17. |> I am porting a program from the Unix world to the Macintosh.  At one 
  18. |> point we had everything working pretty well in Think C.  We also would 
  19. |> like to compile the program in MPW.  However, I have discovered that MPW 
  20. |> does not support the (outdated) varargs.h file.  I am using the MPW from 
  21. |> ETO 9 (C compiler 3.2.4).
  22. |> 
  23. |> Varags.h is (kind of) an older version of stdarg.h.  The varagrs 
  24. |> mechanism is used in many places in the code and I would rather not 
  25. |> change that (I would like to keep those code changes to a minimum).  I 
  26. |> looked at Think C's stdarg.h and varargs.h, compared them to MPW's 
  27. |> stdarg.h (which is slightly different) and I came up with this for 
  28. |> VarArgs.h for MPW.
  29. |> 
  30.  
  31. Change your UNIX code to use the macros in stdarg.h, they make your code
  32. a lot easier read (at least to me). If this is impractical, just copy over
  33. the varargs.h file from your UNIX box. If you don't like that because of
  34. various garbage legal issues (or whatever) find an old ETO disk, some of
  35. the older versions of MPW had a varargs.h file.
  36.  
  37. -dave.
  38.