home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Libraries / VideoToolbox 94.11.17 / VideoToolboxSources / VideoToolbox.c < prev    next >
Encoding:
Text File  |  1994-11-06  |  2.2 KB  |  48 lines  |  [TEXT/KAHL]

  1. /*
  2. VideoToolbox.c
  3. Use this file to ask your compiler to precompile the VideoToolbox.h header. 
  4. (If your aim is to produce an external code resource for MATLAB then use 
  5. VideoToolboxMATLAB.c instead of this file.) Put all the pre-compiled headers in
  6. "VideoToolbox:VideoToolboxSources: Precompiled headers". 
  7.  
  8. Here's my naming convention for pre-compiled headers:
  9. "VideoToolbox.pre" = THINK C, 68k, 2-byte int, "universal" floating point (works w or w/o 8881 fpu).
  10. "VideoToolbox.68k.4i.881.pre" = CodeWarrior, 68k, 4-byte int, 12-byte double for 8881.
  11. "VideoToolbox.68k.4i.pre" = CodeWarrior, 68k, 4-byte int, 10-byte double for no fpu.
  12. "VideoToolbox.ppc.pre" = CodeWarrior, PowerPC, necessarily 4-byte int and 8-byte double.
  13.  
  14. INSTRUCTIONS:
  15. While you have this file open, select Precompile from CodeWarrior's Project menu
  16. or THINK C’s Source menu. Save the result as "VideoToolbox.68k.4i.881.pre" (or
  17. whatever is appropriate, see above) in the "VideoToolbox:VideoToolboxSources:
  18. Precompiled headers" folder. You can then speed up the compilation of any
  19. project roughly tenfold by typing "VideoToolbox.68k.4i.881.pre" (or whichever
  20. prefix file you prefer) into the CodeWarrior Prefix file field of the Language
  21. preferences. Or, in THINK C, type the line
  22.     #include "VideoToolbox.pre"
  23. into the Edit:Options:THINK C:Prefix window. 
  24.  
  25. Note that Precompilation ignores the prefix.
  26.  
  27. Unfortunately none of the compilers check whether a precompiled header is out of
  28. date. If you update any of the Apple, Standard C, or VideoToolbox.h headers,
  29. then you should recreate the precompiled header. Also, the precompiled header
  30. will reflect the compiler and language settings in effect at the time of
  31. precompilation (e.g. size of int and double), so if you have different projects
  32. with different settings then you may need various versions of the precompiled
  33. header.
  34.  
  35. You can add this file to your project. It won't generate any code or affect your
  36. project in any way. It merely keeps this file handy.
  37.  
  38. HISTORY:
  39. 2/27/93    dgp    Wrote it.
  40. 4/22/93    dgp    Updated comments.
  41. 9/8/93    dgp    Updated comments.
  42. 9/12/93    dgp    Updated comments.
  43. 9/15/93    dgp    Updated comments.
  44. 10/20/94 dgp Update comments.
  45. */
  46. //#include "MacHeaders"    // Occasionally included just for debugging purposes
  47. #include "VideoToolbox.h"
  48.