]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/BaseSortLib/BaseSortLib.c
updating comments mostly. also added some new lib functions.
[mirror_edk2.git] / ShellPkg / Library / BaseSortLib / BaseSortLib.c
index 904dece1ba1250575f4a3d5f2aeeb013a81ee187..a7b37a0f550573a3c7b9a5b8e178731ab155fe38 100644 (file)
@@ -178,10 +178,33 @@ PerformQuickSort (
 **/\r
 INTN\r
 DevicePathCompare (\r
-  IN  VOID             *Buffer1,\r
-  IN  VOID             *Buffer2\r
+  IN  CONST VOID             *Buffer1,\r
+  IN  CONST VOID             *Buffer2\r
   )\r
 {\r
   ASSERT(FALSE);\r
   return 0;\r
-}
\ No newline at end of file
+}\r
+\r
+/**\r
+  Function to compare 2 strings without regard to case of the characters.\r
+\r
+  @param[in] Buffer1            Pointer to String to compare.\r
+  @param[in] Buffer2            Pointer to second String to compare.\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
+StringNoCaseCompare (\r
+  IN  CONST VOID             *Buffer1,\r
+  IN  CONST VOID             *Buffer2\r
+  )\r
+{\r
+  ASSERT(FALSE);\r
+  return 0;\r
+}\r
+\r
+\r