Home
last modified time | relevance | path

Searched refs:CurrentScriptFile (Results 1 – 5 of 5) sorted by relevance

/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel1CommandsLib/
DShift.c32 SCRIPT_FILE *CurrentScriptFile; in ShellCommandRunShift() local
43 CurrentScriptFile = ShellCommandGetCurrentScriptFile(); in ShellCommandRunShift()
44 ASSERT(CurrentScriptFile != NULL); in ShellCommandRunShift()
46 if (CurrentScriptFile->Argc < 2) { in ShellCommandRunShift()
51 for (LoopVar = 0 ; LoopVar < CurrentScriptFile->Argc ; LoopVar++) { in ShellCommandRunShift()
53 SHELL_FREE_NON_NULL(CurrentScriptFile->Argv[LoopVar]); in ShellCommandRunShift()
55 if (LoopVar < CurrentScriptFile->Argc -1) { in ShellCommandRunShift()
56 CurrentScriptFile->Argv[LoopVar] = CurrentScriptFile->Argv[LoopVar+1]; in ShellCommandRunShift()
58 CurrentScriptFile->Argv[LoopVar] = NULL; in ShellCommandRunShift()
61 CurrentScriptFile->Argc--; in ShellCommandRunShift()
DFor.c73 SCRIPT_FILE *CurrentScriptFile; in ShellCommandRunEndFor() local
91 CurrentScriptFile = ShellCommandGetCurrentScriptFile(); in ShellCommandRunEndFor()
100 CurrentScriptFile!=NULL in ShellCommandRunEndFor()
101 && CurrentScriptFile->CurrentCommand!=NULL in ShellCommandRunEndFor()
102 ? CurrentScriptFile->CurrentCommand->Line:0); in ShellCommandRunEndFor()
295 SCRIPT_FILE *CurrentScriptFile; in ShellCommandRunFor() local
336 CurrentScriptFile = ShellCommandGetCurrentScriptFile(); in ShellCommandRunFor()
337 ASSERT(CurrentScriptFile != NULL); in ShellCommandRunFor()
339 …if ((CurrentScriptFile->CurrentCommand != NULL) && (CurrentScriptFile->CurrentCommand->Data == NUL… in ShellCommandRunFor()
345 if (!MoveToTag(GetNextNode, L"endfor", L"for", NULL, CurrentScriptFile, TRUE, TRUE, FALSE)) { in ShellCommandRunFor()
[all …]
DGoto.c37 SCRIPT_FILE *CurrentScriptFile; in ShellCommandRunGoto() local
84 CurrentScriptFile = ShellCommandGetCurrentScriptFile(); in ShellCommandRunGoto()
93 CurrentScriptFile!=NULL in ShellCommandRunGoto()
94 && CurrentScriptFile->CurrentCommand!=NULL in ShellCommandRunGoto()
95 ? CurrentScriptFile->CurrentCommand->Line:0); in ShellCommandRunGoto()
DIf.c828 SCRIPT_FILE *CurrentScriptFile; in ShellCommandRunIf() local
846 CurrentScriptFile = ShellCommandGetCurrentScriptFile(); in ShellCommandRunIf()
847 if (!MoveToTag(GetNextNode, L"endif", L"if", NULL, CurrentScriptFile, TRUE, TRUE, FALSE)) { in ShellCommandRunIf()
856 CurrentScriptFile!=NULL in ShellCommandRunIf()
857 && CurrentScriptFile->CurrentCommand!=NULL in ShellCommandRunIf()
858 ? CurrentScriptFile->CurrentCommand->Line:0); in ShellCommandRunIf()
932 CurrentScriptFile = ShellCommandGetCurrentScriptFile(); in ShellCommandRunIf()
941 CurrentScriptFile!=NULL in ShellCommandRunIf()
942 && CurrentScriptFile->CurrentCommand!=NULL in ShellCommandRunIf()
943 ? CurrentScriptFile->CurrentCommand->Line:0); in ShellCommandRunIf()
[all …]
/device/linaro/bootloader/edk2/ShellPkg/Application/Shell/
DShell.c1484 SCRIPT_FILE *CurrentScriptFile; in ShellConvertVariables() local
1491 CurrentScriptFile = ShellCommandGetCurrentScriptFile(); in ShellConvertVariables()
1499 if (CurrentScriptFile != NULL) { in ShellConvertVariables()
1500 for (AliasListNode = (ALIAS_LIST*)GetFirstNode(&CurrentScriptFile->SubstList) in ShellConvertVariables()
1501 ; !IsNull(&CurrentScriptFile->SubstList, &AliasListNode->Link) in ShellConvertVariables()
1502 … ; AliasListNode = (ALIAS_LIST*)GetNextNode(&CurrentScriptFile->SubstList, &AliasListNode->Link) in ShellConvertVariables()
1570 if (CurrentScriptFile != NULL) { in ShellConvertVariables()
1571 for (AliasListNode = (ALIAS_LIST*)GetFirstNode(&CurrentScriptFile->SubstList) in ShellConvertVariables()
1572 ; !IsNull(&CurrentScriptFile->SubstList, &AliasListNode->Link) in ShellConvertVariables()
1573 … ; AliasListNode = (ALIAS_LIST*)GetNextNode(&CurrentScriptFile->SubstList, &AliasListNode->Link) in ShellConvertVariables()