\r
#include "Shell.h"\r
\r
-STATIC CONST CHAR16 mCrLfString[3] = { CHAR_CARRIAGE_RETURN, CHAR_LINEFEED, CHAR_NULL };\r
-\r
/**\r
Install our intermediate ConOut into the system table to\r
keep a log of all the info that is displayed to the user.\r
\r
extern EFI_GUID gShellAliasGuid;\r
\r
-#endif
\ No newline at end of file
+#endif\r
\r
extern EFI_GUID gShellVariableGuid;\r
\r
-#endif
\ No newline at end of file
+#endif\r
SHELL_NOT_EQUAL = 27\r
}SHELL_STATUS;\r
\r
-#endif //__SHELL_BASE__
\ No newline at end of file
+#endif //__SHELL_BASE_\r
Temp == NULL?L"":Temp,\r
Index == Dev->Mode->Mode ? L'*' : L' ',\r
Index,\r
- !EFI_ERROR(Status)?Col:-1,\r
- !EFI_ERROR(Status)?Row:-1\r
+ !EFI_ERROR(Status)?(INTN)Col:-1,\r
+ !EFI_ERROR(Status)?(INTN)Row:-1\r
);\r
}\r
FreePool(Temp);\r
// backup the old screen attributes\r
//\r
Orig = MainEditor.ColorAttributes;\r
+ New.Data = 0;\r
New.Colors.Foreground = Orig.Colors.Background;\r
New.Colors.Background = Orig.Colors.Foreground;\r
\r
CursorCol = gST->ConOut->Mode->CursorColumn;\r
CursorRow = gST->ConOut->Mode->CursorRow;\r
Orig.Data = gST->ConOut->Mode->Attribute;\r
+ New.Data = 0;\r
New.Colors.Foreground = Orig.Colors.Background;\r
New.Colors.Background = Orig.Colors.Foreground;\r
\r
// back up the screen attributes\r
//\r
Orig.Data = gST->ConOut->Mode->Attribute;\r
+ New.Data = 0;\r
New.Colors.Foreground = Orig.Colors.Background;\r
New.Colors.Background = Orig.Colors.Foreground;\r
\r
// backup the old screen attributes\r
//\r
Orig.Data = gST->ConOut->Mode->Attribute;\r
+ New.Data = 0;\r
New.Colors.Foreground = Orig.Colors.Background;\r
New.Colors.Background = Orig.Colors.Foreground;\r
\r
// backup the old screen attributes\r
//\r
Orig = HMainEditor.ColorAttributes;\r
+ New.Data = 0;\r
New.Colors.Foreground = Orig.Colors.Background;\r
New.Colors.Background = Orig.Colors.Foreground;\r
\r
UINTN Tmp;\r
\r
Orig = HMainEditor.ColorAttributes;\r
+ New.Data = 0;\r
New.Colors.Foreground = Orig.Colors.Background;\r
New.Colors.Background = Orig.Colors.Foreground;\r
\r
\r
typedef union {\r
HEFI_EDITOR_COLOR_ATTRIBUTES Colors;\r
- UINT8 Data;\r
+ UINTN Data;\r
} HEFI_EDITOR_COLOR_UNION;\r
\r
typedef struct {\r
// the file won't be saved\r
//\r
return EFI_SUCCESS;\r
- break;\r
\r
case L'c':\r
case L'C':\r
\r
default:\r
return (EFI_INVALID_PARAMETER);\r
- break;\r
}\r
\r
return EFI_SUCCESS;\r
}\r
}\r
return (FALSE);\r
- break;\r
case OperatorUnsignedLessThan:\r
case OperatorLessThan:\r
if (ForceStringCompare || !ShellIsHexOrDecimalNumber(Compare1, FALSE, FALSE) || !ShellIsHexOrDecimalNumber(Compare2, FALSE, FALSE)) {\r
\r
}\r
return (FALSE);\r
- break;\r
case OperatorEqual:\r
if (ForceStringCompare || !ShellIsHexOrDecimalNumber(Compare1, FALSE, FALSE) || !ShellIsHexOrDecimalNumber(Compare2, FALSE, FALSE)) {\r
//\r
}\r
}\r
return (FALSE);\r
- break;\r
case OperatorNotEqual:\r
if (ForceStringCompare || !ShellIsHexOrDecimalNumber(Compare1, FALSE, FALSE) || !ShellIsHexOrDecimalNumber(Compare2, FALSE, FALSE)) {\r
//\r
}\r
}\r
return (FALSE);\r
- break;\r
case OperatorUnsignedGreaterOrEqual:\r
case OperatorGreatorOrEqual:\r
if (ForceStringCompare || !ShellIsHexOrDecimalNumber(Compare1, FALSE, FALSE) || !ShellIsHexOrDecimalNumber(Compare2, FALSE, FALSE)) {\r
}\r
}\r
return (FALSE);\r
- break;\r
case OperatorLessOrEqual:\r
case OperatorUnsignedLessOrEqual:\r
if (ForceStringCompare || !ShellIsHexOrDecimalNumber(Compare1, FALSE, FALSE) || !ShellIsHexOrDecimalNumber(Compare2, FALSE, FALSE)) {\r
}\r
}\r
return (FALSE);\r
- break;\r
default:\r
ASSERT(FALSE);\r
return (FALSE);\r
if (*Walker == L'-') {\r
TheTime.TimeZone = (INT16)((ShellStrToUintn (++Walker)) * 60);\r
} else {\r
- TheTime.TimeZone = (INT16)((ShellStrToUintn (Walker)) * -60);\r
+ TheTime.TimeZone = (INT16)((INT16)(ShellStrToUintn (Walker)) * -60);\r
}\r
if (Walker2 != NULL) {\r
Walker = Walker2 + 1;\r