Changeset 4653 for trunk/tools


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

Watcom addjustments.

Location:
trunk/tools/fastdep
Files:
3 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)
  • trunk/tools/fastdep/fastdep.c

    r4619 r4653  
    1 /* $Id: fastdep.c,v 1.22 2000-11-19 08:29:12 bird Exp $
     1/* $Id: fastdep.c,v 1.23 2000-11-21 04:35:36 bird Exp $
    22 *
    33 * Fast dependents. (Fast = Quick and Dirty!)
     
    3232#   elif defined(__IBMCPP__)
    3333#       define INLINE inline
     34#   elif defined(__WATCOMC__)
     35#       define INLINE __inline
     36#   elif defined(__WATCOM_CPLUSPLUS__)
     37#       define INLINE inline
    3438#   else
    35 #       error "unknown compiler - inline keyword unknown!"
     39#       error message("unknown compiler - inline keyword unknown!")
    3640#   endif
    3741#endif
  • trunk/tools/fastdep/makefile

    r4620 r4653  
    1 # $Id: makefile,v 1.6 2000-11-19 08:27:21 bird Exp $
     1# $Id: makefile,v 1.7 2000-11-21 04:35:37 bird Exp $
    22
    33#
     
    1010
    1111#
    12 # Tell buildenvironment that we're makeing an .exe.
     12# Directory macro.
     13#
     14PDWIN32_BIN     = ..\bin
     15
     16
     17#
     18# Tell buildenvironment that we're making an VIO .exe.
     19# Tell buildenvironment that we like to use static linked CRT.
    1320# Tell buildenvironment that we should not copy this into /bin.
    1421#
    1522EXETARGET = 1
     23VIO = 1
     24STATIC_CRT = 1
    1625NO_MAIN_BIN_COPY = 1
    1726
     
    2029# include common definitions
    2130#
    22 PDWIN32_INCLUDE = ..\..\include
    23 PDWIN32_TOOLS   = ..\bin
    24 PDWIN32_BIN     = ..\bin
    25 PDWIN32_LIB     = ..\..\lib
    26 !include $(PDWIN32_INCLUDE)\pdwin32.mk
     31!include ../../include/pdwin32.mk
    2732
    2833
Note: See TracChangeset for help on using the changeset viewer.