home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1995 March / Macworld CD-ROM (March 1995).cdr / Updaters / Symantec C++ 6.0.1 Update / Library Updates / Mac #includes / Mac #includes.c next >
Encoding:
C/C++ Source or Header  |  1993-08-12  |  7.9 KB  |  594 lines  |  [TEXT/KAHL]

  1.  
  2. /*
  3.  *  Mac #includes.c - source to MacHeaders
  4.  *
  5.  *  To add a header, change its "#if 0" to "#if 1".
  6.  *
  7.  *  To remove a header, change its "#if 1" to "#if 0".
  8.  *
  9.  *  There are some conflicts and order dependencies among the various
  10.  *  headers:
  11.  *
  12.  *    •    <LoMem.h> and <SysEqu.h> cannot both be included.
  13.  *
  14.  *    •    <asm.h> and <Traps.h>, if both are included, must appear
  15.  *        in that order.  If <Traps.h> is included, traps used in
  16.  *        inline assembly must appear without leading underscores.
  17.  *
  18.  *  If the "Check Pointer Types" option is disabled during the
  19.  *  precompilation process, trap definitions will be stored in
  20.  *  such a way that when a trap is called (in a source file that
  21.  *  #includes the precompiled header), pointer arguments to the
  22.  *  trap will not be matched against the types of corresponding
  23.  *  formal parameters.
  24.  *
  25.  *  This is accomplished by storing "simplified" prototypes for
  26.  *  traps, in which any argument of pointer type is stored as
  27.  *  "void *".  The result closely resembles the treatment of traps
  28.  *  in pre-5.0 versions of THINK C.
  29.  *
  30.  *  (Note that this file is written in such a way that it is immune
  31.  *  to the actual compiler setting of "Check Pointer Types".  Use
  32.  *  the "SIMPLIFY_PROTOTYPES" macro, below, to control whether full
  33.  *  prototypes are retained.)
  34.  *
  35.  *    Note that none of the foregoing applies to Symantec C++, nor to 
  36.  *    Symantec C/C++ for MPW. This file is #included by the source for
  37.  *    MacHeaders++, the precompiled header for Symantec C++. If a compiler
  38.  *    other than THINK C precompiles this file, asm.h and LoMem.h are
  39.  *    #if'd out. If an MPW-hosted compiler precompiles this file, BDC.h
  40.  *    and pascal.h are #if'd out.
  41.  *
  42.  */
  43.  
  44. #ifndef _H_MacHeaders
  45. #define _H_MacHeaders
  46.  
  47.  
  48. #ifndef __SC__
  49.  
  50. // set this to 0 (zero) to retain full prototypes
  51. // set this to 1 (one) for "simplified" prototypes
  52. #define SIMPLIFY_PROTOTYPES        0
  53.  
  54.  
  55. // prototype checking level
  56. #if SIMPLIFY_PROTOTYPES
  57.     #if !__option(check_ptrs)
  58.         #undef SIMPLIFY_PROTOTYPES
  59.     #endif
  60.     #pragma options(!check_ptrs)
  61. #else
  62.     #if __option(check_ptrs)
  63.         #undef SIMPLIFY_PROTOTYPES
  64.     #endif
  65.     #pragma options(check_ptrs)
  66. #endif
  67.  
  68. #endif
  69.  
  70. // ActionAtomIntf
  71.     #if 0
  72.         #include <ActionAtomIntf.h>
  73.     #endif
  74.  
  75. // ADSP
  76.     #if 0
  77.         #include <ADSP.h>
  78.     #endif
  79.  
  80. // AEObjects
  81.     #if 0
  82.         #include <AEObjects.h>
  83.     #endif
  84.     
  85. // AEPackObject
  86.     #if 0
  87.         #include <AEPackObject.h>
  88.     #endif
  89.  
  90. // AERegistry
  91.     #if 0
  92.         #include <AERegistry.h>
  93.     #endif
  94.     
  95. // AIFF
  96.     #if 0
  97.         #include <AIFF.h>
  98.     #endif
  99.  
  100. // Aliases
  101.     #if 0
  102.         #ifdef __APPLETALK__
  103.             #include <Aliases.h>
  104.         #else
  105.             #define __APPLETALK__            // suppress unnecessary #include <AppleTalk.h>
  106.             #include <Aliases.h>
  107.             #undef __APPLETALK__
  108.         #endif
  109.     #endif
  110.  
  111. // AppleEvents
  112.     #if 0
  113.         #ifdef __EPPC__
  114.             #include <AppleEvents.h>
  115.         #else
  116.             #define __EPPC__                // suppress unnecessary #include <EPPC.h>
  117.             #include <AppleEvents.h>
  118.             #undef __EPPC__
  119.         #endif
  120.     #endif
  121.  
  122. // AppleTalk
  123.     #if 0
  124.         #include <AppleTalk.h>
  125.     #endif
  126.  
  127. // Balloons
  128.     #if 0
  129.         #ifdef __TRAPS__
  130.             #include <Balloons.h>
  131.         #else
  132.             #define __TRAPS__                // suppress unnecessary #include <Traps.h>
  133.             #define _Pack14 0xA830            // (well, mostly unnecessary...)
  134.             #include <Balloons.h>
  135.             #undef _Pack14
  136.             #undef __TRAPS__
  137.         #endif
  138.     #endif
  139.  
  140. // BDC
  141.     #if 1
  142.         #include <BDC.h>
  143.     #endif
  144.  
  145. // CommResources
  146.     #if 0
  147.         #include <CommResources.h>
  148.     #endif
  149.  
  150. // Components
  151.     #if 0
  152.         #include <Components.h>
  153.     #endif
  154.  
  155. // Connections
  156.     #if 0
  157.         #include <Connections.h>
  158.     #endif
  159.  
  160. // ConnectionTools
  161.     #if 0
  162.         #include <ConnectionTools.h>
  163.     #endif
  164.  
  165. // Controls
  166.     #if 1
  167.         #include <Controls.h>
  168.     #endif
  169.  
  170. // CRMSerialDevices
  171.     #if 0
  172.         #include <CRMSerialDevices.h>
  173.     #endif
  174.  
  175. // CTBUtilities
  176.     #if 0
  177.         #include <CTBUtilities.h>
  178.     #endif
  179.  
  180. // DatabaseAccess
  181.     #if 0
  182.         #include <DatabaseAccess.h>
  183.     #endif
  184.  
  185. // Desk
  186.     #if 1
  187.         #include <Desk.h>
  188.     #endif
  189.  
  190. // DeskBus
  191.     #if 0
  192.         #include <DeskBus.h>
  193.     #endif
  194.  
  195. // Devices
  196.     #if 1
  197.         #include <Devices.h>
  198.     #endif
  199.  
  200. // Dialogs
  201.     #if 1
  202.         #include <Dialogs.h>
  203.     #endif
  204.  
  205. // DiskInit
  206.     #if 1
  207.         #include <DiskInit.h>
  208.     #endif
  209.  
  210. // Disks
  211.     #if 0
  212.         #include <Disks.h>
  213.     #endif
  214.  
  215. // Editions
  216.     #if 0
  217.         #include <Editions.h>
  218.     #endif
  219.  
  220. // ENET
  221.     #if 0
  222.         #include <ENET.h>
  223.     #endif
  224.  
  225. // EPPC
  226.     #if 0
  227.         #include <EPPC.h>
  228.     #endif
  229.  
  230. // Errors
  231.     #if 1
  232.         #include <Errors.h>
  233.     #endif
  234.  
  235. // Events
  236.     #if 1
  237.         #include <Events.h>
  238.     #endif
  239.  
  240. // Files
  241.     #if 1
  242.         #include <Files.h>
  243.     #endif
  244.  
  245. // FileTransfers
  246.     #if 0
  247.         #include <FileTransfers.h>
  248.     #endif
  249.  
  250. // FileTransferTools
  251.     #if 0
  252.         #include <FileTransferTools.h>
  253.     #endif
  254.  
  255. // Finder
  256.     #if 0
  257.         #include <Finder.h>
  258.     #endif
  259.  
  260. // FixMath
  261.     #if 0
  262.         #include <FixMath.h>
  263.     #endif
  264.  
  265. // Folders
  266.     #if 0
  267.         #include <Folders.h>
  268.     #endif
  269.  
  270. // Fonts
  271.     #if 1
  272.         #include <Fonts.h>
  273.     #endif
  274.  
  275. // GestaltEqu
  276.     #if 0
  277.         #include <GestaltEqu.h>
  278.     #endif
  279.  
  280. // Graf3D
  281.     #if 0
  282.         #include <Graf3D.h>
  283.     #endif
  284.  
  285. // HyperXCmd
  286.     #if 0
  287.         #include <HyperXCmd.h>
  288.     #endif
  289.  
  290. // Icons
  291.     #if 0
  292.         #include <Icons.h>
  293.     #endif
  294.  
  295. // ImageCodec
  296.     #if 0
  297.         #include <ImageCodec.h>
  298.     #endif
  299.  
  300. // ImageCompression
  301.     #if 0
  302.         #include <ImageCompression.h>
  303.     #endif
  304.     
  305. // Language
  306.     #if 0
  307.         #include <Language.h>
  308.     #endif
  309.  
  310. // Lists
  311.     #if 1
  312.         #include <Lists.h>
  313.     #endif
  314.  
  315. // MediaHandlers
  316.     #if 0
  317.         #include <MediaHandlers.h>
  318.     #endif
  319.  
  320. // Memory
  321.     #if 1
  322.         #include <Memory.h>
  323.     #endif
  324.  
  325. // Menus
  326.     #if 1
  327.         #include <Menus.h>
  328.     #endif
  329.  
  330. // MIDI
  331.     #if 0
  332.         #include <MIDI.h>
  333.     #endif
  334.  
  335. // Movies
  336.     #if 0
  337.         #include <Movies.h>
  338.     #endif
  339.  
  340. // MoviesFormat
  341.     #if 0
  342.         #include <MoviesFormat.h>
  343.     #endif
  344.         
  345. // Notification
  346.     #if 1
  347.         #include <Notification.h>
  348.     #endif
  349.  
  350. // OSEvents
  351.     #if 1
  352.         #include <OSEvents.h>
  353.     #endif
  354.  
  355. // OSUtils
  356.     #if 1
  357.         #include <OSUtils.h>
  358.     #endif
  359.  
  360. // Packages
  361.     #if 0
  362.         #include <Packages.h>
  363.     #endif
  364.  
  365. // Palette
  366.     #if 0
  367.         #include <Palette.h>
  368.     #endif
  369.  
  370. // Palettes
  371.     #if 0
  372.         #include <Palettes.h>
  373.     #endif
  374.  
  375. // Picker
  376.     #if 0
  377.         #include <Picker.h>
  378.     #endif
  379.  
  380. // PictUtil
  381.     #if 0
  382.         #include <PictUtil.h>
  383.     #endif
  384.  
  385. // Power
  386.     #if 0
  387.         #include <Power.h>
  388.     #endif
  389.  
  390. // PPCToolBox
  391.     #if 0
  392.         #include <PPCToolBox.h>
  393.     #endif
  394.  
  395. // Printing
  396.     #if 0
  397.         #include <Printing.h>
  398.     #endif
  399.  
  400. // PrintTraps
  401.     #if 1
  402.         #include <PrintTraps.h>
  403.     #endif
  404.  
  405. // Processes
  406.     #if 0
  407.         #include <Processes.h>
  408.     #endif
  409.  
  410. // QDOffscreen
  411.     #if 0
  412.         #include <QDOffscreen.h>
  413.     #endif
  414.  
  415. // Quickdraw
  416.     #if 1
  417.         #include <Quickdraw.h>
  418.     #endif
  419.  
  420. // QuickTimeComponents
  421.     #if 0
  422.         #include <QuickTimeComponents.h>
  423.     #endif
  424.     
  425. // Resources
  426.     #if 1
  427.         #include <Resources.h>
  428.     #endif
  429.  
  430. // Retrace
  431.     #if 0
  432.         #include <Retrace.h>
  433.     #endif
  434.  
  435. // ROMDefs
  436.     #if 0
  437.         #include <ROMDefs.h>
  438.     #endif
  439.  
  440. // SANE
  441.     #if 0
  442.         #include <SANE.h>
  443.     #endif
  444.  
  445. // Scrap
  446.     #if 1
  447.         #include <Scrap.h>
  448.     #endif
  449.  
  450. // Script
  451.     #if 0
  452.         #include <Script.h>
  453.     #endif
  454.  
  455. // SCSI
  456.     #if 0
  457.         #include <SCSI.h>
  458.     #endif
  459.  
  460. // SegLoad
  461.     #if 1
  462.         #include <SegLoad.h>
  463.     #endif
  464.  
  465. // Serial
  466.     #if 0
  467.         #include <Serial.h>
  468.     #endif
  469.  
  470. // ShutDown
  471.     #if 0
  472.         #include <ShutDown.h>
  473.     #endif
  474.  
  475. // Slots
  476.     #if 0
  477.         #include <Slots.h>
  478.     #endif
  479.  
  480. // Sound
  481.     #if 0
  482.         #include <Sound.h>
  483.     #endif
  484.  
  485. // SoundInput
  486.     #if 0
  487.         #include <SoundInput.h>
  488.     #endif
  489.  
  490. // StandardFile
  491.     #if 1
  492.         #include <StandardFile.h>
  493.     #endif
  494.  
  495. // Start
  496.     #if 0
  497.         #include <Start.h>
  498.     #endif
  499.  
  500. // SysEqu
  501.     #if 0
  502.         #include <SysEqu.h>
  503.     #endif
  504.  
  505. // Terminals
  506.     #if 0
  507.         #include <Terminals.h>
  508.     #endif
  509.  
  510. // TerminalTools
  511.     #if 0
  512.         #include <TerminalTools.h>
  513.     #endif
  514.  
  515. // TextEdit
  516.     #if 1
  517.         #include <TextEdit.h>
  518.     #endif
  519.  
  520. // Timer
  521.     #if 1
  522.         #include <Timer.h>
  523.     #endif
  524.  
  525. // ToolUtils
  526.     #if 1
  527.         #include <ToolUtils.h>
  528.     #endif
  529.  
  530. // Types
  531.     #if 1
  532.         #include <Types.h>
  533.     #endif
  534.  
  535. // Values
  536.     #if 0
  537.         #include <Values.h>
  538.     #endif
  539.  
  540. // Video
  541.     #if 0
  542.         #include <Video.h>
  543.     #endif
  544.  
  545. // Windows
  546.     #if 1
  547.         #include <Windows.h>
  548.     #endif
  549.  
  550. // pascal.h
  551.     #if 1
  552.         #include <pascal.h>
  553.     #endif
  554.  
  555. // asm.h
  556. #ifdef THINK_C
  557.     #if 1
  558.         #include <asm.h>
  559.     #endif
  560. #else
  561.     #if 0
  562.         #include <asm.h>
  563.     #endif
  564. #endif
  565.  
  566. // LoMem
  567.     #if 1 && !defined(__cplusplus)
  568.         #include <LoMem.h>
  569.     #endif
  570.  
  571. // THINK
  572.     #if 1
  573.         #include <THINK.h>
  574.     #endif
  575.  
  576. // Traps
  577.     #if 0
  578.         #include <Traps.h>
  579.     #endif
  580.  
  581.  
  582. #ifndef __SC__
  583.  
  584. // restore "Check Pointer Types" to previous setting
  585. #if SIMPLIFY_PROTOTYPES
  586.     #pragma options(check_ptrs)
  587. #elif defined(SIMPLIFY_PROTOTYPES)
  588.     #pragma options(!check_ptrs)
  589. #endif
  590. #undef SIMPLIFY_PROTOTYPES
  591.  
  592. #endif
  593. #endif
  594.