php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
phpdbg_btree.h
Go to the documentation of this file.
1/*
2 +----------------------------------------------------------------------+
3 | Copyright (c) The PHP Group |
4 +----------------------------------------------------------------------+
5 | This source file is subject to version 3.01 of the PHP license, |
6 | that is bundled with this package in the file LICENSE, and is |
7 | available through the world-wide-web at the following url: |
8 | https://www.php.net/license/3_01.txt |
9 | If you did not receive a copy of the PHP license and are unable to |
10 | obtain it through the world-wide-web, please send a note to |
11 | license@php.net so we can mail you a copy immediately. |
12 +----------------------------------------------------------------------+
13 | Authors: Felipe Pena <felipe@php.net> |
14 | Authors: Joe Watkins <joe.watkins@live.co.uk> |
15 | Authors: Bob Weinand <bwoebi@php.net> |
16 +----------------------------------------------------------------------+
17*/
18
19#ifndef PHPDBG_BTREE_H
20#define PHPDBG_BTREE_H
21
22#include "zend.h"
23
24typedef struct {
26 void *ptr;
28
34
41
47
55
56#define PHPDBG_BTREE_INSERT 1
57#define PHPDBG_BTREE_UPDATE 2
58#define PHPDBG_BTREE_OVERWRITE (PHPDBG_BTREE_INSERT | PHPDBG_BTREE_UPDATE)
59
61#define phpdbg_btree_insert(tree, idx, ptr) phpdbg_btree_insert_or_update(tree, idx, ptr, PHPDBG_BTREE_INSERT)
62#define phpdbg_btree_update(tree, idx, ptr) phpdbg_btree_insert_or_update(tree, idx, ptr, PHPDBG_BTREE_UPDATE)
63#define phpdbg_btree_overwrite(tree, idx, ptr) phpdbg_btree_insert_or_update(tree, idx, ptr, PHPDBG_BTREE_OVERWRITE)
64
65
66/* debugging functions */
69
70#endif
void * ptr
Definition ffi.c:3814
unsigned const char * pos
Definition php_ffi.h:52
void phpdbg_btree_dump(phpdbg_btree *tree)
phpdbg_btree_result * phpdbg_btree_next(phpdbg_btree_position *pos)
void phpdbg_btree_clean(phpdbg_btree *tree)
void phpdbg_btree_init(phpdbg_btree *tree, zend_ulong depth)
void phpdbg_btree_branch_dump(phpdbg_btree_branch *branch, zend_ulong depth)
phpdbg_btree_result * phpdbg_btree_find(phpdbg_btree *tree, zend_ulong idx)
int phpdbg_btree_delete(phpdbg_btree *tree, zend_ulong idx)
int phpdbg_btree_insert_or_update(phpdbg_btree *tree, zend_ulong idx, void *ptr, int flags)
phpdbg_btree_result * phpdbg_btree_find_closest(phpdbg_btree *tree, zend_ulong idx)
union _phpdbg_btree_branch phpdbg_btree_branch
phpdbg_btree_position phpdbg_btree_find_between(phpdbg_btree *tree, zend_ulong lower_idx, zend_ulong higher_idx)
phpdbg_btree * tree
zend_ulong count
phpdbg_btree_branch * branch
zend_ulong depth
phpdbg_btree_branch * branches[2]
phpdbg_btree_result result
uint32_t zend_ulong
Definition zend_long.h:43