xref: /PHP-8.3/ext/spl/spl_dllist_arginfo.h (revision 7b355e8d)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: b88d228873f2d8e0caa583fd80c70ce2bfc51188 */
3 
4 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplDoublyLinkedList_add, 0, 2, IS_VOID, 0)
5 	ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
6 	ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
7 ZEND_END_ARG_INFO()
8 
9 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplDoublyLinkedList_pop, 0, 0, IS_MIXED, 0)
10 ZEND_END_ARG_INFO()
11 
12 #define arginfo_class_SplDoublyLinkedList_shift arginfo_class_SplDoublyLinkedList_pop
13 
14 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplDoublyLinkedList_push, 0, 1, IS_VOID, 0)
15 	ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
16 ZEND_END_ARG_INFO()
17 
18 #define arginfo_class_SplDoublyLinkedList_unshift arginfo_class_SplDoublyLinkedList_push
19 
20 #define arginfo_class_SplDoublyLinkedList_top arginfo_class_SplDoublyLinkedList_pop
21 
22 #define arginfo_class_SplDoublyLinkedList_bottom arginfo_class_SplDoublyLinkedList_pop
23 
24 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplDoublyLinkedList___debugInfo, 0, 0, IS_ARRAY, 0)
25 ZEND_END_ARG_INFO()
26 
27 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplDoublyLinkedList_count, 0, 0, IS_LONG, 0)
28 ZEND_END_ARG_INFO()
29 
30 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplDoublyLinkedList_isEmpty, 0, 0, _IS_BOOL, 0)
31 ZEND_END_ARG_INFO()
32 
33 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplDoublyLinkedList_setIteratorMode, 0, 1, IS_LONG, 0)
34 	ZEND_ARG_TYPE_INFO(0, mode, IS_LONG, 0)
35 ZEND_END_ARG_INFO()
36 
37 #define arginfo_class_SplDoublyLinkedList_getIteratorMode arginfo_class_SplDoublyLinkedList_count
38 
39 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplDoublyLinkedList_offsetExists, 0, 1, _IS_BOOL, 0)
40 	ZEND_ARG_INFO(0, index)
41 ZEND_END_ARG_INFO()
42 
43 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplDoublyLinkedList_offsetGet, 0, 1, IS_MIXED, 0)
44 	ZEND_ARG_INFO(0, index)
45 ZEND_END_ARG_INFO()
46 
47 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplDoublyLinkedList_offsetSet, 0, 2, IS_VOID, 0)
48 	ZEND_ARG_INFO(0, index)
49 	ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
50 ZEND_END_ARG_INFO()
51 
52 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplDoublyLinkedList_offsetUnset, 0, 1, IS_VOID, 0)
53 	ZEND_ARG_INFO(0, index)
54 ZEND_END_ARG_INFO()
55 
56 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplDoublyLinkedList_rewind, 0, 0, IS_VOID, 0)
57 ZEND_END_ARG_INFO()
58 
59 #define arginfo_class_SplDoublyLinkedList_current arginfo_class_SplDoublyLinkedList_pop
60 
61 #define arginfo_class_SplDoublyLinkedList_key arginfo_class_SplDoublyLinkedList_count
62 
63 #define arginfo_class_SplDoublyLinkedList_prev arginfo_class_SplDoublyLinkedList_rewind
64 
65 #define arginfo_class_SplDoublyLinkedList_next arginfo_class_SplDoublyLinkedList_rewind
66 
67 #define arginfo_class_SplDoublyLinkedList_valid arginfo_class_SplDoublyLinkedList_isEmpty
68 
69 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplDoublyLinkedList_unserialize, 0, 1, IS_VOID, 0)
70 	ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
71 ZEND_END_ARG_INFO()
72 
73 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplDoublyLinkedList_serialize, 0, 0, IS_STRING, 0)
74 ZEND_END_ARG_INFO()
75 
76 #define arginfo_class_SplDoublyLinkedList___serialize arginfo_class_SplDoublyLinkedList___debugInfo
77 
78 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplDoublyLinkedList___unserialize, 0, 1, IS_VOID, 0)
79 	ZEND_ARG_TYPE_INFO(0, data, IS_ARRAY, 0)
80 ZEND_END_ARG_INFO()
81 
82 #define arginfo_class_SplQueue_enqueue arginfo_class_SplDoublyLinkedList_push
83 
84 #define arginfo_class_SplQueue_dequeue arginfo_class_SplDoublyLinkedList_pop
85 
86 
87 ZEND_METHOD(SplDoublyLinkedList, add);
88 ZEND_METHOD(SplDoublyLinkedList, pop);
89 ZEND_METHOD(SplDoublyLinkedList, shift);
90 ZEND_METHOD(SplDoublyLinkedList, push);
91 ZEND_METHOD(SplDoublyLinkedList, unshift);
92 ZEND_METHOD(SplDoublyLinkedList, top);
93 ZEND_METHOD(SplDoublyLinkedList, bottom);
94 ZEND_METHOD(SplDoublyLinkedList, __debugInfo);
95 ZEND_METHOD(SplDoublyLinkedList, count);
96 ZEND_METHOD(SplDoublyLinkedList, isEmpty);
97 ZEND_METHOD(SplDoublyLinkedList, setIteratorMode);
98 ZEND_METHOD(SplDoublyLinkedList, getIteratorMode);
99 ZEND_METHOD(SplDoublyLinkedList, offsetExists);
100 ZEND_METHOD(SplDoublyLinkedList, offsetGet);
101 ZEND_METHOD(SplDoublyLinkedList, offsetSet);
102 ZEND_METHOD(SplDoublyLinkedList, offsetUnset);
103 ZEND_METHOD(SplDoublyLinkedList, rewind);
104 ZEND_METHOD(SplDoublyLinkedList, current);
105 ZEND_METHOD(SplDoublyLinkedList, key);
106 ZEND_METHOD(SplDoublyLinkedList, prev);
107 ZEND_METHOD(SplDoublyLinkedList, next);
108 ZEND_METHOD(SplDoublyLinkedList, valid);
109 ZEND_METHOD(SplDoublyLinkedList, unserialize);
110 ZEND_METHOD(SplDoublyLinkedList, serialize);
111 ZEND_METHOD(SplDoublyLinkedList, __serialize);
112 ZEND_METHOD(SplDoublyLinkedList, __unserialize);
113 
114 
115 static const zend_function_entry class_SplDoublyLinkedList_methods[] = {
116 	ZEND_ME(SplDoublyLinkedList, add, arginfo_class_SplDoublyLinkedList_add, ZEND_ACC_PUBLIC)
117 	ZEND_ME(SplDoublyLinkedList, pop, arginfo_class_SplDoublyLinkedList_pop, ZEND_ACC_PUBLIC)
118 	ZEND_ME(SplDoublyLinkedList, shift, arginfo_class_SplDoublyLinkedList_shift, ZEND_ACC_PUBLIC)
119 	ZEND_ME(SplDoublyLinkedList, push, arginfo_class_SplDoublyLinkedList_push, ZEND_ACC_PUBLIC)
120 	ZEND_ME(SplDoublyLinkedList, unshift, arginfo_class_SplDoublyLinkedList_unshift, ZEND_ACC_PUBLIC)
121 	ZEND_ME(SplDoublyLinkedList, top, arginfo_class_SplDoublyLinkedList_top, ZEND_ACC_PUBLIC)
122 	ZEND_ME(SplDoublyLinkedList, bottom, arginfo_class_SplDoublyLinkedList_bottom, ZEND_ACC_PUBLIC)
123 	ZEND_ME(SplDoublyLinkedList, __debugInfo, arginfo_class_SplDoublyLinkedList___debugInfo, ZEND_ACC_PUBLIC)
124 	ZEND_ME(SplDoublyLinkedList, count, arginfo_class_SplDoublyLinkedList_count, ZEND_ACC_PUBLIC)
125 	ZEND_ME(SplDoublyLinkedList, isEmpty, arginfo_class_SplDoublyLinkedList_isEmpty, ZEND_ACC_PUBLIC)
126 	ZEND_ME(SplDoublyLinkedList, setIteratorMode, arginfo_class_SplDoublyLinkedList_setIteratorMode, ZEND_ACC_PUBLIC)
127 	ZEND_ME(SplDoublyLinkedList, getIteratorMode, arginfo_class_SplDoublyLinkedList_getIteratorMode, ZEND_ACC_PUBLIC)
128 	ZEND_ME(SplDoublyLinkedList, offsetExists, arginfo_class_SplDoublyLinkedList_offsetExists, ZEND_ACC_PUBLIC)
129 	ZEND_ME(SplDoublyLinkedList, offsetGet, arginfo_class_SplDoublyLinkedList_offsetGet, ZEND_ACC_PUBLIC)
130 	ZEND_ME(SplDoublyLinkedList, offsetSet, arginfo_class_SplDoublyLinkedList_offsetSet, ZEND_ACC_PUBLIC)
131 	ZEND_ME(SplDoublyLinkedList, offsetUnset, arginfo_class_SplDoublyLinkedList_offsetUnset, ZEND_ACC_PUBLIC)
132 	ZEND_ME(SplDoublyLinkedList, rewind, arginfo_class_SplDoublyLinkedList_rewind, ZEND_ACC_PUBLIC)
133 	ZEND_ME(SplDoublyLinkedList, current, arginfo_class_SplDoublyLinkedList_current, ZEND_ACC_PUBLIC)
134 	ZEND_ME(SplDoublyLinkedList, key, arginfo_class_SplDoublyLinkedList_key, ZEND_ACC_PUBLIC)
135 	ZEND_ME(SplDoublyLinkedList, prev, arginfo_class_SplDoublyLinkedList_prev, ZEND_ACC_PUBLIC)
136 	ZEND_ME(SplDoublyLinkedList, next, arginfo_class_SplDoublyLinkedList_next, ZEND_ACC_PUBLIC)
137 	ZEND_ME(SplDoublyLinkedList, valid, arginfo_class_SplDoublyLinkedList_valid, ZEND_ACC_PUBLIC)
138 	ZEND_ME(SplDoublyLinkedList, unserialize, arginfo_class_SplDoublyLinkedList_unserialize, ZEND_ACC_PUBLIC)
139 	ZEND_ME(SplDoublyLinkedList, serialize, arginfo_class_SplDoublyLinkedList_serialize, ZEND_ACC_PUBLIC)
140 	ZEND_ME(SplDoublyLinkedList, __serialize, arginfo_class_SplDoublyLinkedList___serialize, ZEND_ACC_PUBLIC)
141 	ZEND_ME(SplDoublyLinkedList, __unserialize, arginfo_class_SplDoublyLinkedList___unserialize, ZEND_ACC_PUBLIC)
142 	ZEND_FE_END
143 };
144 
145 
146 static const zend_function_entry class_SplQueue_methods[] = {
147 	ZEND_MALIAS(SplDoublyLinkedList, enqueue, push, arginfo_class_SplQueue_enqueue, ZEND_ACC_PUBLIC)
148 	ZEND_MALIAS(SplDoublyLinkedList, dequeue, shift, arginfo_class_SplQueue_dequeue, ZEND_ACC_PUBLIC)
149 	ZEND_FE_END
150 };
151 
152 
153 static const zend_function_entry class_SplStack_methods[] = {
154 	ZEND_FE_END
155 };
156 
register_class_SplDoublyLinkedList(zend_class_entry * class_entry_Iterator,zend_class_entry * class_entry_Countable,zend_class_entry * class_entry_ArrayAccess,zend_class_entry * class_entry_Serializable)157 static zend_class_entry *register_class_SplDoublyLinkedList(zend_class_entry *class_entry_Iterator, zend_class_entry *class_entry_Countable, zend_class_entry *class_entry_ArrayAccess, zend_class_entry *class_entry_Serializable)
158 {
159 	zend_class_entry ce, *class_entry;
160 
161 	INIT_CLASS_ENTRY(ce, "SplDoublyLinkedList", class_SplDoublyLinkedList_methods);
162 	class_entry = zend_register_internal_class_ex(&ce, NULL);
163 	zend_class_implements(class_entry, 4, class_entry_Iterator, class_entry_Countable, class_entry_ArrayAccess, class_entry_Serializable);
164 
165 	zval const_IT_MODE_LIFO_value;
166 	ZVAL_LONG(&const_IT_MODE_LIFO_value, SPL_DLLIST_IT_LIFO);
167 	zend_string *const_IT_MODE_LIFO_name = zend_string_init_interned("IT_MODE_LIFO", sizeof("IT_MODE_LIFO") - 1, 1);
168 	zend_declare_class_constant_ex(class_entry, const_IT_MODE_LIFO_name, &const_IT_MODE_LIFO_value, ZEND_ACC_PUBLIC, NULL);
169 	zend_string_release(const_IT_MODE_LIFO_name);
170 
171 	zval const_IT_MODE_FIFO_value;
172 	ZVAL_LONG(&const_IT_MODE_FIFO_value, SPL_DLLIST_IT_FIFO);
173 	zend_string *const_IT_MODE_FIFO_name = zend_string_init_interned("IT_MODE_FIFO", sizeof("IT_MODE_FIFO") - 1, 1);
174 	zend_declare_class_constant_ex(class_entry, const_IT_MODE_FIFO_name, &const_IT_MODE_FIFO_value, ZEND_ACC_PUBLIC, NULL);
175 	zend_string_release(const_IT_MODE_FIFO_name);
176 
177 	zval const_IT_MODE_DELETE_value;
178 	ZVAL_LONG(&const_IT_MODE_DELETE_value, SPL_DLLIST_IT_DELETE);
179 	zend_string *const_IT_MODE_DELETE_name = zend_string_init_interned("IT_MODE_DELETE", sizeof("IT_MODE_DELETE") - 1, 1);
180 	zend_declare_class_constant_ex(class_entry, const_IT_MODE_DELETE_name, &const_IT_MODE_DELETE_value, ZEND_ACC_PUBLIC, NULL);
181 	zend_string_release(const_IT_MODE_DELETE_name);
182 
183 	zval const_IT_MODE_KEEP_value;
184 	ZVAL_LONG(&const_IT_MODE_KEEP_value, SPL_DLLIST_IT_KEEP);
185 	zend_string *const_IT_MODE_KEEP_name = zend_string_init_interned("IT_MODE_KEEP", sizeof("IT_MODE_KEEP") - 1, 1);
186 	zend_declare_class_constant_ex(class_entry, const_IT_MODE_KEEP_name, &const_IT_MODE_KEEP_value, ZEND_ACC_PUBLIC, NULL);
187 	zend_string_release(const_IT_MODE_KEEP_name);
188 
189 	return class_entry;
190 }
191 
register_class_SplQueue(zend_class_entry * class_entry_SplDoublyLinkedList)192 static zend_class_entry *register_class_SplQueue(zend_class_entry *class_entry_SplDoublyLinkedList)
193 {
194 	zend_class_entry ce, *class_entry;
195 
196 	INIT_CLASS_ENTRY(ce, "SplQueue", class_SplQueue_methods);
197 	class_entry = zend_register_internal_class_ex(&ce, class_entry_SplDoublyLinkedList);
198 
199 	return class_entry;
200 }
201 
register_class_SplStack(zend_class_entry * class_entry_SplDoublyLinkedList)202 static zend_class_entry *register_class_SplStack(zend_class_entry *class_entry_SplDoublyLinkedList)
203 {
204 	zend_class_entry ce, *class_entry;
205 
206 	INIT_CLASS_ENTRY(ce, "SplStack", class_SplStack_methods);
207 	class_entry = zend_register_internal_class_ex(&ce, class_entry_SplDoublyLinkedList);
208 
209 	return class_entry;
210 }
211