splaytree_types.h
上传用户:riyaled888
上传日期:2009-03-27
资源大小:7338k
文件大小:0k
源码类别:

多媒体

开发平台:

MultiPlatform

  1. #ifndef SPLAYTREE_TYPES_H
  2. #define SPLAYTREE_TYPES_H
  3. typedef struct SPLAYNODE_T {
  4.   int type;
  5.   struct SPLAYNODE_T * left, * right;
  6.   void * data;
  7.   void * key;
  8. } splaynode_t;
  9. typedef struct SPLAYTREE_T {
  10.   splaynode_t * root;
  11.   int (*compare)();
  12.   void * (*copy_key)();
  13.   void (*free_key)();
  14. } splaytree_t;
  15. #endif