]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/BaseSortLib/BaseSortLib.c
udk2010.up2.shell initial release.
[mirror_edk2.git] / ShellPkg / Library / BaseSortLib / BaseSortLib.c
index ceedc884c0087d4f1f29ab0b2be20dd385d76a5f..2d3f190324d708793072af25e8566aabf01a1c13 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Library used for sorting routines.\r
 \r
-  Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved. <BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -62,7 +62,7 @@ QuickSortWorker (
 \r
   if ( Count < 2\r
     || ElementSize  < 1\r
-    ){\r
+   ){\r
     return;\r
   }\r
 \r
@@ -80,7 +80,7 @@ QuickSortWorker (
   for ( LoopCount = 0\r
       ; LoopCount < Count -1\r
       ; LoopCount++\r
-      ){\r
+     ){\r
     //\r
     // if the element is less than the pivot\r
     //\r
@@ -174,6 +174,9 @@ PerformQuickSort (
 /**\r
   Not supported in Base version.\r
 \r
+  @param[in] Buffer1  Ignored.\r
+  @param[in] Buffer2  Ignored.\r
+\r
   ASSERT and return 0.\r
 **/\r
 INTN\r
@@ -209,3 +212,25 @@ StringNoCaseCompare (
 }\r
 \r
 \r
+/**\r
+  Function to compare 2 strings.\r
+\r
+  @param[in] Buffer1            Pointer to String to compare (CHAR16**).\r
+  @param[in] Buffer2            Pointer to second String to compare (CHAR16**).\r
+\r
+  @retval 0                     Buffer1 equal to Buffer2.\r
+  @return < 0                   Buffer1 is less than Buffer2.\r
+  @return > 0                   Buffer1 is greater than Buffer2.\r
+**/\r
+INTN\r
+EFIAPI\r
+StringCompare (\r
+  IN  CONST VOID                *Buffer1,\r
+  IN  CONST VOID                *Buffer2\r
+  )\r
+{\r
+  ASSERT(FALSE);\r
+  return 0;\r
+}\r
+\r
+\r