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.c72 SCRIPT_FILE *CurrentScriptFile; in ShellCommandRunEndFor() local
90 CurrentScriptFile = ShellCommandGetCurrentScriptFile(); in ShellCommandRunEndFor()
99 CurrentScriptFile!=NULL in ShellCommandRunEndFor()
100 && CurrentScriptFile->CurrentCommand!=NULL in ShellCommandRunEndFor()
101 ? CurrentScriptFile->CurrentCommand->Line:0); in ShellCommandRunEndFor()
290 SCRIPT_FILE *CurrentScriptFile; in ShellCommandRunFor() local
331 CurrentScriptFile = ShellCommandGetCurrentScriptFile(); in ShellCommandRunFor()
332 ASSERT(CurrentScriptFile != NULL); in ShellCommandRunFor()
334 …if ((CurrentScriptFile->CurrentCommand != NULL) && (CurrentScriptFile->CurrentCommand->Data == NUL… in ShellCommandRunFor()
340 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.c834 SCRIPT_FILE *CurrentScriptFile; in ShellCommandRunIf() local
852 CurrentScriptFile = ShellCommandGetCurrentScriptFile(); in ShellCommandRunIf()
853 if (!MoveToTag(GetNextNode, L"endif", L"if", NULL, CurrentScriptFile, TRUE, TRUE, FALSE)) { in ShellCommandRunIf()
862 CurrentScriptFile!=NULL in ShellCommandRunIf()
863 && CurrentScriptFile->CurrentCommand!=NULL in ShellCommandRunIf()
864 ? CurrentScriptFile->CurrentCommand->Line:0); in ShellCommandRunIf()
938 CurrentScriptFile = ShellCommandGetCurrentScriptFile(); in ShellCommandRunIf()
947 CurrentScriptFile!=NULL in ShellCommandRunIf()
948 && CurrentScriptFile->CurrentCommand!=NULL in ShellCommandRunIf()
949 ? CurrentScriptFile->CurrentCommand->Line:0); in ShellCommandRunIf()
[all …]
/device/linaro/bootloader/edk2/ShellPkg/Application/Shell/
DShell.c1534 SCRIPT_FILE *CurrentScriptFile; in ShellConvertVariables() local
1541 CurrentScriptFile = ShellCommandGetCurrentScriptFile(); in ShellConvertVariables()
1549 if (CurrentScriptFile != NULL) { in ShellConvertVariables()
1550 for (AliasListNode = (ALIAS_LIST*)GetFirstNode(&CurrentScriptFile->SubstList) in ShellConvertVariables()
1551 ; !IsNull(&CurrentScriptFile->SubstList, &AliasListNode->Link) in ShellConvertVariables()
1552 … ; AliasListNode = (ALIAS_LIST*)GetNextNode(&CurrentScriptFile->SubstList, &AliasListNode->Link) in ShellConvertVariables()
1620 if (CurrentScriptFile != NULL) { in ShellConvertVariables()
1621 for (AliasListNode = (ALIAS_LIST*)GetFirstNode(&CurrentScriptFile->SubstList) in ShellConvertVariables()
1622 ; !IsNull(&CurrentScriptFile->SubstList, &AliasListNode->Link) in ShellConvertVariables()
1623 … ; AliasListNode = (ALIAS_LIST*)GetNextNode(&CurrentScriptFile->SubstList, &AliasListNode->Link) in ShellConvertVariables()