32 if (!gEfiShellProtocol->BatchIsActive ()) {
38 if (CurrentScriptFile ==
NULL) {
39 ASSERT (CurrentScriptFile !=
NULL);
43 if (CurrentScriptFile->
Argc < 2) {
48 for (LoopVar = 0; LoopVar < CurrentScriptFile->
Argc; LoopVar++) {
50 SHELL_FREE_NON_NULL (CurrentScriptFile->
Argv[LoopVar]);
53 if (LoopVar < CurrentScriptFile->Argc -1) {
54 CurrentScriptFile->
Argv[LoopVar] = CurrentScriptFile->
Argv[LoopVar+1];
56 CurrentScriptFile->
Argv[LoopVar] =
NULL;
60 CurrentScriptFile->
Argc--;
#define ASSERT_EFI_ERROR(StatusParameter)
@ SHELL_INVALID_PARAMETER
EFI_STATUS EFIAPI CommandInit(VOID)
SCRIPT_FILE *EFIAPI ShellCommandGetCurrentScriptFile(VOID)
EFI_STATUS EFIAPI ShellPrintHiiEx(IN INT32 Col OPTIONAL, IN INT32 Row OPTIONAL, IN CONST CHAR8 *Language OPTIONAL, IN CONST EFI_STRING_ID HiiFormatStringId, IN CONST EFI_HII_HANDLE HiiFormatHandle,...)
SHELL_STATUS EFIAPI ShellCommandRunShift(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
UINTN Argc
The count of parameters.
CHAR16 ** Argv
The parmameters to the script file.