]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellDebug1CommandsLib/EditStatusBar.c
ShellPkg: Apply uncrustify changes
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / EditStatusBar.c
index 400a0b05bdaa51e3c800974b1eeea20db0b6d2a5..06a60ebc5e30d908e9dee476686e3b7ba87a87ec 100644 (file)
@@ -9,9 +9,9 @@
 #include "EditStatusBar.h"\r
 #include "UefiShellDebug1CommandsLib.h"\r
 \r
-CHAR16  *StatusString;\r
-BOOLEAN StatusBarNeedRefresh;\r
-BOOLEAN StatusStringChanged;\r
+CHAR16   *StatusString;\r
+BOOLEAN  StatusBarNeedRefresh;\r
+BOOLEAN  StatusStringChanged;\r
 \r
 /**\r
   Initialization function for Status Bar.\r
@@ -53,13 +53,13 @@ StatusBarCleanup (
 }\r
 \r
 typedef struct {\r
-  UINT32  Foreground : 4;\r
-  UINT32  Background : 3;\r
+  UINT32    Foreground : 4;\r
+  UINT32    Background : 3;\r
 } STATUS_BAR_COLOR_ATTRIBUTES;\r
 \r
 typedef union {\r
-  STATUS_BAR_COLOR_ATTRIBUTES  Colors;\r
-  UINTN                       Data;\r
+  STATUS_BAR_COLOR_ATTRIBUTES    Colors;\r
+  UINTN                          Data;\r
 } STATUS_BAR_COLOR_UNION;\r
 \r
 /**\r
@@ -91,6 +91,7 @@ StatusBarRefresh (
   if (!StatusStringChanged && StatusBarNeedRefresh) {\r
     StatusBarSetStatusString (L"\0");\r
   }\r
+\r
   //\r
   // when it's called first time after editor launch, so refresh is mandatory\r
   //\r
@@ -117,7 +118,7 @@ StatusBarRefresh (
   //\r
   // print row, column fields\r
   //\r
-  if (FileRow != (UINTN)(-1) && FileCol != (UINTN)(-1)) {\r
+  if ((FileRow != (UINTN)(-1)) && (FileCol != (UINTN)(-1))) {\r
     ShellPrintEx (\r
       0,\r
       (INT32)(LastRow) - 1,\r
@@ -143,6 +144,7 @@ StatusBarRefresh (
   } else {\r
     ShellPrintEx ((INT32)(LastCol) - 21, (INT32)(LastRow) - 1, L"|%s|   Help: Ctrl-E", L"OVR");\r
   }\r
+\r
   //\r
   // restore the old screen attributes\r
   //\r
@@ -153,8 +155,8 @@ StatusBarRefresh (
   //\r
   gST->ConOut->EnableCursor (gST->ConOut, TRUE);\r
 \r
-  StatusBarNeedRefresh  = FALSE;\r
-  StatusStringChanged   = FALSE;\r
+  StatusBarNeedRefresh = FALSE;\r
+  StatusStringChanged  = FALSE;\r
 \r
   return EFI_SUCCESS;\r
 }\r
@@ -169,7 +171,7 @@ StatusBarRefresh (
 **/\r
 EFI_STATUS\r
 StatusBarSetStatusString (\r
-  IN CHAR16 *Str\r
+  IN CHAR16  *Str\r
   )\r
 {\r
   StatusStringChanged = TRUE;\r
@@ -191,7 +193,7 @@ StatusBarSetStatusString (
 \r
   @return The string that is used.\r
 **/\r
-CONST CHAR16*\r
+CONST CHAR16 *\r
 StatusBarGetString (\r
   VOID\r
   )\r
@@ -203,7 +205,7 @@ StatusBarGetString (
   Function to set the need refresh boolean to TRUE.\r
 **/\r
 VOID\r
-StatusBarSetRefresh(\r
+StatusBarSetRefresh (\r
   VOID\r
   )\r
 {\r
@@ -216,7 +218,7 @@ StatusBarSetRefresh(
   @retval TRUE    The status bar needs to be refreshed.\r
 **/\r
 BOOLEAN\r
-StatusBarGetRefresh(\r
+StatusBarGetRefresh (\r
   VOID\r
   )\r
 {\r