MagickCore 7.0.10
wizard-type.h
Go to the documentation of this file.
1/*
2 Copyright @ 1999 ImageMagick Studio LLC, a non-profit organization
3 dedicated to making software imaging solutions freely available.
4
5 You may not use this file except in compliance with the License.
6 obtain a copy of the License at
7
8 https://imagemagick.org/script/license.php
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16 Wizard's Toolkit structure members.
17*/
18#ifndef _WIZARDSTOOLKIT_WIZARD_TYPE_H
19#define _WIZARDSTOOLKIT_WIZARD_TYPE_H
20
21#if defined(__cplusplus) || defined(c_plusplus)
22extern "C" {
23#endif
24
25typedef enum
26{
28 WizardTrue = 1
30
31#if defined(WIZARDSTOOLKIT_WINDOWS_SUPPORT) && !defined(__MINGW32__) && !defined(__MINGW64__)
32# define WizardLLConstant(c) (WizardOffsetType) (c ## i64)
33# define WizardULLConstant(c) (WizardSizeType) (c ## ui64)
34#else
35# define WizardLLConstant(c) (WizardOffsetType) (c ## LL)
36# define WizardULLConstant(c) (WizardSizeType) (c ## ULL)
37#endif
38
39/*
40 Typedef declarations.
41*/
42typedef unsigned int WizardStatusType;
43#if !defined(WIZARDSTOOLKIT_WINDOWS_SUPPORT)
44#if (WIZARDSTOOLKIT_SIZEOF_UNSIGNED_LONG_LONG == 8)
45typedef long long WizardOffsetType;
46typedef unsigned long long WizardSizeType;
47#define WizardOffsetFormat "lld"
48#define WizardSizeFormat "llu"
49#else
50typedef ssize_t WizardOffsetType;
51typedef size_t WizardSizeType;
52#define WizardOffsetFormat "lu"
53#define WizardSizeFormat "lu"
54#endif
55#else
56typedef __int64 WizardOffsetType;
57typedef unsigned __int64 WizardSizeType;
58#define WizardOffsetFormat "I64i"
59#define WizardSizeFormat "I64u"
60#endif
61
62#if defined(macintosh)
63#define ExceptionInfo WizardExceptionInfo
64#endif
65
66#if defined(__cplusplus) || defined(c_plusplus)
67}
68#endif
69
70#endif
size_t WizardSizeType
Definition wizard-type.h:51
ssize_t WizardOffsetType
Definition wizard-type.h:50
WizardBooleanType
Definition wizard-type.h:26
@ WizardTrue
Definition wizard-type.h:28
@ WizardFalse
Definition wizard-type.h:27
unsigned int WizardStatusType
Definition wizard-type.h:42