home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!cs.utexas.edu!wupost!csus.edu!netcom.com!netcomsv!verity.com!pokey.verity.com!anders
- From: Anders Wallgren <anders@verity.com>
- Subject: Re: Desperate MPW Questions!
- Organization: Verity
- Date: Sat, 9 Jan 93 02:57:58 GMT
- Message-ID: <1993Jan9.025758.29712@verity.com>
- X-Xxmessage-Id: <A7737F366C018F97@pokey.verity.com>
- X-Useragent: Nuntius v1.1.1d17
- References: <43205@sdcc12.ucsd.edu>
- Sender: usenet@verity.com (USENET News)
- X-Xxdate: Fri, 8 Jan 93 02:57:58 GMT
- Lines: 68
-
- In article <43205@sdcc12.ucsd.edu> Whitney Cunha,
- whitney@cs.ucsd.edu writes:
- >1) Why won't MPW C handle function parameters that are pointers to
- functions?
- > int ksort ( int x, int y, int (*comp)() );
- > MPW can't handle the pointer part. Yet this is right out of
- K&R, pg 119.
- > THINK C 5.0 has no problem with this.
- >
-
- No, MPW can't handle the 'comp' part - comp is a reserved word in
- the MPW compiler.
-
- >2) How do you link the math functions! I have included the
- libraries
- > "{CLibraries}"Math.o, and then even tried compiling with the
- 68881 processor.
- > For example, link here won't be able to find sqrt:
- > #include <stdio.h>
- > #include <math.h>
- > void main ( )
- > { float x = 9.0;
- > printf ("The sqrt is %f\n", sqrt(x));
- > }
- > Is it something to do with the sqrt being extended and it's
- trying to find a
- > float sqrt? If you get this to work, can you send me your file
- and MakeFile?
-
- sqrt is in the CSANELib.o library (or CSANELib881.o if you're using
- the coprocessor).
-
- >3) I am the only programmer where I work and the only programmer I
- know who
- > uses MPW. Is this the only place to get help? Calling Apple
- for help is
- > equivalent to dropping a brick on my foot (they tell me to call
- the dealer
- > who's never heard of MPW - that's why they are salesman
- dammit!). Is there
- > anyplace where you can pay for tech services (it'd be worth
- it!)?
-
- I haven't heard of any place that provides MPW support in exchange
- for money, except for Apple - you may want to consider becoming a
- Third Party Developer (or whatever they call it these days). If
- you can get into the right program, you will get Tech Support from
- Apple. On the other hand, I've seen many questions get answered on
- the net (and answered a couple myself), so you might be able to get
- along fine on that, as long as you're comfortable with the lack of
- guaranteed service.
-
- >4) Since I have you here, is there any way to make it so that the
- > return key works like the enter key? And is there a full
- version
- > of 'vi' available for the Mac (one where you can resize
- windows)?
- > Where do you get those helpful items like Tech notes and such?
-
- Somewhere along the line, the MPW SetKey command showed up - I'm
- not sure if there's a primitive for the Enter command, but you
- might want to look around there. I don't know about any versions
- of vi (or why you'd want one ;)). For tech notes, either join up
- with the developer program, get a subscription to Develop (which
- gets you the developer CD, I believe), buy ETO, or try
- ftp.apple.com (they tend to be a little out of date here).
-
- anders
-