Adobe.com
Contents Suites Classes Class Index Member Index

SPTypes.h

Go to the documentation of this file.
00001 /***********************************************************************/
00002 /*                                                                     */
00003 /* SPTypes.h                                                           */
00004 /*                                                                     */
00005 /* ADOBE SYSTEMS INCORPORATED                                          */
00006 /* Copyright 1995-2007 Adobe Systems Incorporated.                     */
00007 /* All Rights Reserved.                                                */
00008 /*                                                                     */
00009 /* NOTICE:  Adobe permits you to use, modify, and distribute this file */
00010 /* in accordance with the terms of the Adobe license agreement         */
00011 /* accompanying it. If you have received this file from a source other */
00012 /* than Adobe, then your use, modification, or distribution of it      */
00013 /* requires the prior written permission of Adobe.                     */
00014 /*                                                                     */
00015 /* Patents Pending                                                     */
00016 /*                                                                     */
00017 /*                                                                     */
00018 /***********************************************************************/
00019 
00020 
00025 #ifndef __SPTypes__
00026 #define __SPTypes__
00027 
00028 
00029 /*******************************************************************************
00030  **
00031  **     Imports
00032  **
00033  **/
00034 
00035 #include "SPConfig.h"
00036 #include "AIBasicTypes.h"
00037 
00038 #include "SPHeaderBegin.h"
00039 
00040 /*
00041  *      You can replace SPTypes.h with your own. Define OTHER_SP_TYPES_H on the
00042  *      command line or in SPConfig.h to be the name of the replacement file.
00043  *
00044  *      Example:
00045  *
00046  *      #define OTHER_SP_TYPES_H "MySPTypes.h"
00047  *      #include "SPBasic.h"  // for example
00048  *
00049  *      Sweet Pea depends on TRUE, FALSE, SPErr, etc. Your replacement must
00050  *      define them.
00051  */
00052 
00053 #ifdef OTHER_SP_TYPES_H
00054 #include OTHER_SP_TYPES_H
00055 #else
00056 
00057 
00058 /*******************************************************************************
00059  **
00060  **     Constants
00061  **
00062  **/
00063 
00064 #ifdef __cplusplus
00065         #undef TRUE
00066         #define TRUE    true
00067 
00068         #undef FALSE
00069         #define FALSE   false
00070 #else
00071         #ifndef TRUE
00072         #define TRUE    1
00073         #endif
00074 
00075         #ifndef FALSE
00076         #define FALSE   0
00077         #endif
00078 #endif
00079 
00080 #ifndef NULL
00081 
00082 #ifdef MAC_ENV
00083 #if !defined(__cplusplus) && (defined(__SC__) || defined(THINK_C))
00084 #define NULL    ((void *) 0)
00085 #else
00086 #define NULL    0
00087 #endif
00088 #endif
00089 
00090 #ifdef WIN_ENV
00091 #ifdef __cplusplus
00092 #define NULL    0
00093 #else
00094 #define NULL    ((void *)0)
00095 #endif
00096 #endif
00097 
00098 #endif
00099 
00100 
00101 /*
00102  *      SPAPI is placed in front of procedure declarations in the API. On the Mac
00103  *      it used to be 'pascal', which forced consistent calling conventions across different
00104  *      compilers. No longer needed. On Windows it's nothing.
00105  *
00106  *      Example:
00107  *
00108  *      SPAPI void *SPAllocateBlock( long size, const char *debug, SPErr *error );
00109  *
00110  */
00111 
00112 #ifdef MAC_ENV
00113 #define SPAPI
00114 #endif
00115 
00116 #ifdef WIN_ENV
00117 #define SPAPI
00118 #endif
00119 
00120 
00121 #ifdef MAC_ENV
00122 
00124 typedef unsigned char SPBoolean;
00125 
00126 #endif
00127 
00128 
00129 #ifdef WIN_ENV
00130 
00132 typedef int SPBoolean;
00133 
00134 #endif
00135 
00136 typedef signed long SPInt32;
00137 
00138 /*******************************************************************************
00139  **
00140  **     Error Handling
00141  **
00142  **/
00143 
00160 typedef ai::int32 SPErr;
00161 
00162 
00163 #include "SPErrorCodes.h"
00164 
00165 #endif /* OTHER_SP_TYPES_H */
00166 
00167 #include "SPHeaderEnd.h"
00168 
00169 #endif


Contents Suites Classes Class Index Member Index
Adobe Solutions Network
 
Copyright © 2016 Adobe Systems Incorporated. All rights reserved.
Terms of Use Online Privacy Policy Adobe and accessibility Avoid software piracy Permissions and Trademarks