From f0c446be0d0d53a5c1791396e0bfd83cc3e84a8c Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Fri, 23 Jan 2009 12:20:37 +0000 Subject: [PATCH] - Stubplement SwapSplayLinks helper function, and make RtlDelete call it. - Fix a few lines having TABs instead of SPACEs. svn path=/trunk/; revision=39041 --- reactos/lib/rtl/splaytree.c | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/reactos/lib/rtl/splaytree.c b/reactos/lib/rtl/splaytree.c index dfe61050890..df319e21e7f 100644 --- a/reactos/lib/rtl/splaytree.c +++ b/reactos/lib/rtl/splaytree.c @@ -15,6 +15,13 @@ /* FUNCTIONS ***************************************************************/ +VOID +SwapSplayLinks(PRTL_SPLAY_LINKS LinkA, + PRTL_SPLAY_LINKS LinkB) +{ + DPRINT1("UNIMPLEMENTED!\n"); +} + /* * @implemented */ @@ -32,8 +39,7 @@ RtlDelete(PRTL_SPLAY_LINKS Links) SP = RtlSubtreePredecessor(N); /* Swap it with N, this will guarantee that N will have only a child */ - //SwapSplayLinks(SP, N); - DPRINT1("UNIMPLEMENTED!\n"); + SwapSplayLinks(SP, N); } /* Check if we have no children */ @@ -103,12 +109,10 @@ RtlDelete(PRTL_SPLAY_LINKS Links) */ VOID NTAPI -RtlDeleteNoSplay ( - PRTL_SPLAY_LINKS Links, - PRTL_SPLAY_LINKS *Root - ) +RtlDeleteNoSplay(PRTL_SPLAY_LINKS Links, + PRTL_SPLAY_LINKS *Root) { - UNIMPLEMENTED; + UNIMPLEMENTED; } /* @@ -508,8 +512,8 @@ RtlSplay(PRTL_SPLAY_LINKS Links) } } - /* Return the root entry */ - return N; + /* Return the root entry */ + return N; } /*