mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
SplHeap, SplMinHeap, SplMaxHeap, SplPriorityQueue implementation
This commit is contained in:
parent
cdb42ce6d2
commit
cb51a84418
17 changed files with 2035 additions and 3 deletions
|
@ -36,6 +36,7 @@
|
|||
#include "spl_exceptions.h"
|
||||
#include "spl_observer.h"
|
||||
#include "spl_dllist.h"
|
||||
#include "spl_heap.h"
|
||||
#include "zend_exceptions.h"
|
||||
#include "zend_interfaces.h"
|
||||
#include "ext/standard/md5.h"
|
||||
|
@ -151,6 +152,10 @@ PHP_FUNCTION(class_implements)
|
|||
SPL_ADD_CLASS(SplDoublyLinkedList, z_list, sub, allow, ce_flags); \
|
||||
SPL_ADD_CLASS(SplQueue, z_list, sub, allow, ce_flags); \
|
||||
SPL_ADD_CLASS(SplStack, z_list, sub, allow, ce_flags); \
|
||||
SPL_ADD_CLASS(SplHeap, z_list, sub, allow, ce_flags); \
|
||||
SPL_ADD_CLASS(SplMinHeap, z_list, sub, allow, ce_flags); \
|
||||
SPL_ADD_CLASS(SplMaxHeap, z_list, sub, allow, ce_flags); \
|
||||
SPL_ADD_CLASS(SplPriorityQueue, z_list, sub, allow, ce_flags); \
|
||||
SPL_ADD_CLASS(BadFunctionCallException, z_list, sub, allow, ce_flags); \
|
||||
SPL_ADD_CLASS(BadMethodCallException, z_list, sub, allow, ce_flags); \
|
||||
SPL_ADD_CLASS(CachingIterator, z_list, sub, allow, ce_flags); \
|
||||
|
@ -768,6 +773,7 @@ PHP_MINIT_FUNCTION(spl)
|
|||
PHP_MINIT(spl_directory)(INIT_FUNC_ARGS_PASSTHRU);
|
||||
PHP_MINIT(spl_sxe)(INIT_FUNC_ARGS_PASSTHRU);
|
||||
PHP_MINIT(spl_dllist)(INIT_FUNC_ARGS_PASSTHRU);
|
||||
PHP_MINIT(spl_heap)(INIT_FUNC_ARGS_PASSTHRU);
|
||||
PHP_MINIT(spl_observer)(INIT_FUNC_ARGS_PASSTHRU);
|
||||
|
||||
return SUCCESS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue