]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/Common/ParseInf.h
BaseTools: Fix compile error on VS2010
[mirror_edk2.git] / BaseTools / Source / C / Common / ParseInf.h
index af532b8a18bcd3446586de0c54861dbade957208..80ee3887ad1ae7d7c8e3ea9f280e451921d535a3 100644 (file)
@@ -1,7 +1,8 @@
 /** @file\r
+Header file for helper functions useful for parsing INF files.\r
 \r
-Copyright (c) 2004 - 2008, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \r
+Copyright (c) 2004 - 2014, 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
@@ -9,14 +10,6 @@ http://opensource.org/licenses/bsd-license.php
 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
-  ParseInf.h\r
-\r
-Abstract:\r
-\r
-  Header file for helper functions useful for parsing INF files.\r
-\r
 **/\r
 \r
 #ifndef _EFI_PARSE_INF_H\r
@@ -27,11 +20,9 @@ Abstract:
 #include <Common/UefiBaseTypes.h>\r
 #include <MemoryFile.h>\r
 \r
-#ifndef _MAX_PATH\r
-#define _MAX_PATH 500\r
+#ifdef __cplusplus\r
+extern "C" {\r
 #endif\r
-\r
-\r
 //\r
 // Functions declarations\r
 //\r
@@ -57,7 +48,7 @@ Routine Description:
 Arguments:\r
 \r
   InputFile     Memory file image.\r
-  InputBuffer   Buffer to read into, must be _MAX_PATH size.\r
+  InputBuffer   Buffer to read into, must be MaxLength size.\r
   MaxLength     The maximum size of the input buffer.\r
 \r
 Returns:\r
@@ -113,7 +104,7 @@ Arguments:
   Section   The section to search for, a string within [].\r
   Token     The token to search for, e.g. EFI_PEIM_RECOVERY, followed by an = in the INF file.\r
   Instance  The instance of the token to search for.  Zero is the first instance.\r
-  Value     The string that holds the value following the =.  Must be _MAX_PATH in size.\r
+  Value     The string that holds the value following the =.  Must be MAX_LONG_FILE_PATH in size.\r
 \r
 Returns:\r
 \r
@@ -194,7 +185,7 @@ Routine Description:
 Arguments:\r
 \r
   InputFile     Stream pointer.\r
-  InputBuffer   Buffer to read into, must be _MAX_PATH size.\r
+  InputBuffer   Buffer to read into, must be MAX_LONG_FILE_PATH size.\r
 \r
 Returns:\r
 \r
@@ -227,4 +218,9 @@ Returns:
   TRUE if section found\r
 \r
 --*/\r
+\r
+#ifdef __cplusplus\r
+}\r
+#endif\r
+\r
 #endif\r