#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
}\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
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
//\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
} 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
//\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
**/\r
EFI_STATUS\r
StatusBarSetStatusString (\r
- IN CHAR16 *Str\r
+ IN CHAR16 *Str\r
)\r
{\r
StatusStringChanged = TRUE;\r
\r
@return The string that is used.\r
**/\r
-CONST CHAR16*\r
+CONST CHAR16 *\r
StatusBarGetString (\r
VOID\r
)\r
Function to set the need refresh boolean to TRUE.\r
**/\r
VOID\r
-StatusBarSetRefresh(\r
+StatusBarSetRefresh (\r
VOID\r
)\r
{\r
@retval TRUE The status bar needs to be refreshed.\r
**/\r
BOOLEAN\r
-StatusBarGetRefresh(\r
+StatusBarGetRefresh (\r
VOID\r
)\r
{\r