Skip to content
Newer
Older
100644 97 lines (80 sloc) 3.76 KB
573b460 @andigutmans Zend Library
andigutmans authored Apr 7, 1999
1 /*
2 +----------------------------------------------------------------------+
3 | Zend Engine |
4 +----------------------------------------------------------------------+
4e19825 @felipensp - Year++
felipensp authored Jan 1, 2012
5 | Copyright (c) 1998-2012 Zend Technologies Ltd. (http://www.zend.com) |
573b460 @andigutmans Zend Library
andigutmans authored Apr 7, 1999
6 +----------------------------------------------------------------------+
d863d52 @sebastianbergmann Update headers.
sebastianbergmann authored Dec 11, 2001
7 | This source file is subject to version 2.00 of the Zend license, |
b5b1117 @zsuraski License update
zsuraski authored Jul 16, 1999
8 | that is bundled with this package in the file LICENSE, and is |
f68c7ff updating license information in the headers.
James Cox authored Jun 10, 2003
9 | available through the world-wide-web at the following url: |
d863d52 @sebastianbergmann Update headers.
sebastianbergmann authored Dec 11, 2001
10 | http://www.zend.com/license/2_00.txt. |
b5b1117 @zsuraski License update
zsuraski authored Jul 16, 1999
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. |
573b460 @andigutmans Zend Library
andigutmans authored Apr 7, 1999
14 +----------------------------------------------------------------------+
15 | Authors: Andi Gutmans <andi@zend.com> |
579bb2a - Fix the header (thanks Johannes)
Moriyoshi Koizumi authored Jul 20, 2008
16 | Zeev Suraski <zeev@zend.com> |
573b460 @andigutmans Zend Library
andigutmans authored Apr 7, 1999
17 +----------------------------------------------------------------------+
18 */
19
333406b - Added some missing CVS $Id$ tags, headers and footers.
foobar authored Feb 1, 2003
20 /* $Id$ */
b5b1117 @zsuraski License update
zsuraski authored Jul 16, 1999
21
a617217 Replace macros which begin with an underscore through an appropiately
Sascha Schumann authored Jul 3, 2000
22 #ifndef ZEND_VARIABLES_H
23 #define ZEND_VARIABLES_H
573b460 @andigutmans Zend Library
andigutmans authored Apr 7, 1999
24
25
1aa2c5c @zsuraski Ok, call me crazy, because I probably am.
zsuraski authored Apr 23, 1999
26 BEGIN_EXTERN_C()
f17aa81 @andigutmans - Apply Thies and Sterling's patch which doesn't call ctor/dtor funct…
andigutmans authored Sep 26, 2004
27
28 ZEND_API void _zval_dtor_func(zval *zvalue ZEND_FILE_LINE_DC);
29
453b49e Added a number of small performance tweaks and optimizations
Dmitry Stogov authored Apr 20, 2010
30 static zend_always_inline void _zval_dtor(zval *zvalue ZEND_FILE_LINE_DC)
f17aa81 @andigutmans - Apply Thies and Sterling's patch which doesn't call ctor/dtor funct…
andigutmans authored Sep 26, 2004
31 {
91fba38 - WS fix
Moriyoshi Koizumi authored Jul 20, 2008
32 if (zvalue->type <= IS_BOOL) {
33 return;
34 }
adb22f7 MFH:- Fix compile warning in debug mode
Jani Taskinen authored May 1, 2009
35 _zval_dtor_func(zvalue ZEND_FILE_LINE_RELAY_CC);
f17aa81 @andigutmans - Apply Thies and Sterling's patch which doesn't call ctor/dtor funct…
andigutmans authored Sep 26, 2004
36 }
37
67fc0f2 @andigutmans - Make zval_copy_ctor() return void like dtor(). No one ever checks the
andigutmans authored Sep 27, 2004
38 ZEND_API void _zval_copy_ctor_func(zval *zvalue ZEND_FILE_LINE_DC);
f17aa81 @andigutmans - Apply Thies and Sterling's patch which doesn't call ctor/dtor funct…
andigutmans authored Sep 26, 2004
39
453b49e Added a number of small performance tweaks and optimizations
Dmitry Stogov authored Apr 20, 2010
40 static zend_always_inline void _zval_copy_ctor(zval *zvalue ZEND_FILE_LINE_DC)
f17aa81 @andigutmans - Apply Thies and Sterling's patch which doesn't call ctor/dtor funct…
andigutmans authored Sep 26, 2004
41 {
91fba38 - WS fix
Moriyoshi Koizumi authored Jul 20, 2008
42 if (zvalue->type <= IS_BOOL) {
43 return;
44 }
adb22f7 MFH:- Fix compile warning in debug mode
Jani Taskinen authored May 1, 2009
45 _zval_copy_ctor_func(zvalue ZEND_FILE_LINE_RELAY_CC);
f17aa81 @andigutmans - Apply Thies and Sterling's patch which doesn't call ctor/dtor funct…
andigutmans authored Sep 26, 2004
46 }
47
e6bd536 Fixed issue with statics in traits.
Stefan Marr authored Jun 8, 2010
48 ZEND_API int zval_copy_static_var(zval **p TSRMLS_DC, int num_args, va_list args, zend_hash_key *key);
f17aa81 @andigutmans - Apply Thies and Sterling's patch which doesn't call ctor/dtor funct…
andigutmans authored Sep 26, 2004
49
1727c6a more EXTERN_C wrapping of ZEND_API prototypes
Hartmut Holzgraefe authored Feb 20, 2004
50 ZEND_API int zend_print_variable(zval *var);
62114c1 @zsuraski Destructors no longer return ints, the low level problem it was inten…
zsuraski authored Jan 17, 2000
51 ZEND_API void _zval_ptr_dtor(zval **zval_ptr ZEND_FILE_LINE_DC);
19ec7a0 - Provide appropriate way to destroy internal zval's.
Marcus Boerger authored Aug 24, 2003
52 ZEND_API void _zval_internal_dtor(zval *zvalue ZEND_FILE_LINE_DC);
53 ZEND_API void _zval_internal_ptr_dtor(zval **zvalue ZEND_FILE_LINE_DC);
d2f681c Fixed bug #50519 (segfault in garbage collection when using set_error…
Dmitry Stogov authored Jan 11, 2010
54 ZEND_API void _zval_dtor_wrapper(zval *zvalue);
aa8b27b @zsuraski Better debug macros
zsuraski authored Aug 27, 1999
55 #define zval_copy_ctor(zvalue) _zval_copy_ctor((zvalue) ZEND_FILE_LINE_CC)
56 #define zval_dtor(zvalue) _zval_dtor((zvalue) ZEND_FILE_LINE_CC)
57 #define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
19ec7a0 - Provide appropriate way to destroy internal zval's.
Marcus Boerger authored Aug 24, 2003
58 #define zval_internal_dtor(zvalue) _zval_internal_dtor((zvalue) ZEND_FILE_LINE_CC)
59 #define zval_internal_ptr_dtor(zvalue) _zval_internal_ptr_dtor((zvalue) ZEND_FILE_LINE_CC)
d2f681c Fixed bug #50519 (segfault in garbage collection when using set_error…
Dmitry Stogov authored Jan 11, 2010
60 #define zval_dtor_wrapper _zval_dtor_wrapper
aa8b27b @zsuraski Better debug macros
zsuraski authored Aug 27, 1999
61
81e0131 @zsuraski *** empty log message ***
zsuraski authored Aug 28, 1999
62 #if ZEND_DEBUG
4a03738 @andigutmans - Use zval_ctor_func() for wrapper and update the prototype to void
andigutmans authored Sep 27, 2004
63 ZEND_API void _zval_copy_ctor_wrapper(zval *zvalue);
62114c1 @zsuraski Destructors no longer return ints, the low level problem it was inten…
zsuraski authored Jan 17, 2000
64 ZEND_API void _zval_ptr_dtor_wrapper(zval **zval_ptr);
19ec7a0 - Provide appropriate way to destroy internal zval's.
Marcus Boerger authored Aug 24, 2003
65 ZEND_API void _zval_internal_dtor_wrapper(zval *zvalue);
66 ZEND_API void _zval_internal_ptr_dtor_wrapper(zval **zvalue);
aa8b27b @zsuraski Better debug macros
zsuraski authored Aug 27, 1999
67 #define zval_copy_ctor_wrapper _zval_copy_ctor_wrapper
68 #define zval_ptr_dtor_wrapper _zval_ptr_dtor_wrapper
19ec7a0 - Provide appropriate way to destroy internal zval's.
Marcus Boerger authored Aug 24, 2003
69 #define zval_internal_dtor_wrapper _zval_internal_dtor_wrapper
70 #define zval_internal_ptr_dtor_wrapper _zval_internal_ptr_dtor_wrapper
aa8b27b @zsuraski Better debug macros
zsuraski authored Aug 27, 1999
71 #else
4a03738 @andigutmans - Use zval_ctor_func() for wrapper and update the prototype to void
andigutmans authored Sep 27, 2004
72 #define zval_copy_ctor_wrapper _zval_copy_ctor_func
aa8b27b @zsuraski Better debug macros
zsuraski authored Aug 27, 1999
73 #define zval_ptr_dtor_wrapper _zval_ptr_dtor
19ec7a0 - Provide appropriate way to destroy internal zval's.
Marcus Boerger authored Aug 24, 2003
74 #define zval_internal_dtor_wrapper _zval_internal_dtor
75 #define zval_internal_ptr_dtor_wrapper _zval_internal_ptr_dtor
aa8b27b @zsuraski Better debug macros
zsuraski authored Aug 27, 1999
76 #endif
77
80486c9 export zval_add-ref and zvale_del_ref
Thies C. Arntzen authored Apr 21, 2000
78 ZEND_API void zval_add_ref(zval **p);
573b460 @andigutmans Zend Library
andigutmans authored Apr 7, 1999
79
1727c6a more EXTERN_C wrapping of ZEND_API prototypes
Hartmut Holzgraefe authored Feb 20, 2004
80 END_EXTERN_C()
81
62114c1 @zsuraski Destructors no longer return ints, the low level problem it was inten…
zsuraski authored Jan 17, 2000
82 #define ZVAL_DESTRUCTOR (void (*)(void *)) zval_dtor_wrapper
83 #define ZVAL_PTR_DTOR (void (*)(void *)) zval_ptr_dtor_wrapper
19ec7a0 - Provide appropriate way to destroy internal zval's.
Marcus Boerger authored Aug 24, 2003
84 #define ZVAL_INTERNAL_DTOR (void (*)(void *)) zval_internal_dtor_wrapper
85 #define ZVAL_INTERNAL_PTR_DTOR (void (*)(void *)) zval_internal_ptr_dtor_wrapper
80bab9d We're using ZVAL's now.
Andrei Zmievski authored Dec 21, 1999
86 #define ZVAL_COPY_CTOR (void (*)(void *)) zval_copy_ctor_wrapper
573b460 @andigutmans Zend Library
andigutmans authored Apr 7, 1999
87
88 #endif
333406b - Added some missing CVS $Id$ tags, headers and footers.
foobar authored Feb 1, 2003
89
90 /*
91 * Local variables:
92 * tab-width: 4
93 * c-basic-offset: 4
94 * indent-tabs-mode: t
95 * End:
96 */
Something went wrong with that request. Please try again.