xref: /PHP-5.3/Zend/zend_types.h (revision 831fbcf3)
1 /*
2    +----------------------------------------------------------------------+
3    | Zend Engine                                                          |
4    +----------------------------------------------------------------------+
5    | Copyright (c) 1998-2013 Zend Technologies Ltd. (http://www.zend.com) |
6    +----------------------------------------------------------------------+
7    | This source file is subject to version 2.00 of the Zend license,     |
8    | that is bundled with this package in the file LICENSE, and is        |
9    | available through the world-wide-web at the following url:           |
10    | http://www.zend.com/license/2_00.txt.                                |
11    | If you did not receive a copy of the Zend license and are unable to  |
12    | obtain it through the world-wide-web, please send a note to          |
13    | license@zend.com so we can mail you a copy immediately.              |
14    +----------------------------------------------------------------------+
15    | Authors: Andi Gutmans <andi@zend.com>                                |
16    |          Zeev Suraski <zeev@zend.com>                                |
17    +----------------------------------------------------------------------+
18 */
19 
20 /* $Id$ */
21 
22 #ifndef ZEND_TYPES_H
23 #define ZEND_TYPES_H
24 
25 typedef unsigned char zend_bool;
26 typedef unsigned char zend_uchar;
27 typedef unsigned int zend_uint;
28 typedef unsigned long zend_ulong;
29 typedef unsigned short zend_ushort;
30 
31 #define HAVE_ZEND_LONG64
32 #ifdef ZEND_WIN32
33 typedef __int64 zend_long64;
34 typedef unsigned __int64 zend_ulong64;
35 #elif SIZEOF_LONG_LONG_INT == 8
36 typedef long long int zend_long64;
37 typedef unsigned long long int zend_ulong64;
38 #elif SIZEOF_LONG_LONG == 8
39 typedef long long zend_long64;
40 typedef unsigned long long zend_ulong64;
41 #else
42 # undef HAVE_ZEND_LONG64
43 #endif
44 
45 #ifdef _WIN64
46 typedef __int64 zend_intptr_t;
47 typedef unsigned __int64 zend_uintptr_t;
48 #else
49 typedef long zend_intptr_t;
50 typedef unsigned long zend_uintptr_t;
51 #endif
52 
53 typedef unsigned int zend_object_handle;
54 typedef struct _zend_object_handlers zend_object_handlers;
55 
56 typedef struct _zend_object_value {
57 	zend_object_handle handle;
58 	zend_object_handlers *handlers;
59 } zend_object_value;
60 
61 #endif /* ZEND_TYPES_H */
62 
63 /*
64  * Local variables:
65  * tab-width: 4
66  * c-basic-offset: 4
67  * indent-tabs-mode: t
68  * End:
69  */
70