mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
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> |
||
|---|---|---|
| .. | ||
| BufferImage.c | ||
| BufferImage.h | ||
| Clipboard.c | ||
| Clipboard.h | ||
| DiskImage.c | ||
| DiskImage.h | ||
| FileImage.c | ||
| FileImage.h | ||
| HexEdit.c | ||
| HexEditor.h | ||
| HexEditorTypes.h | ||
| HexeditStrings.uni | ||
| MainHexEditor.c | ||
| MainHexEditor.h | ||
| MemImage.c | ||
| MemImage.h | ||
| Misc.c | ||
| Misc.h | ||