wizard-type.h

Go to the documentation of this file.
00001 /*
00002   Copyright 1999-2010 ImageMagick Studio LLC, a non-profit organization
00003   dedicated to making software imaging solutions freely available.
00004   
00005   You may not use this file except in compliance with the License.
00006   obtain a copy of the License at
00007   
00008     http://www.wizards-toolkit.org/script/license.php
00009   
00010   Unless required by applicable law or agreed to in writing, software
00011   distributed under the License is distributed on an "AS IS" BASIS,
00012   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013   See the License for the specific language governing permissions and
00014   limitations under the License.
00015 
00016   Wizard's Toolkit structure members.
00017 */
00018 #ifndef _WIZARDSTOOLKIT_WIZARD_TYPE_H
00019 #define _WIZARDSTOOLKIT_WIZARD_TYPE_H
00020 
00021 #if defined(__cplusplus) || defined(c_plusplus)
00022 extern "C" {
00023 #endif
00024 
00025 typedef enum
00026 {
00027   WizardFalse = 0,
00028   WizardTrue = 1
00029 } WizardBooleanType;
00030 
00031 #if defined(WIZARDSTOOLKIT_WINDOWS_SUPPORT) && !defined(__MINGW32__)
00032 #  define WizardLLConstant(c)  (WizardOffsetType) (c ## i64)
00033 #  define WizardULLConstant(c)  (WizardSizeType) (c ## ui64)
00034 #else
00035 #  define WizardLLConstant(c)  (WizardOffsetType) (c ## LL)
00036 #  define WizardULLConstant(c)  (WizardSizeType) (c ## ULL)
00037 #endif
00038 
00039 /*
00040   Typedef declarations.
00041 */
00042 typedef unsigned int WizardStatusType;
00043 #if !defined(WIZARDSTOOLKIT_WINDOWS_SUPPORT)
00044 #if (WIZARDSTOOLKIT_SIZEOF_UNSIGNED_LONG_LONG == 8)
00045 typedef long long WizardOffsetType;
00046 typedef unsigned long long WizardSizeType;
00047 #define WizardOffsetFormat  "lld"
00048 #define WizardSizeFormat  "llu"
00049 #else
00050 typedef ssize_t WizardOffsetType;
00051 typedef size_t WizardSizeType;
00052 #define WizardOffsetFormat  "lu"
00053 #define WizardSizeFormat  "lu"
00054 #endif
00055 #else
00056 typedef __int64 WizardOffsetType;
00057 typedef unsigned __int64 WizardSizeType;
00058 #define WizardOffsetFormat  "I64i"
00059 #define WizardSizeFormat  "I64u"
00060 #endif
00061 
00062 #if defined(macintosh)
00063 #define ExceptionInfo  WizardExceptionInfo
00064 #endif
00065 
00066 #if defined(__cplusplus) || defined(c_plusplus)
00067 }
00068 #endif
00069 
00070 #endif
Generated by  doxygen 1.6.2-20100208