OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Typedefs | Functions | Variables
stack.h File Reference

Go to the source code of this file.

Classes

struct  stack_st
 

Macros

#define M_sk_num(sk)   ((sk) ? (sk)->num:-1)
 
#define M_sk_value(sk, n)   ((sk) ? (sk)->data[n] : NULL)
 

Typedefs

typedef struct stack_st _STACK
 

Functions

int sk_num (const _STACK *)
 
voidsk_value (const _STACK *, int)
 
voidsk_set (_STACK *, int, void *)
 
_STACKsk_new (int(*cmp)(const void *, const void *))
 
_STACKsk_new_null (void)
 
void sk_free (_STACK *)
 
void sk_pop_free (_STACK *st, void(*func)(void *))
 
int sk_insert (_STACK *sk, void *data, int where)
 
voidsk_delete (_STACK *st, int loc)
 
voidsk_delete_ptr (_STACK *st, void *p)
 
int sk_find (_STACK *st, void *data)
 
int sk_find_ex (_STACK *st, void *data)
 
int sk_push (_STACK *st, void *data)
 
int sk_unshift (_STACK *st, void *data)
 
voidsk_shift (_STACK *st)
 
voidsk_pop (_STACK *st)
 
void sk_zero (_STACK *st)
 
_STACKsk_dup (_STACK *st)
 
void sk_sort (_STACK *st)
 
int sk_is_sorted (const _STACK *st)
 

Variables

int(*)(const void *, const void *) sk_set_cmp_func (_STACK *sk, int(*c)(const void *, const void *))
 

Macro Definition Documentation

#define M_sk_num (   sk)    ((sk) ? (sk)->num:-1)

Definition at line 76 of file stack.h.

#define M_sk_value (   sk,
 
)    ((sk) ? (sk)->data[n] : NULL)

Definition at line 77 of file stack.h.

Typedef Documentation

typedef struct stack_st _STACK

Function Documentation

void* sk_delete ( _STACK st,
int  loc 
)

Definition at line 190 of file stack.c.

void* sk_delete_ptr ( _STACK st,
void p 
)

Definition at line 180 of file stack.c.

_STACK* sk_dup ( _STACK st)

Definition at line 92 of file stack.c.

int sk_find ( _STACK st,
void data 
)

Definition at line 235 of file stack.c.

int sk_find_ex ( _STACK st,
void data 
)

Definition at line 239 of file stack.c.

void sk_free ( _STACK )

Definition at line 287 of file stack.c.

int sk_insert ( _STACK sk,
void data,
int  where 
)

Definition at line 142 of file stack.c.

int sk_is_sorted ( const _STACK st)

Definition at line 329 of file stack.c.

_STACK* sk_new ( int(*)(const void *, const void *)  cmp)

Definition at line 120 of file stack.c.

_STACK* sk_new_null ( void  )

Definition at line 115 of file stack.c.

int sk_num ( const _STACK )

Definition at line 294 of file stack.c.

void* sk_pop ( _STACK st)

Definition at line 261 of file stack.c.

void sk_pop_free ( _STACK st,
void(*)(void *)  func 
)

Definition at line 276 of file stack.c.

int sk_push ( _STACK st,
void data 
)

Definition at line 244 of file stack.c.

void* sk_set ( _STACK ,
int  ,
void  
)

Definition at line 306 of file stack.c.

void* sk_shift ( _STACK st)

Definition at line 254 of file stack.c.

void sk_sort ( _STACK st)

Definition at line 312 of file stack.c.

int sk_unshift ( _STACK st,
void data 
)

Definition at line 249 of file stack.c.

void* sk_value ( const _STACK ,
int   
)

Definition at line 300 of file stack.c.

void sk_zero ( _STACK st)

Definition at line 268 of file stack.c.

Variable Documentation

int(*)(const void *, const void *) sk_set_cmp_func(_STACK *sk, int(*c)(const void *, const void *))

Definition at line 98 of file stack.h.