Deleted Added
full compact
zend_API.h (1d33a3e9) zend_API.h (345e0255)
1/*
2 +----------------------------------------------------------------------+
3 | Zend Engine |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 1998-2004 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 |

--- 104 unchanged lines hidden (view full) ---

113 globals_ctor(&module_name##_globals);
114
115#endif
116
117
118
119#define INIT_CLASS_ENTRY(class_container, class_name, functions) INIT_OVERLOADED_CLASS_ENTRY(class_container, class_name, functions, NULL, NULL, NULL)
120
1/*
2 +----------------------------------------------------------------------+
3 | Zend Engine |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 1998-2004 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 |

--- 104 unchanged lines hidden (view full) ---

113 globals_ctor(&module_name##_globals);
114
115#endif
116
117
118
119#define INIT_CLASS_ENTRY(class_container, class_name, functions) INIT_OVERLOADED_CLASS_ENTRY(class_container, class_name, functions, NULL, NULL, NULL)
120
121#define INIT_OVERLOADED_CLASS_ENTRY(class_container, class_name, functions, handle_fcall, handle_propget, handle_propset) \
121#define INIT_OVERLOADED_CLASS_ENTRY_EX(class_container, class_name, functions, handle_fcall, handle_propget, handle_propset, handle_propunset, handle_propisset) \
122 { \
123 class_container.name = strdup(class_name); \
124 class_container.name_length = sizeof(class_name) - 1; \
125 class_container.builtin_functions = functions; \
126 class_container.constructor = NULL; \
127 class_container.destructor = NULL; \
128 class_container.clone = NULL; \
129 class_container.create_object = NULL; \
130 class_container.interface_gets_implemented = NULL; \
131 class_container.__call = handle_fcall; \
132 class_container.__get = handle_propget; \
133 class_container.__set = handle_propset; \
122 { \
123 class_container.name = strdup(class_name); \
124 class_container.name_length = sizeof(class_name) - 1; \
125 class_container.builtin_functions = functions; \
126 class_container.constructor = NULL; \
127 class_container.destructor = NULL; \
128 class_container.clone = NULL; \
129 class_container.create_object = NULL; \
130 class_container.interface_gets_implemented = NULL; \
131 class_container.__call = handle_fcall; \
132 class_container.__get = handle_propget; \
133 class_container.__set = handle_propset; \
134 class_container.__unset = handle_propunset; \
135 class_container.__isset = handle_propisset; \
134 class_container.serialize = NULL; \
135 class_container.unserialize = NULL; \
136 class_container.parent = NULL; \
137 class_container.num_interfaces = 0; \
138 class_container.interfaces = NULL; \
139 class_container.get_iterator = NULL; \
140 class_container.iterator_funcs.funcs = NULL; \
141 class_container.module = NULL; \
142 }
143
136 class_container.serialize = NULL; \
137 class_container.unserialize = NULL; \
138 class_container.parent = NULL; \
139 class_container.num_interfaces = 0; \
140 class_container.interfaces = NULL; \
141 class_container.get_iterator = NULL; \
142 class_container.iterator_funcs.funcs = NULL; \
143 class_container.module = NULL; \
144 }
145
146#define INIT_OVERLOADED_CLASS_ENTRY(class_container, class_name, functions, handle_fcall, handle_propget, handle_propset) \
147 INIT_OVERLOADED_CLASS_ENTRY_EX(class_container, class_name, functions, handle_fcall, handle_propget, handle_propset, NULL, NULL)
148
144int zend_next_free_module(void);
145
146BEGIN_EXTERN_C()
147ZEND_API int zend_get_parameters(int ht, int param_count, ...);
148ZEND_API int _zend_get_parameters_array(int ht, int param_count, zval **argument_array TSRMLS_DC);
149ZEND_API int zend_get_parameters_ex(int param_count, ...);
150ZEND_API int _zend_get_parameters_array_ex(int param_count, zval ***argument_array TSRMLS_DC);
151

--- 420 unchanged lines hidden ---
149int zend_next_free_module(void);
150
151BEGIN_EXTERN_C()
152ZEND_API int zend_get_parameters(int ht, int param_count, ...);
153ZEND_API int _zend_get_parameters_array(int ht, int param_count, zval **argument_array TSRMLS_DC);
154ZEND_API int zend_get_parameters_ex(int param_count, ...);
155ZEND_API int _zend_get_parameters_array_ex(int param_count, zval ***argument_array TSRMLS_DC);
156

--- 420 unchanged lines hidden ---