--- mstools/samples/rpc/dict/dict0.c 2018/08/09 18:20:01 1.1.1.1 +++ mstools/samples/rpc/dict/dict0.c 2018/08/09 18:20:58 1.1.1.2 @@ -2,7 +2,7 @@ /** **/ /** Microsoft RPC Examples **/ /** Dictionary Application **/ -/** Copyright(c) Microsoft Corp. 1991 **/ +/** Copyright(c) Microsoft Corp. 1992 **/ /** **/ /*************************************************************/ @@ -11,9 +11,17 @@ #include #include #include + +#ifdef NTENV #include +// #define printf DbgPrint +#endif // NTENV #include +// #include +// #include +// #include + #include "dict0.h" /************************************************************************/ @@ -135,7 +143,7 @@ Dict_Next( Dictionary* dp, // Dictionary to be searched. void* item) // A Key item. Advance to successor of item in dp. { - TreeNode* t; + TreeNode* t, *r; int keycmp; if (dp->root == NULL) return (EMPTY_DICTIONARY); @@ -167,7 +175,7 @@ Dict_Prev( Dictionary* dp, // Dictionary to be searched. void* item) // A Key item. Retreat to predecessor of item in dp. { - TreeNode* t; + TreeNode* t, s; int keycmp; if (dp->root == NULL) return (EMPTY_DICTIONARY);