Ignore:
Timestamp:
Oct 23, 2001, 11:25:46 PM (24 years ago)
Author:
umoeller
Message:

Misc updates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/helpers/tree.h

    r108 r113  
    1515    #if (!defined OS2_INCLUDED) && (!defined _OS2_H) && (!defined __SIMPLES_DEFINED)   // changed V0.9.0 (99-10-22) [umoeller]
    1616        typedef unsigned long BOOL;
     17        typedef unsigned long ULONG;
     18        typedef long *PLONG;
    1719        #define TRUE (BOOL)1
    1820        #define FALSE (BOOL)0
     
    5254        nodeColor       color;          // the node's color (BLACK, RED)
    5355
    54         unsigned long   ulKey;          // the node's key (data)
     56        ULONG           ulKey;          // the node's key (data)
    5557
    5658    } TREE, *PTREE;
     
    6769    #define STATUS_INVALID_NODE         -2
    6870
    69     typedef int TREEENTRY FNTREE_COMPARE(unsigned long ul1, unsigned long ul2);
     71    typedef int TREEENTRY FNTREE_COMPARE(ULONG ul1, ULONG ul2);
    7072
    7173    //  Function prototypes
    72     void treeInit(TREE **root);
     74    void treeInit(TREE **root,
     75                  PLONG plCount);
    7376
    74     int TREEENTRY treeCompareKeys(unsigned long  ul1, unsigned long ul2);
     77    int TREEENTRY treeCompareKeys(ULONG  ul1, ULONG ul2);
    7578
    76     int TREEENTRY treeCompareStrings(unsigned long  ul1, unsigned long ul2);
     79    int TREEENTRY treeCompareStrings(ULONG  ul1, ULONG ul2);
    7780
    7881    int treeInsert(TREE **root,
     82                   PLONG plCount,
    7983                   TREE *x,
    8084                   FNTREE_COMPARE *pfnCompare);
    8185
    8286    int treeDelete(TREE **root,
     87                   PLONG plCount,
    8388                   TREE *z);
    8489
    8590    TREE* treeFind(TREE *root,
    86                    unsigned long key,
     91                   ULONG key,
    8792                   FNTREE_COMPARE *pfnCompare);
    8893
     
    96101
    97102    TREE** treeBuildArray(TREE* pRoot,
    98                           unsigned long *pulCount);
     103                          PLONG plCount);
    99104
    100105#endif
Note: See TracChangeset for help on using the changeset viewer.