/*++\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
\r
Returns:\r
\r
- NONE \r
+ NONE\r
\r
--*/\r
{\r
//\r
// Free The Old Stack\r
//\r
- gBS->FreePool (mBooleanEvaluationStack);\r
+ FreePool (mBooleanEvaluationStack);\r
}\r
\r
mBooleanEvaluationStack = NewStack;\r
mBooleanEvaluationStackEnd = NewStack + StackSizeInBoolean;\r
}\r
\r
+STATIC\r
VOID\r
InitializeBooleanEvaluator (\r
VOID\r
\r
Arguments:\r
\r
- NONE \r
+ NONE\r
\r
Returns:\r
\r
- NONE \r
+ NONE\r
\r
--*/\r
{\r
return ReturnValue;\r
}\r
\r
+STATIC\r
EFI_STATUS\r
GrowBooleanExpression (\r
IN EFI_INCONSISTENCY_DATA *InconsistentTags,\r
//\r
// Free The Old buffer\r
//\r
- gBS->FreePool (*BooleanExpression);\r
+ FreePool (*BooleanExpression);\r
} else {\r
//\r
// Copy data into new buffer\r
return EFI_SUCCESS;\r
}\r
\r
+STATIC\r
VOID\r
CreateBooleanExpression (\r
IN EFI_FILE_FORM_TAGS *FileFormTags,\r
GrowBooleanExpression (&FakeInconsistentTags, BooleanExpression, BooleanExpressionLength);\r
}\r
\r
+STATIC\r
EFI_STATUS\r
BooleanVariableWorker (\r
IN CHAR16 *VariableName,\r
return Status;\r
}\r
\r
+STATIC\r
UINT8\r
PredicateIfrType (\r
IN EFI_INCONSISTENCY_DATA *Iterator\r
return 0x2;\r
}\r
\r
+STATIC\r
VOID\r
PostOrderEvaluate (\r
IN EFI_FILE_FORM_TAGS *FileFormTags,\r
\r
Width = (*PIterator)->Width;\r
\r
- // \r
+ //\r
// Because INVALID_OFFSET_VALUE - 1 is reserved for TRUE or FALSE, omit them.\r
//\r
if ((*PIterator)->QuestionId1 != INVALID_OFFSET_VALUE &&\r
MapValue = (UINT8) *MapBuffer;\r
}\r
\r
- gBS->FreePool (MapBuffer);\r
+ FreePool (MapBuffer);\r
}\r
\r
if (MapBuffer2 != NULL) {\r
MapValue2 = (UINT8) *MapBuffer2;\r
}\r
\r
- gBS->FreePool (MapBuffer2);\r
+ FreePool (MapBuffer2);\r
}\r
}\r
\r
switch ((*PIterator)->Operand) {\r
case EFI_IFR_EQ_VAR_VAL_OP:\r
UnicodeValueToString (\r
- VariableName, \r
- FALSE, \r
- (UINTN) (*PIterator)->QuestionId1, \r
+ VariableName,\r
+ FALSE,\r
+ (UINTN) (*PIterator)->QuestionId1,\r
(sizeof (VariableName) / sizeof (VariableName[0])) - 1\r
);\r
\r
break;\r
case EFI_IFR_NOT_OP:\r
Operator = PopBool (StackPtr);\r
- PushBool (StackPtr, !Operator);\r
+ PushBool (StackPtr, (BOOLEAN) (!Operator));\r
break;\r
\r
case EFI_IFR_SUPPRESS_IF_OP:\r
return Operator;\r
}\r
\r
- // \r
+ //\r
// Because INVALID_OFFSET_VALUE - 1 is reserved for TRUE or FALSE, omit them.\r
//\r
if (Iterator->QuestionId1 != INVALID_OFFSET_VALUE &&\r
MapValue = (UINT8) *MapBuffer;\r
}\r
\r
- gBS->FreePool (MapBuffer);\r
+ FreePool (MapBuffer);\r
}\r
\r
if (MapBuffer2 != NULL) {\r
MapValue2 = (UINT8) *MapBuffer2;\r
}\r
\r
- gBS->FreePool (MapBuffer2);\r
+ FreePool (MapBuffer2);\r
}\r
}\r
\r
}\r
\r
UnicodeValueToString (\r
- VariableName, \r
- FALSE, \r
- (UINTN) Iterator->QuestionId1, \r
+ VariableName,\r
+ FALSE,\r
+ (UINTN) Iterator->QuestionId1,\r
(sizeof (VariableName) / sizeof (VariableName[0])) - 1\r
);\r
\r
MapValue = (UINT8) *MapBuffer;\r
}\r
\r
- gBS->FreePool (MapBuffer);\r
+ FreePool (MapBuffer);\r
}\r
\r
if (MapBuffer2 != NULL) {\r
MapValue2 = (UINT8) *MapBuffer2;\r
}\r
\r
- gBS->FreePool (MapBuffer2);\r
+ FreePool (MapBuffer2);\r
}\r
}\r
\r
//\r
case EFI_IFR_EQ_VAR_VAL_OP:\r
UnicodeValueToString (\r
- VariableName, \r
- FALSE, \r
- (UINTN) Iterator->QuestionId1, \r
+ VariableName,\r
+ FALSE,\r
+ (UINTN) Iterator->QuestionId1,\r
(sizeof (VariableName) / sizeof (VariableName[0])) - 1\r
);\r
\r
MapValue = (UINT8) *MapBuffer;\r
}\r
\r
- gBS->FreePool (MapBuffer);\r
+ FreePool (MapBuffer);\r
}\r
\r
if (MapBuffer2 != NULL) {\r
MapValue2 = (UINT8) *MapBuffer2;\r
}\r
\r
- gBS->FreePool (MapBuffer2);\r
+ FreePool (MapBuffer2);\r
}\r
}\r
\r
//\r
case EFI_IFR_EQ_VAR_VAL_OP:\r
UnicodeValueToString (\r
- VariableName, \r
- FALSE, \r
- (UINTN) Iterator->QuestionId1, \r
+ VariableName,\r
+ FALSE,\r
+ (UINTN) Iterator->QuestionId1,\r
(sizeof (VariableName) / sizeof (VariableName[0])) - 1\r
);\r
\r
MapValue = (UINT8) *MapBuffer;\r
}\r
\r
- gBS->FreePool (MapBuffer);\r
+ FreePool (MapBuffer);\r
}\r
\r
if (MapBuffer2 != NULL) {\r
MapValue2 = (UINT8) *MapBuffer2;\r
}\r
\r
- gBS->FreePool (MapBuffer2);\r
+ FreePool (MapBuffer2);\r
}\r
}\r
\r
//\r
case EFI_IFR_EQ_VAR_VAL_OP:\r
UnicodeValueToString (\r
- VariableName, \r
- FALSE, \r
- (UINTN) Iterator->QuestionId1, \r
+ VariableName,\r
+ FALSE,\r
+ (UINTN) Iterator->QuestionId1,\r
(sizeof (VariableName) / sizeof (VariableName[0])) - 1\r
);\r
\r
PushBool (&StackPtr, Operator);\r
}\r
break;\r
- \r
+\r
case EFI_IFR_TRUE_OP:\r
//\r
// To check whether Ifr is legacy. Once every boolean expression.\r
return Operator;\r
}\r
\r
- return FALSE;\r
+ goto Done;\r
}\r
\r
Iterator++;\r
}\r
\r
+Done:\r
return FALSE;\r
}\r