home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 21058 < prev    next >
Encoding:
Text File  |  1993-01-08  |  3.1 KB  |  83 lines

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