splaytree_types.h
上传用户:kjfoods
上传日期:2020-07-06
资源大小:29949k
文件大小:0k
源码类别:

midi

开发平台:

Unix_Linux

  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