/** @file\r
+Generic but simple file parsing routines.\r
\r
-Copyright (c) 2004 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
+Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>\r
+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
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
- SimpleFileParsing.c \r
-\r
-Abstract:\r
-\r
- Generic but simple file parsing routines.\r
-\r
--*/\r
\r
#include <stdio.h>\r
#include <stdlib.h>\r
#include <ctype.h>\r
\r
+#include "CommonLib.h"\r
#include "EfiUtilityMsgs.h"\r
#include "SimpleFileParsing.h"\r
\r
\r
--*/\r
{\r
- unsigned Val;\r
+ int Val;\r
\r
SkipWhiteSpace (&mGlobals.SourceFile);\r
if (EndOfFile (&mGlobals.SourceFile)) {\r
// Try to open the file locally, and if that fails try along our include paths.\r
//\r
strcpy (FoundFileName, SourceFile->FileName);\r
- if ((SourceFile->Fptr = fopen (FoundFileName, "rb")) == NULL) {\r
+ if ((SourceFile->Fptr = fopen (LongFilePath (FoundFileName), "rb")) == NULL) {\r
return STATUS_ERROR;\r
}\r
//\r
\r
--*/\r
{\r
- unsigned Value32;\r
+ INT32 Value32;\r
UINT32 Index;\r
FILE_POSITION FPos;\r
CHAR8 TempString[20];\r