stack.h File Reference

API published in:
API deprecated in:


Go to the source code of this file.


Data Structures

struct   stack_st

Defines

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

Typedefs

typedef stack_st  STACK

Functions

IMPORT_C int  sk_num (const STACK *)
IMPORT_C char *  sk_value (const STACK *, int)
IMPORT_C char *  sk_set (STACK *, int, char *)
IMPORT_C STACK sk_new (int(*cmp)(const char *const *, const char *const *))
IMPORT_C STACK sk_new_null (void)
IMPORT_C void  sk_free (STACK *)
IMPORT_C void  sk_pop_free (STACK *st, void(*func)(void *))
IMPORT_C int  sk_insert (STACK *sk, char *data, int where)
IMPORT_C char *  sk_delete (STACK *st, int loc)
IMPORT_C char *  sk_delete_ptr (STACK *st, char *p)
IMPORT_C int  sk_find (STACK *st, char *data)
IMPORT_C int  sk_find_ex (STACK *st, char *data)
IMPORT_C int  sk_push (STACK *st, char *data)
IMPORT_C int  sk_unshift (STACK *st, char *data)
IMPORT_C char *  sk_shift (STACK *st)
IMPORT_C char *  sk_pop (STACK *st)
IMPORT_C void  sk_zero (STACK *st)
IMPORT_C STACK sk_dup (STACK *st)
IMPORT_C void  sk_sort (STACK *st)
IMPORT_C int  sk_is_sorted (const STACK *st)

Variables

IMPORT_C int(*)(const char
*const *, const char *const *) 
sk_set_cmp_func (STACK *sk, int(*c)(const char *const *, const char *const *))

Define Documentation

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

Typedef Documentation

typedef struct stack_st STACK
 

Function Documentation

IMPORT_C char* sk_delete STACK st,
int  loc
 
IMPORT_C char* sk_delete_ptr STACK st,
char *  p
 
IMPORT_C STACK* sk_dup STACK st  ) 
 
IMPORT_C int sk_find STACK st,
char *  data
 
IMPORT_C int sk_find_ex STACK st,
char *  data
 
IMPORT_C void sk_free STACK  ) 
 
IMPORT_C int sk_insert STACK sk,
char *  data,
int  where
 
IMPORT_C int sk_is_sorted const STACK st  ) 
 
IMPORT_C STACK* sk_new int(*)(const char *const *, const char *const *)  cmp  ) 
 
IMPORT_C STACK* sk_new_null void   ) 
 
IMPORT_C int sk_num const STACK  ) 
 
IMPORT_C char* sk_pop STACK st  ) 
 
IMPORT_C void sk_pop_free STACK st,
void(*)(void *)  func
 
IMPORT_C int sk_push STACK st,
char *  data
 
IMPORT_C char* sk_set STACK ,
int  ,
char * 
 
IMPORT_C char* sk_shift STACK st  ) 
 
IMPORT_C void sk_sort STACK st  ) 
 
IMPORT_C int sk_unshift STACK st,
char *  data
 
IMPORT_C char* sk_value const STACK ,
int 
 
IMPORT_C void sk_zero STACK st  ) 
 

Variable Documentation

IMPORT_C int(*)(const char * const *, const char * const *) sk_set_cmp_func(STACK *sk, int(*c)(const char *const *, const char *const *))
 

Copyright © Nokia Corporation 2001-2008
Back to top