Changeset 4653 for trunk/tools
- Timestamp:
- Nov 21, 2000, 5:35:37 AM (25 years ago)
- 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:52bird Exp $1 /* $Id: avl.c,v 1.3 2000-11-21 04:35:36 bird Exp $ 2 2 * 3 3 * AVL-Tree (lookalike) implementation. … … 18 18 #define AVL_HEIGHTOF(pNode) ((unsigned char)((pNode) != NULL ? pNode->uchHeight : 0)) 19 19 #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 20 34 21 35 … … 32 46 #include "string.h" 33 47 48 #if defined(__IBMCPP__) || defined(__IBMC__) 34 49 #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 36 54 37 55 … … 58 76 * Internal Functions * 59 77 *******************************************************************************/ 60 _Inlinevoid AVLRebalance(PAVLSTACK pStack);78 INLINE void AVLRebalance(PAVLSTACK pStack); 61 79 62 80 … … 651 669 * @remark 652 670 */ 653 _Inlinevoid AVLRebalance(PAVLSTACK pStack)671 INLINE void AVLRebalance(PAVLSTACK pStack) 654 672 { 655 673 while (pStack->cEntries > 0) -
trunk/tools/fastdep/fastdep.c
r4619 r4653 1 /* $Id: fastdep.c,v 1.2 2 2000-11-19 08:29:12bird Exp $1 /* $Id: fastdep.c,v 1.23 2000-11-21 04:35:36 bird Exp $ 2 2 * 3 3 * Fast dependents. (Fast = Quick and Dirty!) … … 32 32 # elif defined(__IBMCPP__) 33 33 # define INLINE inline 34 # elif defined(__WATCOMC__) 35 # define INLINE __inline 36 # elif defined(__WATCOM_CPLUSPLUS__) 37 # define INLINE inline 34 38 # else 35 # error "unknown compiler - inline keyword unknown!"39 # error message("unknown compiler - inline keyword unknown!") 36 40 # endif 37 41 #endif -
trunk/tools/fastdep/makefile
r4620 r4653 1 # $Id: makefile,v 1. 6 2000-11-19 08:27:21bird Exp $1 # $Id: makefile,v 1.7 2000-11-21 04:35:37 bird Exp $ 2 2 3 3 # … … 10 10 11 11 # 12 # Tell buildenvironment that we're makeing an .exe. 12 # Directory macro. 13 # 14 PDWIN32_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. 13 20 # Tell buildenvironment that we should not copy this into /bin. 14 21 # 15 22 EXETARGET = 1 23 VIO = 1 24 STATIC_CRT = 1 16 25 NO_MAIN_BIN_COPY = 1 17 26 … … 20 29 # include common definitions 21 30 # 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 27 32 28 33
Note:
See TracChangeset
for help on using the changeset viewer.