home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!cs.utexas.edu!usc!rpi!uwm.edu!psuvax1!rutgers!ub!acsu.buffalo.edu!triantos
- From: triantos@acsu.buffalo.edu (Nick B Triantos)
- Newsgroups: comp.sys.mac.programmer
- Subject: Help needed translating from MPW to THINK C ...
- Message-ID: <Bu6tnD.I96@acsu.buffalo.edu>
- Date: 7 Sep 92 03:59:34 GMT
- Sender: nntp@acsu.buffalo.edu
- Distribution: comp
- Organization: The University at Buffalo
- Lines: 39
- Originator: triantos@autarch.acsu.buffalo.edu
- Nntp-Posting-Host: autarch.acsu.buffalo.edu
-
- Hi,
-
- I'm trying to compile the source to Windows 3 (Name correct?), the program that
- lets me show everyone that my Mac can run Windows (Check it out before you
- flame me). Anyway, I'm trying to compile it in THINK, and, after some minor
- changes, I'm getting errors caused by the line below. It's used as follows:
-
- extern void _DataInit();
-
- /* This routine is part of the MPW runtime library. This external
- reference to it is done so that we can unload its segment, %A5Init. */
-
-
- #pragma segment Main
- void main(void)
- {
- UnloadSeg((Ptr) _DataInit); /* note that _DataInit must not
-
- be in Main! */
-
- /* 1.01 - call to ForceEnvirons removed */
-
- /* If you have stack requirements that differ from the default,
- then you could use SetApplLimit to increase StackSpace at
- this point, before calling MaxApplZone. */
- MaxApplZone(); /* expand the heap so
- code segments load at the top */
-
- My question is, how can I make this part work in THINK? I have tried just
- commenting it out ("When in doubt, comment it out"), and, well, that was a
- stupid idea. Any others?
-
- Thanks,
- -Nick
- --
- Nick Triantos internet: triantos@acsu.buffalo.edu
- AOL: Triantos
- "Scientists tell us that the fastest animal on earth, with a top speed of
- 120 ft/sec, is a cow that has been dropped out of a helicopter." - Dave Barry
-