]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Application/ShellCTestApp/ShellCTestApp.c
Fix signed/unsigned mismatch issue
[mirror_edk2.git] / ShellPkg / Application / ShellCTestApp / ShellCTestApp.c
index 44f50790c0c38676a087beefa13f67c7a64d5142..f7bc8ccc859e07f1fd05d1ee9488578fbf3fd101 100644 (file)
@@ -1,5 +1,6 @@
 /** @file\r
-  This is THE shell (application)\r
+  This is a test application that demonstrates how to use the C-style entry point \r
+  for a shell application.\r
 \r
   Copyright (c) 2009, Intel Corporation                                                         \r
   All rights reserved. This program and the accompanying materials                          \r
 **/\r
 \r
 #include <Uefi.h>\r
-\r
 #include <Library/UefiLib.h>\r
 #include <Library/DebugLib.h>\r
+#include <Library/ShellCEntryLib.h>\r
+\r
+/**\r
+  UEFI application entry point which has an interface similar to a\r
+  standard C main function.\r
+\r
+  The ShellCEntryLib library instance wrappers the actual UEFI application\r
+  entry point and calls this ShellAppMain function.\r
 \r
+  @param  ImageHandle  The image handle of the UEFI Application.\r
+  @param  SystemTable  A pointer to the EFI System Table.\r
+\r
+  @retval  0               The application exited normally.\r
+  @retval  Other           An error occurred.\r
+\r
+**/\r
 INTN \r
 EFIAPI \r
 ShellAppMain (\r
-  IN INTN Argc, \r
+  IN UINTN Argc, \r
   IN CHAR16 **Argv\r
   )\r
 {\r
-  INTN Index;\r
+  UINTN  Index;\r
 \r
   Print(L"ShellCTestApp.c:ShellAppMain called with %d parameters\n", Argc);\r
   for (Index = 0; Index < Argc; Index++) {\r
@@ -32,4 +47,4 @@ ShellAppMain (
   }\r
 \r
   return 0;\r
-}
\ No newline at end of file
+}\r