home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / programm / 22195 < prev    next >
Encoding:
Text File  |  1993-01-26  |  1.1 KB  |  27 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!ames!pacbell.com!well!well.sf.ca.us!folta
  3. From: folta@well.sf.ca.us (Stephen Folta)
  4. Subject: Re: Think C & #pragma parameter (was: help calling assembly from C)
  5. Message-ID: <folta.728035385@well.sf.ca.us>
  6. Sender: news@well.sf.ca.us
  7. Organization: Whole Earth 'Lectronic Link
  8. References: <2B6198C1.22487@news.service.uci.edu> <keith-240193173019@kip-50.taligent.com> <1jvlnrINNst4@crcnis1.unl.edu> <C1E4Hz.5BA@world.std.com>
  9. Distribution: usa
  10. Date: Tue, 26 Jan 1993 08:03:05 GMT
  11. Lines: 14
  12.  
  13.  
  14. Rich Siegel (siegel@world.std.com):
  15. > #pragma parameter is really a hack (which originated with MPW C) to
  16. > provide a way to call register-based traps without requiring an
  17. > external glue library; trying to use it for anything else is extending
  18. > it somewhat beyond its limits...
  19.  
  20. I use a PStrCpy that is declared as inline assembly with #pragma parameter.
  21. Of course it was kind of a pain to assemble it by hand, but it's only four
  22. instructions and I consider it well worth it, as this is a function that I
  23. use *very* often.
  24.  
  25. Steve Folta
  26. folta@well.sf.ca.us
  27.