1/* 2 * Author: Magnos Martinello, <magnos@land.ufrj.br> in April, 1999. 3 * 4 * @(#)$Header: /mm2/home/cvs/bc-src/tgif/wb_buff.e,v 1.2 2008/10/16 21:13:03 william Exp $ 5 */ 6 7#ifndef _WB_BUFF_E_ 8#define _WB_BUFF_E_ 9 10/* Comentario Principal */ 11 12#define DUPLICATED 4 13#define SORTED 2 14#define UNSORTED 1 15 16#ifdef _INCLUDE_FROM_WB_BUFF_C_ 17#undef extern 18#define extern 19#endif /*_INCLUDE_FROM_WB_BUFF_C_*/ 20 21extern int buff_show(int bd); 22 23extern int buff_init ARGS_DECL(( 24 int n, int size, int option, 25 int (*compar)(const void *, const void *))); 26 27extern void buff_cleanup ARGS_DECL((void)); 28 29extern int buff_ins ARGS_DECL((int bd, const void *buffer)); 30 31extern int buff_rem ARGS_DECL((int bd, void **buffer)); 32 33extern int buff_destroy ARGS_DECL((int bd)); 34 35extern int buff_empty ARGS_DECL((int bd)); 36 37extern int buff_emptyn ARGS_DECL((int bd, int n)); 38 39extern int buff_items ARGS_DECL((int bd)); 40 41extern int buff_conc ARGS_DECL((int bd1, int bd2)); 42 43extern int buff_sort ARGS_DECL(( 44 int bd, int (*compar)(const void *, const void *))); 45 46#ifdef _INCLUDE_FROM_WB_BUFF_C_ 47#undef extern 48#ifndef _NO_RECURSIVE_EXTERN 49#define extern extern 50#endif /* ~_NO_RECURSIVE_EXTERN */ 51#endif /*_INCLUDE_FROM_WB_BUFF_C_*/ 52 53#endif /*_WB_BUFF_E_*/ 54