edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit
Pierre Gondois 5bdbf4462b 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>
2026-08-04 10:35:35 +03:00
..
BufferImage.c ShellPkg: Prevent memcpy intrinsics in VS22 (17.14.2) 2025-06-08 18:07:56 +00:00
BufferImage.h ShellPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
Clipboard.c ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Clipboard.h ShellPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
DiskImage.c ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
DiskImage.h ShellPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
FileImage.c ShellPkg: UefiShellDebug1CommandsLib: CodeQL Fixes 2024-10-29 02:09:18 +00:00
FileImage.h ShellPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
HexEdit.c ShellPkg/UefiShellDebug1: Extract MainCmdXXX() function (2/4) 2026-08-04 10:35:35 +03:00
HexEditor.h ShellPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
HexEditorTypes.h ShellPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
HexeditStrings.uni ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00
MainHexEditor.c ShellPkg: Use the newly introduced ShellPrintHiiDefaultEx() alias 2025-10-01 10:02:57 +02:00
MainHexEditor.h ShellPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
MemImage.c ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
MemImage.h ShellPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
Misc.c ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Misc.h ShellPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00