#include "stack.h"
#include <stdlib.h>
#include <assert.h>
#include "../msg.c"
Defines | |
#define | NPS_STACK_SHRINK_CONSTANT 0.10 |
Functions | |
NPS_STACK_LKG nps_stack_t * | nps_stack_new (size_t init_size, size_t el_size) |
NPS_STACK_LKG void | nps_stack_del (nps_stack_t *o) |
NPS_STACK_LKG int | nps_stack_push (nps_stack_t *o, char *item, nps_error_t *error) |
NPS_STACK_LKG void | nps_stack_pop (nps_stack_t *o, char *out) |
NPS_STACK_LKG size_t | nps_stack_size (nps_stack_t *o) |
#define NPS_STACK_SHRINK_CONSTANT 0.10 |
NPS_STACK_LKG void nps_stack_del | ( | nps_stack_t * | o | ) |
NPS_STACK_LKG nps_stack_t* nps_stack_new | ( | size_t | init_size, | |
size_t | el_size | |||
) |
NPS_STACK_LKG void nps_stack_pop | ( | nps_stack_t * | o, | |
char * | out | |||
) |
NPS_STACK_LKG int nps_stack_push | ( | nps_stack_t * | o, | |
char * | item, | |||
nps_error_t * | error | |||
) |
NPS_STACK_LKG size_t nps_stack_size | ( | nps_stack_t * | o | ) |