carbonheaders.c

Go to the documentation of this file.
00001 
00002 /*  $Id: carbonheaders.c 355 2005-01-11 22:48:55Z andreradke $    */
00003 
00004 /*
00005  *  MacHeaders.c
00006  *
00007  *  Script to generate the 'MacHeaders<xxx>' precompiled header for Metrowerks C/C++.
00008  *  Copyright  1993 metrowerks inc.  All rights reserved.
00009  */
00010 
00011 /*
00012  *  Required for c-style toolbox glue function: c2pstr and p2cstr
00013  *  the inverse operation (pointers_in_A0) is performed at the end ...
00014  */
00015 
00016 #if !(powerc || __CFM68K__)
00017  #pragma d0_pointers on
00018 #endif
00019 
00020 
00021 //Code change by Timothy Paustian Friday, April 28, 2000 9:40:09 PM
00022 //For carbon support
00023 #undef ACCESSOR_CALLS_ARE_FUNCTIONS
00024 #define ACCESSOR_CALLS_ARE_FUNCTIONS 1
00025 #undef OPAQUE_TOOLBOX_STRUCTS
00026 #define OPAQUE_TOOLBOX_STRUCTS 1
00027 //Code change by Timothy Paustian Saturday, June 3, 2000 10:02:03 PM
00028 //Changed to Opaque call for Carbon
00029 //nows its time to start the final shift to carbon.
00030 //When this flag is set you have to link against the carbonLib.
00031 #define TARGET_API_MAC_CARBON 1
00032 
00033 /*  To allow the use of ToolBox calls which have now become obsolete on PowerPC, but
00034  *  which are still needed for System 6 applications, we need to #define OBSOLETE.  If
00035  *  your application will never use these calls then you can comment out this #define.
00036  *  NB: This is only for 68K ...
00037  */
00038 
00039 #define     MSL_USE_PRECOMPILED_HEADERS 0
00040 #define     OLDROUTINENAMES     0
00041 #define     OLDROUTINELOCATIONS 0
00042 #define     CGLUESUPPORTED 0
00043 
00044 //#if !defined(powerc) && !defined(OBSOLETE)
00045 // #define OBSOLETE 1
00046 //#endif
00047 
00048 /*
00049  *  Metrowerks-specific definitions
00050  *
00051  *  These definitions are commonly used but not in Apple's headers. We define
00052  *  them in our precompiled header so we can use the Apple headers without modification.
00053  */
00054 
00055 #define PtoCstr     p2cstr
00056 #define CtoPstr     c2pstr
00057 #define PtoCString  p2cstr
00058 #define CtoPString  c2pstr
00059 
00060 #define topLeft(r)  (((Point *) &(r))[0])
00061 #define botRight(r) (((Point *) &(r))[1])
00062 
00063 #define TRUE        true
00064 #define FALSE       false
00065 
00066 #ifndef powerc
00067  #include <MixedMode.h>
00068  long GetCurrentA5(void)
00069   ONEWORDINLINE(0x200D);
00070 #endif
00071 
00072 /*
00073  *  Apple #include files
00074  *
00075  *  Uncomment any additional #includes you want to add to MacHeaders.
00076  */
00077 
00078 #pragma syspath_once on
00079 
00080 //  #include <ADSP.h>
00081     #include <AEObjects.h>
00082     #include <AEPackObject.h>
00083     #include <AERegistry.h>
00084     #include <AEUserTermTypes.h>
00085 //  #include <AIFF.h>
00086     #include <Aliases.h>
00087     #include <AppleEvents.h>
00088 //  #include <AppleGuide.h>
00089     #include <AppleScript.h>
00090 //  #include <AppleTalk.h>
00091 //  #include <ASDebugging.h>
00092 //  #include <ASRegistry.h>
00093 //  #include <Balloons.h>
00094 //  #include <CMApplication.h>
00095 //  #include <CMComponent.h>
00096 //  #include <CodeFragments.h>
00097     #include <ColorPicker.h>
00098 //  #include <CommResources.h>
00099 //  #include <Components.h>
00100     #include <ConditionalMacros.h>
00101 //  #include <Connections.h>
00102 //  #include <ConnectionTools.h>
00103     #include <Controls.h>
00104     //Code change by Timothy Paustian Saturday, April 29, 2000 9:29:50 PM
00105     //Changed to allow Use of Universal Headers 3.3.1
00106     #include <ControlDefinitions.h>
00107 //  #include <ControlStrip.h>
00108 //  #include <CRMSerialDevices.h>
00109 //  #include <CTBUtilities.h>
00110 //  #include <CursorCtl.h>
00111 //  #include <CursorDevices.h>
00112 //  #include <DatabaseAccess.h>
00113 //  #include <DeskBus.h>
00114     #include <Devices.h>
00115     #include <Dialogs.h>
00116 //  #include <Dictionary.h>
00117 //  #include <DisAsmLookup.h>
00118 //  #include <Disassembler.h>
00119     #include <DiskInit.h>
00120 //  #include <Disks.h>
00121 //  #include <Displays.h>
00122 //  #include <Drag.h>
00123 //  #include <Editions.h>
00124 //  #include <ENET.h>
00125     #include <EPPC.h>
00126 //  #include <ErrMgr.h>
00127     #include <Errors.h>
00128     #include <Events.h>
00129 //  #include <fenv.h>
00130     #include <Files.h>
00131 //  #include <FileTransfers.h>
00132 //  #include <FileTransferTools.h>
00133     #include <FileTypesAndCreators.h>
00134 //  #include <Finder.h>
00135     #include <FixMath.h>
00136     #include <Folders.h>
00137     #include <Fonts.h>
00138 //  #include <fp.h>
00139 //  #include <FragLoad.h>
00140 //  #include <FSM.h>
00141     #include <Gestalt.h>
00142 //  #include <HyperXCmd.h>
00143     #include <Icons.h>
00144 //  #include <ImageCodec.h>
00145 //  #include <ImageCompression.h>
00146 //  #include <IntlResources.h>
00147 //  #include <Language.h>
00148     #include <Lists.h>
00149     #include <LowMem.h>
00150 //  #include <MachineExceptions.h>
00151 //  #include <MacTCP.h>
00152 //  #include <MediaHandlers.h>
00153     #include <Memory.h>
00154     #include <Menus.h>
00155 //  #include <MIDI.h>
00156     #include <MixedMode.h>
00157 //  #include <Movies.h>
00158 //  #include <MoviesFormat.h>
00159 //  #include <Notification.h>
00160 //  #include <OSA.h>
00161 //  #include <OSAComp.h>
00162 //  #include <OSAGeneric.h>
00163     #include <OSUtils.h>
00164     #include <Packages.h>
00165 //  #include <Palettes.h>
00166 //  #include <Picker.h>
00167 //  #include <PictUtil.h>
00168 //  #include <PictUtils.h>
00169     #include <PLStringFuncs.h>
00170 //  #include <Power.h>
00171 //  #include <PPCToolbox.h>
00172     #include <Printing.h>
00173     #include <Processes.h>
00174 //  #include <QDOffscreen.h>
00175     #include <Quickdraw.h>
00176 //  #include <QuickdrawText.h>
00177 //  #include <QuickTimeComponents.h>
00178     #include <Resources.h>
00179 //  #include <Retrace.h>
00180 //  #include <ROMDefs.h>
00181 #ifndef powerc
00182 //  #include <SANE.h>
00183 #endif
00184     #include <Scrap.h>
00185     //Code change by Timothy Paustian Sunday, May 7, 2000 8:37:27 PM
00186     //Needed for compilation with UH 3.4
00187     #include <Script.h>
00188 //  #include <SCSI.h>
00189     #include <SegLoad.h>
00190 //  #include <Serial.h>
00191 //  #include <ShutDown.h>
00192 //  #include <Slots.h>
00193     #include <Sound.h>
00194 //  #include <SoundComponents.h>
00195 //  #include <SoundInput.h>
00196 //  #include <Speech.h>
00197     #include <StandardFile.h>
00198 //  #include <Start.h>
00199     #include <Strings.h>
00200 //  #include <Terminals.h>
00201 //  #include <TerminalTools.h>
00202     #include <TextEdit.h>
00203 //  #include <TextServices.h>
00204     #include <TextUtils.h>
00205     #include <Threads.h>
00206 //  #include <Timer.h>
00207     #include <ToolUtils.h>
00208 //  #include <Translation.h>
00209 //  #include <TranslationExtensions.h>
00210     #include <Traps.h>
00211 //  #include <TSMTE.h>
00212     #include <Types.h>
00213 //  #include <Unmangler.h>
00214 //  #include <Video.h>
00215     #include <Windows.h>
00216 //  #include <WorldScript.h>
00217 
00218 
00219 /*
00220  *  required for c-style toolbox glue function: c2pstr and p2cstr
00221  *  (match the inverse operation at the start of the file ...
00222  */
00223 
00224 #if !(powerc || __CFM68K__)
00225  #pragma d0_pointers reset
00226 #endif
00227 
00228     #define MACVERSION 1
00229     #define fldebug 1
00230     #define flnewfeatures 1
00231     #define version42orgreater 1
00232     #define version5orgreater 1
00233     #define flcomponent 1
00234     #define isFrontier 1
00235     #undef dropletcomponent
00236     #undef fliowa
00237     #define threadverbs 1
00238     #define oplanglists 1
00239     #ifdef __powerc
00240         #define noextended 1
00241     #else
00242         #define noextended 0
00243     #endif
00244     #define macBirdRuntime 1
00245     #undef appRunsCards /*for Applet Toolkit, Iowa Runtime is baked in*/
00246     #define iowaRuntimeInApp /*iowa code knows it's in an app*/
00247     #define iowaRuntime /*iowa code knows it's not compiling in Card Editor*/
00248     #define cmdPeriodKillsCard
00249     #define IOAinsideApp /*all the IOA's are baked into the app*/
00250     #undef coderesource /*we're not running inside a code resource*/
00251     #include <stdlib.h>
00252     #include <stdio.h>
00253     #include <standard.h>
00254     #include "quickdraw.h"
00255     #include "dialogs.h"
00256     #include "threads.h"
00257 
00258 #pragma syspath_once off

Generated on Wed May 31 18:19:44 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6