summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/Workspace/BuildClassObject.py
diff options
context:
space:
mode:
authorPierre Gondois <pierre.gondois@arm.com>2026-06-04 12:19:05 +0300
committerArd Biesheuvel <ardb@kernel.org>2026-08-04 10:35:35 +0300
commit5bdbf4462bd50762b308a62498f587650ebaf656 (patch)
treeac01f08616272939997623136dce609b3b3ee8db /BaseTools/Source/Python/Workspace/BuildClassObject.py
parent6d0ef532c633f9924f3f416e744653a0639e7c4e (diff)
downloadedk2-5bdbf4462bd50762b308a62498f587650ebaf656.tar.xz
ShellPkg/UefiShellDebug1: Extract MainCmdXXX() function (2/4)
This patch aims to help breaking down the long functions present in the ShellPkg and reduce complexity/nested code and conditions. Extract a MainCmdXXX() function for each shell command. This command contains the possible operations the command aims to operate. The ShellCommandRunXXX() function from which it is extracted is only responsible of: - initializing the shell/command environment - parsing the command parameter and creating a Package - freeing the Package For the MemMap and SetVar commands, ShellCommandLineFreeVarList() calls are removed as the Package is now freed in the caller function: ShellCommandRunXXX(). To avoid having one large commit updating all the UefiShellDebug1 commands, only update these files: - Edit/Edit.c - EfiCompress.c - EfiDecompress.c - HexEdit/HexEdit.c - LoadPciRom.c No functional change should be induced by this patch. Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/BuildClassObject.py')
0 files changed, 0 insertions, 0 deletions