\r
VfrCompiler error handler.\r
\r
-Copyright (c) 2004 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
+Copyright (c) 2004 - 2008, 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
IN UINT32 WholeScopeLine\r
)\r
{\r
- CHAR8 *FullPathName = NULL;\r
SVfrFileScopeRecord *pNode = NULL;\r
\r
if (Record == NULL) {\r
CVfrErrorHandle::PrintMsg (\r
IN UINT32 LineNum,\r
IN CHAR8 *TokName,\r
- IN CHAR8 *MsgType,\r
- IN CHAR8 *ErrorMsg\r
+ IN CONST CHAR8 *MsgType,\r
+ IN CONST CHAR8 *ErrorMsg\r
)\r
{\r
CHAR8 *FileName = NULL;\r
UINT32 FileLine;\r
\r
if (strncmp ("Warning", MsgType, strlen ("Warning")) == 0) {\r
- VerboseMsg (ErrorMsg);\r
+ VerboseMsg ((CHAR8 *) ErrorMsg);\r
return;\r
}\r
GetFileNameLineNum (LineNum, &FileName, &FileLine);\r
- Error (FileName, FileLine, 0x3000, TokName, "\t%s\n", ErrorMsg);\r
+ Error (FileName, FileLine, 0x3000, TokName, (CHAR8 *) "\t%s\n", (CHAR8 *) ErrorMsg);\r
}\r
\r
UINT8\r
UINT32 Index;\r
CHAR8 *FileName = NULL;\r
UINT32 FileLine;\r
- CHAR8 *ErrorMsg = NULL;\r
+ CONST CHAR8 *ErrorMsg = NULL;\r
\r
if (mVfrErrorHandleTable == NULL) {\r
return 1;\r
\r
if (ErrorMsg != NULL) {\r
GetFileNameLineNum (LineNum, &FileName, &FileLine);\r
- Error (FileName, FileLine, 0x3000, TokName, "\t%s\n", ErrorMsg);\r
+ Error (FileName, FileLine, 0x3000, TokName, (CHAR8 *) "\t%s\n", (CHAR8 *) ErrorMsg);\r
return 1;\r
} else {\r
return 0;\r