ShellPkg: Fix comments. Refine code style.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>


git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15815 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Qiu Shumin 2014-08-18 00:48:22 +00:00 committed by shenshushi
parent da03183cd0
commit f5ba4007ae
5 changed files with 16 additions and 12 deletions

View File

@ -2054,7 +2054,7 @@ EfiShellFindFilesInDir(
} }
SHELL_FREE_NON_NULL(BasePath); SHELL_FREE_NON_NULL(BasePath);
return(Status); return(Status);
} }
/** /**
Get the GUID value from a human readable name. Get the GUID value from a human readable name.
@ -2586,8 +2586,8 @@ EfiShellOpenFileList(
multiple environment variables are being returned, Attributes multiple environment variables are being returned, Attributes
is undefined. is undefined.
@retval NULL The environment variable doesnt exist. @retval NULL The environment variable doesn't exist.
@return A non-NULL value points to the variables value. The returned @return A non-NULL value points to the variable's value. The returned
pointer does not need to be freed by the caller. pointer does not need to be freed by the caller.
**/ **/
CONST CHAR16 * CONST CHAR16 *

View File

@ -431,8 +431,8 @@ CONST CHAR16 *
multiple environment variables are being returned, Attributes multiple environment variables are being returned, Attributes
is undefined. is undefined.
@retval NULL The environment variable doesnt exist. @retval NULL The environment variable doesn't exist.
@return The environment variables value. The returned pointer does not @return The environment variable's value. The returned pointer does not
need to be freed by the caller. need to be freed by the caller.
**/ **/
typedef typedef

View File

@ -820,8 +820,8 @@ InternalShellGetNodeFromGuid(
Function to add a new GUID/Name mapping. Function to add a new GUID/Name mapping.
@param[in] Guid The Guid @param[in] Guid The Guid
@param[in] NameId The STRING id of the HII string to use @param[in] NameID The STRING id of the HII string to use
@param[in] Dump The pointer to the dump function @param[in] DumpFunc The pointer to the dump function
@retval EFI_SUCCESS The operation was sucessful @retval EFI_SUCCESS The operation was sucessful

View File

@ -215,7 +215,7 @@ ShellCommandLibDestructor (
} }
/** /**
Find a dynamic command protocol instance given a command name string Find a dynamic command protocol instance given a command name string.
@param CommandString the command name string @param CommandString the command name string
@ -277,7 +277,7 @@ ShellCommandDynamicCommandExists (
IN CONST CHAR16 *CommandString IN CONST CHAR16 *CommandString
) )
{ {
return (ShellCommandFindDynamicCommand(CommandString) != NULL); return (BOOLEAN) ((ShellCommandFindDynamicCommand(CommandString) != NULL));
} }
/** /**

View File

@ -35,11 +35,15 @@ PrintDynamicCommandHelp(
) )
{ {
EFI_STATUS Status; EFI_STATUS Status;
BOOLEAN Found = FALSE; BOOLEAN Found;
EFI_HANDLE *CommandHandleList = NULL; EFI_HANDLE *CommandHandleList;
EFI_HANDLE *NextCommand; EFI_HANDLE *NextCommand;
EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL *DynamicCommand; EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL *DynamicCommand;
CHAR16 *OutText = NULL; CHAR16 *OutText;
Found = FALSE;
CommandHandleList = NULL;
OutText = NULL;
CommandHandleList = GetHandleListByProtocol(&gEfiShellDynamicCommandProtocolGuid); CommandHandleList = GetHandleListByProtocol(&gEfiShellDynamicCommandProtocolGuid);