Ignore:
Timestamp:
Nov 21, 2000, 5:35:37 AM (25 years ago)
Author:
bird
Message:

Watcom addjustments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/fastdep/avl.c

    r3212 r4653  
    1 /* $Id: avl.c,v 1.2 2000-03-24 01:40:52 bird Exp $
     1/* $Id: avl.c,v 1.3 2000-11-21 04:35:36 bird Exp $
    22 *
    33 * AVL-Tree (lookalike) implementation.
     
    1818#define AVL_HEIGHTOF(pNode) ((unsigned char)((pNode) != NULL ? pNode->uchHeight : 0))
    1919#define max(a,b) (((a) > (b)) ? (a) : (b))
     20
     21#ifndef INLINE
     22#   if defined(__IBMC__)
     23#       define INLINE _Inline
     24#   elif defined(__IBMCPP__)
     25#       define INLINE inline
     26#   elif defined(__WATCOMC__)
     27#       define INLINE __inline
     28#   elif defined(__WATCOM_CPLUSPLUS__)
     29#       define INLINE inline
     30#   else
     31#       error message("unknown compiler - inline keyword unknown!")
     32#   endif
     33#endif
    2034
    2135
     
    3246#include "string.h"
    3347
     48#if defined(__IBMCPP__) || defined(__IBMC__)
    3449#include <builtin.h>
    35 #define assert(a) ((a) ? (void)0 : __interrupt(3))
     50#define assert(a) ((a) ? (void)0 : __interrupt(3) )
     51#else
     52#include <assert.h>
     53#endif
    3654
    3755
     
    5876*   Internal Functions                                                         *
    5977*******************************************************************************/
    60 _Inline void AVLRebalance(PAVLSTACK pStack);
     78INLINE void AVLRebalance(PAVLSTACK pStack);
    6179
    6280
     
    651669 * @remark
    652670 */
    653 _Inline void AVLRebalance(PAVLSTACK pStack)
     671INLINE void AVLRebalance(PAVLSTACK pStack)
    654672{
    655673    while (pStack->cEntries > 0)
Note: See TracChangeset for help on using the changeset viewer.