home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / program / c / memdebug / memalpha.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-08  |  3.1 KB  |  98 lines

  1.  
  2. /********************************************************************************/
  3. /* REMARK: set tab width to 4 spaces for best format                            */
  4. /********************************************************************************/
  5. /********************************************************************************/
  6. /*                                                                                 */
  7. /* Copyright (C) 1992    All Rights Reserved                                        */
  8. /* Centre de Recherche Public Henri Tudor (CRP-HT)                                */
  9. /* 6, rue Coudenhove-Kalergi                                                    */
  10. /* L1359 Luxembourg-Kirchberg                                                    */
  11. /*                                                                                 */
  12. /* Author            : Schmit Rene                                                */
  13. /* Internet            : Rene.Schmit@crpht.lu                                        */
  14. /* Creation Date    : Friday, October 02 1992                                     */
  15. /* File name        : AVL_TREE.h                                                */
  16. /* Project            : Library                                                    */
  17. /*                                                                                 */
  18. /* This software may be copied, distributed, ported and modified in source or    */
  19. /* object format as long as :                                                    */
  20. /*                                                                                 */
  21. /*     1) No distribution for commercial purposes is made.                            */
  22. /*     2) No third-party copyrights (such as runtime licenses) are involved        */
  23. /*     3) This copyright notice is not removed or changed.                            */
  24. /*                                                                                 */
  25. /* No responsibility is assumed for any damages that may result                 */
  26. /* from any defect in this software.                                            */
  27. /*                                                                                 */
  28. /********************************************************************************/
  29. /********************************************************************************/
  30.  
  31. /*
  32.     Header file of the memalpha library
  33.     This file is included only once in a compilation
  34. */
  35.  
  36. #ifndef __AlphaBlock_TREE__
  37. #define __AlphaBlock_TREE__
  38.  
  39. #include "memtypes.i"
  40.  
  41. /********************************************************************************/
  42. /******************************* Constants **************************************/
  43. /********************************************************************************/
  44.  
  45. #ifndef NULL
  46. #define NULL 0
  47. #endif
  48.  
  49. #ifndef FALSE
  50. #define FALSE 0
  51. #endif
  52.  
  53. #ifndef TRUE
  54. #define TRUE 1
  55. #endif
  56.  
  57. #ifndef EXIT_SUCCESS
  58. #define EXIT_SUCCESS 0
  59. #endif
  60.  
  61. /********************************************************************************/
  62. /*************************** Function prototypes ********************************/
  63. /********************************************************************************/
  64.  
  65. #ifdef __cplusplus
  66. extern "C" {
  67. #endif
  68.  
  69. void    create_AlphaBlockTree          ( void );
  70. void    insert_AlphaBlock_into_Tree      (    t_BlockDescriptor*            p_data    );
  71. int        search_AlphaBlock_in_Tree      (    t_BlockDescriptor*          *    p_data    );
  72. void    remove_AlphaBlock_from_Tree   ( t_BlockDescriptor*            p_data    );
  73.                                               
  74. void    delete_AlphaBlockTree          ( void );
  75.  
  76. int     check_AlphaBlockFull          ( void );
  77.  
  78.  
  79. int     get_Height_of_AlphaBlockTree  ( void );
  80. int     get_Card_of_AlphaBlockTree      ( void );
  81.  
  82.  
  83. void    free_AlphaBlockTree    ( void );
  84.         void    delete_Descriptor    (t_BlockDescriptor*          p_data);
  85.  
  86. void    print_AlphaBlockTree    ( void );
  87.         void    print_AlphaBlock    (t_BlockDescriptor*          p_data);
  88.  
  89.  
  90.  
  91. #ifdef __cplusplus
  92. }    // close the extern "C" declaration
  93. #endif
  94.  
  95. /********************************************************************************/
  96.  
  97. #endif
  98.