php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
zend_stack.c File Reference
#include "zend.h"
#include "zend_stack.h"

Go to the source code of this file.

Macros

#define ZEND_STACK_ELEMENT(stack, n)
 

Functions

ZEND_API void zend_stack_init (zend_stack *stack, int size)
 
ZEND_API int zend_stack_push (zend_stack *stack, const void *element)
 
ZEND_API voidzend_stack_top (const zend_stack *stack)
 
ZEND_API void zend_stack_del_top (zend_stack *stack)
 
ZEND_API int zend_stack_int_top (const zend_stack *stack)
 
ZEND_API bool zend_stack_is_empty (const zend_stack *stack)
 
ZEND_API void zend_stack_destroy (zend_stack *stack)
 
ZEND_API voidzend_stack_base (const zend_stack *stack)
 
ZEND_API int zend_stack_count (const zend_stack *stack)
 
ZEND_API void zend_stack_apply (zend_stack *stack, int type, int(*apply_function)(void *element))
 
ZEND_API void zend_stack_apply_with_argument (zend_stack *stack, zend_stack_apply_direction type, int(*apply_function)(void *element, void *arg), void *arg)
 
ZEND_API void zend_stack_clean (zend_stack *stack, void(*func)(void *), bool free_elements)
 

Macro Definition Documentation

◆ ZEND_STACK_ELEMENT

#define ZEND_STACK_ELEMENT ( stack,
n )
Value:
((void *)((char *) (stack)->elements + (stack)->size * (n)))
zend_long n
Definition ffi.c:4979
new_type size
Definition ffi.c:4365

Definition at line 23 of file zend_stack.c.

Function Documentation

◆ zend_stack_apply()

ZEND_API void zend_stack_apply ( zend_stack * stack,
int type,
int(* apply_function )(void *element) )

Definition at line 99 of file zend_stack.c.

◆ zend_stack_apply_with_argument()

ZEND_API void zend_stack_apply_with_argument ( zend_stack * stack,
zend_stack_apply_direction type,
int(* apply_function )(void *element, void *arg),
void * arg )

Definition at line 122 of file zend_stack.c.

◆ zend_stack_base()

ZEND_API void * zend_stack_base ( const zend_stack * stack)

Definition at line 87 of file zend_stack.c.

◆ zend_stack_clean()

ZEND_API void zend_stack_clean ( zend_stack * stack,
void(* func )(void *),
bool free_elements )

Definition at line 144 of file zend_stack.c.

◆ zend_stack_count()

ZEND_API int zend_stack_count ( const zend_stack * stack)

Definition at line 93 of file zend_stack.c.

◆ zend_stack_del_top()

ZEND_API void zend_stack_del_top ( zend_stack * stack)

Definition at line 55 of file zend_stack.c.

◆ zend_stack_destroy()

ZEND_API void zend_stack_destroy ( zend_stack * stack)

Definition at line 78 of file zend_stack.c.

◆ zend_stack_init()

ZEND_API void zend_stack_init ( zend_stack * stack,
int size )

Definition at line 25 of file zend_stack.c.

◆ zend_stack_int_top()

ZEND_API int zend_stack_int_top ( const zend_stack * stack)

Definition at line 61 of file zend_stack.c.

◆ zend_stack_is_empty()

ZEND_API bool zend_stack_is_empty ( const zend_stack * stack)

Definition at line 72 of file zend_stack.c.

◆ zend_stack_push()

ZEND_API int zend_stack_push ( zend_stack * stack,
const void * element )

Definition at line 33 of file zend_stack.c.

◆ zend_stack_top()

ZEND_API void * zend_stack_top ( const zend_stack * stack)

Definition at line 45 of file zend_stack.c.