home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.system
- Path: sparky!uunet!psinntp!python!raven!short
- From: short@microcom.com (Todd Short)
- Subject: Re: new Inside Mac : Pascal or C ?
- Message-ID: <1992Jul22.125412.20240@python.microcom.com>
- Sender: dan@python.microcom.com (Dan Bishop)
- Nntp-Posting-Host: raven
- Reply-To: short@microcom.com
- Organization: Microcom, Inc.
- References: <1992Jul21.162000.740@cnedcu51.bitnet>
- Date: Wed, 22 Jul 1992 12:54:12 GMT
- Lines: 20
-
- In article 740@cnedcu51.bitnet, ifstadelmann@cnedcu51.bitnet (Patrick Stadelmann) writes:
- > Hi
- > Does anyone know if the new Inside Mac will be written in C or in Pascal ?
- > Thank you
-
- The problem of using both C and Pascal is the calling convention! C places the
- last argument on the stack first, Pascal puts the first argument on first. Also,
- in C, the caller is supposed to clean up the stack, in Pascal, the callee does
- this. If you were able to use straight C in programming a Mac, then Apple would
- have to modify a lot of system calls. Windows uses the Pascal structure, and the
- "keyword" _pascal must be used in C to prototype it. As in:
-
- extern far _pascal FunctionToBeCalled(...);
-
- Do any Mac C programmer's know if this is true?
- ---
- -Todd Short
- /* short@python.eng.microcom.com */
- /* I don't own a Mac, but I'd like to buy one on TV */
-
-