home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / programm / 18363 < prev    next >
Encoding:
Text File  |  1992-11-13  |  1.2 KB  |  29 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!decwrl!apple!mumbo.apple.com!gallant.apple.com!blob
  3. From: blob@gallant.apple.com (Brian Bechtel)
  4. Subject: Re: A5 in libraries
  5. Message-ID: <1992Nov13.121041.4875@gallant.apple.com>
  6. Date: Fri, 13 Nov 1992 12:10:41 GMT
  7. References: <1992Nov12.234323.25616@informix.com>
  8. Organization: Apple Computer Inc.
  9. Lines: 18
  10.  
  11. sbill@informix.com (Bill Stackhouse) writes:
  12.  
  13.  
  14. >In a library developed under Think C or MPW C, what is the correct
  15. >way to write the functions that use quickdraw so they will work 
  16. >regardless of if it is called from a code resource or an appication?
  17. >Asked in another way, is there any way that a function can tell if
  18. >A5 is set correctly? Do I need one version for A5 use and another 
  19. >for A4 use? Do I assume A5 is ok and make the caller set and restore
  20. >A5? Of course the library is linked with either the code resource or
  21. >application.
  22.  
  23. Develop magazine, issue 10 (about to hit the distribution channel)
  24. contains an excellent article by Keith Rollin about globals in
  25. standalone code.  Also see the Tech Note on this subject, and Think's
  26. documentation for their compilers.
  27.  
  28. --Brian Bechtel     blob@apple.com     "My opinion, not Apple's"
  29.