/*++\r
\r
-Copyright (c) 2006, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2007, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
Module Name:\r
\r
#include "Ui.h"\r
#include "Colors.h"\r
\r
-#ifndef EFI_MAX\r
#define EFI_MAX(_a, _b) ((_a) > (_b) ? (_a) : (_b))\r
-#endif\r
\r
EFI_STATUS\r
-ReadString (\r
+ReadString(\r
IN UI_MENU_OPTION *MenuOption,\r
OUT CHAR16 *StringPtr\r
)\r
\r
Routine Description:\r
\r
- This routine reads a numeric value from the user input. \r
+ This routine reads a numeric value from the user input.\r
\r
Arguments:\r
\r
ManualInput - If the input is manual or not.\r
\r
Tag - Pointer to all the attributes and values associated with a tag.\r
- \r
+\r
Value - Pointer to the numeric value that is going to be read.\r
\r
-Returns: \r
+Returns:\r
\r
EFI_SUCCESS - If numerical input is read successfully\r
EFI_DEVICE_ERROR - If operation fails\r
- \r
+\r
--*/\r
{\r
EFI_INPUT_KEY Key;\r
Tag->Value = (UINT16) Number;\r
*Value = (UINT16) Number;\r
UnicodeValueToString (\r
- FormattedNumber, \r
- FALSE, \r
- (UINTN) Number, \r
+ FormattedNumber,\r
+ FALSE,\r
+ (UINTN) Number,\r
(sizeof (FormattedNumber) / sizeof (FormattedNumber[0]))\r
);\r
Number = (UINT16) GetStringWidth (FormattedNumber);\r
} else {\r
if (Key.ScanCode == SCAN_UP) {\r
TempIndex = Index - 1;\r
- \r
+\r
//\r
// Keep going until meets meaningful tag.\r
//\r