Ignore:
Timestamp:
Aug 27, 2007, 12:31:38 AM (18 years ago)
Author:
bird
Message:

Made is possible to redefine the AVLNODE members, thus allowing a structure to be used by more than one kAvl instance (i.e. be in more than one tree). Define the callback and enumdata our selves.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kStuff/include/k/kAvlU32.h

    r3561 r3562  
    3030typedef struct KAVLU32
    3131{
    32     KU32                Key;
    33     KU8                 uchHeight;
    34     struct KAVLU32     *pLeft;
    35     struct KAVLU32     *pRight;
     32    KU32                mKey;
     33    KU8                 mHeight;
     34    struct KAVLU32     *mpLeft;
     35    struct KAVLU32     *mpRight;
    3636} KAVLU32, *PKAVLU32, **PPKAVLU32;
    37 
    38 typedef struct
    39 {
    40     KBOOL               fFromLeft;
    41     KI8                 cEntries;
    42     KU8                 achFlags[32];
    43     PKAVLU32            aEntries[32];
    44 } KAVLU32ENUMDATA, *PKAVLU32ENUMDATA;
    45 
    46 typedef int (* PFNKAVLU32CALLBACK)(KAVLU32 *, void *);
    4737
    4838/*#define KAVL_EQUAL_ALLOWED*/
     
    5343#define KAVL_STD_KEY_COMP
    5444#define KAVLKEY                 KU32
    55 #define KAVLNODECORE            KAVLU32
     45#define KAVLNODE            KAVLU32
    5646#define KAVL_FN(name)           kAvlU32 ## name
    5747#define KAVL_TYPE(prefix,name)  prefix ## KAVLU32 ## name
Note: See TracChangeset for help on using the changeset viewer.