X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=ShellPkg%2FLibrary%2FBaseSortLib%2FBaseSortLib.c;h=8ee9abb3d382a6145edc2b544c2dcbad64c87b7a;hp=04d818efd1d3a54d8d641fd50227b35d58ac9e68;hb=703289677ace8035d76176e789a136057926ae77;hpb=4983ca934c85ed80b15264d3a7ee10a4d3c0d51f diff --git a/ShellPkg/Library/BaseSortLib/BaseSortLib.c b/ShellPkg/Library/BaseSortLib/BaseSortLib.c index 04d818efd1..8ee9abb3d3 100644 --- a/ShellPkg/Library/BaseSortLib/BaseSortLib.c +++ b/ShellPkg/Library/BaseSortLib/BaseSortLib.c @@ -1,7 +1,7 @@ /** @file Library used for sorting routines. -Copyright (c) 2009, Intel Corporation +Copyright (c) 2009, Intel Corporation
All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -50,7 +50,8 @@ QuickSortWorker ( IN CONST UINTN ElementSize, IN SORT_COMPARE CompareFunction, IN VOID *Buffer - ){ + ) +{ VOID *Pivot; UINTN LoopCount; UINTN NextSwapLocation; @@ -149,7 +150,8 @@ PerformQuickSort ( IN CONST UINTN Count, IN CONST UINTN ElementSize, IN SORT_COMPARE CompareFunction - ){ + ) +{ VOID *Buffer; ASSERT(BufferToSort != NULL); @@ -168,3 +170,18 @@ PerformQuickSort ( FreePool(Buffer); return; } + +/** + Not supported in Base version. + + ASSERT and return 0. +**/ +INTN +DevicePathCompare ( + IN VOID *Buffer1, + IN VOID *Buffer2 + ) +{ + ASSERT(FALSE); + return 0; +}