xref: /PHP-8.3/ext/spl/spl_heap_arginfo.h (revision 7b355e8d)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: 4045035ec5bee0f951fa31df75c3f42c31bd8be2 */
3 
4 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplPriorityQueue_compare, 0, 2, IS_LONG, 0)
5 	ZEND_ARG_TYPE_INFO(0, priority1, IS_MIXED, 0)
6 	ZEND_ARG_TYPE_INFO(0, priority2, IS_MIXED, 0)
7 ZEND_END_ARG_INFO()
8 
9 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SplPriorityQueue_insert, 0, 0, 2)
10 	ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
11 	ZEND_ARG_TYPE_INFO(0, priority, IS_MIXED, 0)
12 ZEND_END_ARG_INFO()
13 
14 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplPriorityQueue_setExtractFlags, 0, 1, IS_LONG, 0)
15 	ZEND_ARG_TYPE_INFO(0, flags, IS_LONG, 0)
16 ZEND_END_ARG_INFO()
17 
18 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplPriorityQueue_top, 0, 0, IS_MIXED, 0)
19 ZEND_END_ARG_INFO()
20 
21 #define arginfo_class_SplPriorityQueue_extract arginfo_class_SplPriorityQueue_top
22 
23 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplPriorityQueue_count, 0, 0, IS_LONG, 0)
24 ZEND_END_ARG_INFO()
25 
26 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplPriorityQueue_isEmpty, 0, 0, _IS_BOOL, 0)
27 ZEND_END_ARG_INFO()
28 
29 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplPriorityQueue_rewind, 0, 0, IS_VOID, 0)
30 ZEND_END_ARG_INFO()
31 
32 #define arginfo_class_SplPriorityQueue_current arginfo_class_SplPriorityQueue_top
33 
34 #define arginfo_class_SplPriorityQueue_key arginfo_class_SplPriorityQueue_count
35 
36 #define arginfo_class_SplPriorityQueue_next arginfo_class_SplPriorityQueue_rewind
37 
38 #define arginfo_class_SplPriorityQueue_valid arginfo_class_SplPriorityQueue_isEmpty
39 
40 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SplPriorityQueue_recoverFromCorruption, 0, 0, 0)
41 ZEND_END_ARG_INFO()
42 
43 #define arginfo_class_SplPriorityQueue_isCorrupted arginfo_class_SplPriorityQueue_isEmpty
44 
45 #define arginfo_class_SplPriorityQueue_getExtractFlags arginfo_class_SplPriorityQueue_count
46 
47 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplPriorityQueue___debugInfo, 0, 0, IS_ARRAY, 0)
48 ZEND_END_ARG_INFO()
49 
50 #define arginfo_class_SplHeap_extract arginfo_class_SplPriorityQueue_top
51 
52 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplHeap_insert, 0, 1, _IS_BOOL, 0)
53 	ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
54 ZEND_END_ARG_INFO()
55 
56 #define arginfo_class_SplHeap_top arginfo_class_SplPriorityQueue_top
57 
58 #define arginfo_class_SplHeap_count arginfo_class_SplPriorityQueue_count
59 
60 #define arginfo_class_SplHeap_isEmpty arginfo_class_SplPriorityQueue_isEmpty
61 
62 #define arginfo_class_SplHeap_rewind arginfo_class_SplPriorityQueue_rewind
63 
64 #define arginfo_class_SplHeap_current arginfo_class_SplPriorityQueue_top
65 
66 #define arginfo_class_SplHeap_key arginfo_class_SplPriorityQueue_count
67 
68 #define arginfo_class_SplHeap_next arginfo_class_SplPriorityQueue_rewind
69 
70 #define arginfo_class_SplHeap_valid arginfo_class_SplPriorityQueue_isEmpty
71 
72 #define arginfo_class_SplHeap_recoverFromCorruption arginfo_class_SplPriorityQueue_isEmpty
73 
74 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplHeap_compare, 0, 2, IS_LONG, 0)
75 	ZEND_ARG_TYPE_INFO(0, value1, IS_MIXED, 0)
76 	ZEND_ARG_TYPE_INFO(0, value2, IS_MIXED, 0)
77 ZEND_END_ARG_INFO()
78 
79 #define arginfo_class_SplHeap_isCorrupted arginfo_class_SplPriorityQueue_isEmpty
80 
81 #define arginfo_class_SplHeap___debugInfo arginfo_class_SplPriorityQueue___debugInfo
82 
83 #define arginfo_class_SplMinHeap_compare arginfo_class_SplHeap_compare
84 
85 #define arginfo_class_SplMaxHeap_compare arginfo_class_SplHeap_compare
86 
87 
88 ZEND_METHOD(SplPriorityQueue, compare);
89 ZEND_METHOD(SplPriorityQueue, insert);
90 ZEND_METHOD(SplPriorityQueue, setExtractFlags);
91 ZEND_METHOD(SplPriorityQueue, top);
92 ZEND_METHOD(SplPriorityQueue, extract);
93 ZEND_METHOD(SplHeap, count);
94 ZEND_METHOD(SplHeap, isEmpty);
95 ZEND_METHOD(SplHeap, rewind);
96 ZEND_METHOD(SplPriorityQueue, current);
97 ZEND_METHOD(SplHeap, key);
98 ZEND_METHOD(SplHeap, next);
99 ZEND_METHOD(SplHeap, valid);
100 ZEND_METHOD(SplHeap, recoverFromCorruption);
101 ZEND_METHOD(SplHeap, isCorrupted);
102 ZEND_METHOD(SplPriorityQueue, getExtractFlags);
103 ZEND_METHOD(SplPriorityQueue, __debugInfo);
104 ZEND_METHOD(SplHeap, extract);
105 ZEND_METHOD(SplHeap, insert);
106 ZEND_METHOD(SplHeap, top);
107 ZEND_METHOD(SplHeap, current);
108 ZEND_METHOD(SplHeap, __debugInfo);
109 ZEND_METHOD(SplMinHeap, compare);
110 ZEND_METHOD(SplMaxHeap, compare);
111 
112 
113 static const zend_function_entry class_SplPriorityQueue_methods[] = {
114 	ZEND_ME(SplPriorityQueue, compare, arginfo_class_SplPriorityQueue_compare, ZEND_ACC_PUBLIC)
115 	ZEND_ME(SplPriorityQueue, insert, arginfo_class_SplPriorityQueue_insert, ZEND_ACC_PUBLIC)
116 	ZEND_ME(SplPriorityQueue, setExtractFlags, arginfo_class_SplPriorityQueue_setExtractFlags, ZEND_ACC_PUBLIC)
117 	ZEND_ME(SplPriorityQueue, top, arginfo_class_SplPriorityQueue_top, ZEND_ACC_PUBLIC)
118 	ZEND_ME(SplPriorityQueue, extract, arginfo_class_SplPriorityQueue_extract, ZEND_ACC_PUBLIC)
119 	ZEND_MALIAS(SplHeap, count, count, arginfo_class_SplPriorityQueue_count, ZEND_ACC_PUBLIC)
120 	ZEND_MALIAS(SplHeap, isEmpty, isEmpty, arginfo_class_SplPriorityQueue_isEmpty, ZEND_ACC_PUBLIC)
121 	ZEND_MALIAS(SplHeap, rewind, rewind, arginfo_class_SplPriorityQueue_rewind, ZEND_ACC_PUBLIC)
122 	ZEND_ME(SplPriorityQueue, current, arginfo_class_SplPriorityQueue_current, ZEND_ACC_PUBLIC)
123 	ZEND_MALIAS(SplHeap, key, key, arginfo_class_SplPriorityQueue_key, ZEND_ACC_PUBLIC)
124 	ZEND_MALIAS(SplHeap, next, next, arginfo_class_SplPriorityQueue_next, ZEND_ACC_PUBLIC)
125 	ZEND_MALIAS(SplHeap, valid, valid, arginfo_class_SplPriorityQueue_valid, ZEND_ACC_PUBLIC)
126 	ZEND_MALIAS(SplHeap, recoverFromCorruption, recoverFromCorruption, arginfo_class_SplPriorityQueue_recoverFromCorruption, ZEND_ACC_PUBLIC)
127 	ZEND_MALIAS(SplHeap, isCorrupted, isCorrupted, arginfo_class_SplPriorityQueue_isCorrupted, ZEND_ACC_PUBLIC)
128 	ZEND_ME(SplPriorityQueue, getExtractFlags, arginfo_class_SplPriorityQueue_getExtractFlags, ZEND_ACC_PUBLIC)
129 	ZEND_ME(SplPriorityQueue, __debugInfo, arginfo_class_SplPriorityQueue___debugInfo, ZEND_ACC_PUBLIC)
130 	ZEND_FE_END
131 };
132 
133 
134 static const zend_function_entry class_SplHeap_methods[] = {
135 	ZEND_ME(SplHeap, extract, arginfo_class_SplHeap_extract, ZEND_ACC_PUBLIC)
136 	ZEND_ME(SplHeap, insert, arginfo_class_SplHeap_insert, ZEND_ACC_PUBLIC)
137 	ZEND_ME(SplHeap, top, arginfo_class_SplHeap_top, ZEND_ACC_PUBLIC)
138 	ZEND_ME(SplHeap, count, arginfo_class_SplHeap_count, ZEND_ACC_PUBLIC)
139 	ZEND_ME(SplHeap, isEmpty, arginfo_class_SplHeap_isEmpty, ZEND_ACC_PUBLIC)
140 	ZEND_ME(SplHeap, rewind, arginfo_class_SplHeap_rewind, ZEND_ACC_PUBLIC)
141 	ZEND_ME(SplHeap, current, arginfo_class_SplHeap_current, ZEND_ACC_PUBLIC)
142 	ZEND_ME(SplHeap, key, arginfo_class_SplHeap_key, ZEND_ACC_PUBLIC)
143 	ZEND_ME(SplHeap, next, arginfo_class_SplHeap_next, ZEND_ACC_PUBLIC)
144 	ZEND_ME(SplHeap, valid, arginfo_class_SplHeap_valid, ZEND_ACC_PUBLIC)
145 	ZEND_ME(SplHeap, recoverFromCorruption, arginfo_class_SplHeap_recoverFromCorruption, ZEND_ACC_PUBLIC)
146 	ZEND_ABSTRACT_ME_WITH_FLAGS(SplHeap, compare, arginfo_class_SplHeap_compare, ZEND_ACC_PROTECTED|ZEND_ACC_ABSTRACT)
147 	ZEND_ME(SplHeap, isCorrupted, arginfo_class_SplHeap_isCorrupted, ZEND_ACC_PUBLIC)
148 	ZEND_ME(SplHeap, __debugInfo, arginfo_class_SplHeap___debugInfo, ZEND_ACC_PUBLIC)
149 	ZEND_FE_END
150 };
151 
152 
153 static const zend_function_entry class_SplMinHeap_methods[] = {
154 	ZEND_ME(SplMinHeap, compare, arginfo_class_SplMinHeap_compare, ZEND_ACC_PROTECTED)
155 	ZEND_FE_END
156 };
157 
158 
159 static const zend_function_entry class_SplMaxHeap_methods[] = {
160 	ZEND_ME(SplMaxHeap, compare, arginfo_class_SplMaxHeap_compare, ZEND_ACC_PROTECTED)
161 	ZEND_FE_END
162 };
163 
register_class_SplPriorityQueue(zend_class_entry * class_entry_Iterator,zend_class_entry * class_entry_Countable)164 static zend_class_entry *register_class_SplPriorityQueue(zend_class_entry *class_entry_Iterator, zend_class_entry *class_entry_Countable)
165 {
166 	zend_class_entry ce, *class_entry;
167 
168 	INIT_CLASS_ENTRY(ce, "SplPriorityQueue", class_SplPriorityQueue_methods);
169 	class_entry = zend_register_internal_class_ex(&ce, NULL);
170 	zend_class_implements(class_entry, 2, class_entry_Iterator, class_entry_Countable);
171 
172 	zval const_EXTR_BOTH_value;
173 	ZVAL_LONG(&const_EXTR_BOTH_value, SPL_PQUEUE_EXTR_BOTH);
174 	zend_string *const_EXTR_BOTH_name = zend_string_init_interned("EXTR_BOTH", sizeof("EXTR_BOTH") - 1, 1);
175 	zend_declare_class_constant_ex(class_entry, const_EXTR_BOTH_name, &const_EXTR_BOTH_value, ZEND_ACC_PUBLIC, NULL);
176 	zend_string_release(const_EXTR_BOTH_name);
177 
178 	zval const_EXTR_PRIORITY_value;
179 	ZVAL_LONG(&const_EXTR_PRIORITY_value, SPL_PQUEUE_EXTR_PRIORITY);
180 	zend_string *const_EXTR_PRIORITY_name = zend_string_init_interned("EXTR_PRIORITY", sizeof("EXTR_PRIORITY") - 1, 1);
181 	zend_declare_class_constant_ex(class_entry, const_EXTR_PRIORITY_name, &const_EXTR_PRIORITY_value, ZEND_ACC_PUBLIC, NULL);
182 	zend_string_release(const_EXTR_PRIORITY_name);
183 
184 	zval const_EXTR_DATA_value;
185 	ZVAL_LONG(&const_EXTR_DATA_value, SPL_PQUEUE_EXTR_DATA);
186 	zend_string *const_EXTR_DATA_name = zend_string_init_interned("EXTR_DATA", sizeof("EXTR_DATA") - 1, 1);
187 	zend_declare_class_constant_ex(class_entry, const_EXTR_DATA_name, &const_EXTR_DATA_value, ZEND_ACC_PUBLIC, NULL);
188 	zend_string_release(const_EXTR_DATA_name);
189 
190 	return class_entry;
191 }
192 
register_class_SplHeap(zend_class_entry * class_entry_Iterator,zend_class_entry * class_entry_Countable)193 static zend_class_entry *register_class_SplHeap(zend_class_entry *class_entry_Iterator, zend_class_entry *class_entry_Countable)
194 {
195 	zend_class_entry ce, *class_entry;
196 
197 	INIT_CLASS_ENTRY(ce, "SplHeap", class_SplHeap_methods);
198 	class_entry = zend_register_internal_class_ex(&ce, NULL);
199 	class_entry->ce_flags |= ZEND_ACC_ABSTRACT;
200 	zend_class_implements(class_entry, 2, class_entry_Iterator, class_entry_Countable);
201 
202 	return class_entry;
203 }
204 
register_class_SplMinHeap(zend_class_entry * class_entry_SplHeap)205 static zend_class_entry *register_class_SplMinHeap(zend_class_entry *class_entry_SplHeap)
206 {
207 	zend_class_entry ce, *class_entry;
208 
209 	INIT_CLASS_ENTRY(ce, "SplMinHeap", class_SplMinHeap_methods);
210 	class_entry = zend_register_internal_class_ex(&ce, class_entry_SplHeap);
211 
212 	return class_entry;
213 }
214 
register_class_SplMaxHeap(zend_class_entry * class_entry_SplHeap)215 static zend_class_entry *register_class_SplMaxHeap(zend_class_entry *class_entry_SplHeap)
216 {
217 	zend_class_entry ce, *class_entry;
218 
219 	INIT_CLASS_ENTRY(ce, "SplMaxHeap", class_SplMaxHeap_methods);
220 	class_entry = zend_register_internal_class_ex(&ce, class_entry_SplHeap);
221 
222 	return class_entry;
223 }
224