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