aslfiles.c (7648bc9fee8dec6cb3c4941e0165a930fbe8dcb0) | aslfiles.c (f9a6772ec354ef7acdcc3de0167e31461ab78a38) |
---|---|
1/****************************************************************************** 2 * 3 * Module Name: aslfiles - File support functions 4 * 5 *****************************************************************************/ 6 7/****************************************************************************** 8 * --- 193 unchanged lines hidden (view full) --- 202 { 203 AslError (ASL_ERROR, ASL_MSG_DUPLICATE_INPUT_FILE, NULL, InputFilename); 204 return (AE_ALREADY_EXISTS); 205 } 206 207 NewFileNode = ACPI_CAST_PTR (ASL_GLOBAL_FILE_NODE, 208 UtLocalCacheCalloc (sizeof (ASL_GLOBAL_FILE_NODE))); 209 | 1/****************************************************************************** 2 * 3 * Module Name: aslfiles - File support functions 4 * 5 *****************************************************************************/ 6 7/****************************************************************************** 8 * --- 193 unchanged lines hidden (view full) --- 202 { 203 AslError (ASL_ERROR, ASL_MSG_DUPLICATE_INPUT_FILE, NULL, InputFilename); 204 return (AE_ALREADY_EXISTS); 205 } 206 207 NewFileNode = ACPI_CAST_PTR (ASL_GLOBAL_FILE_NODE, 208 UtLocalCacheCalloc (sizeof (ASL_GLOBAL_FILE_NODE))); 209 |
210 if (!NewFileNode) 211 { 212 AslError (ASL_ERROR, ASL_MSG_MEMORY_ALLOCATION, NULL, NULL); 213 return (AE_NO_MEMORY); 214 } 215 | |
216 NewFileNode->ParserErrorDetected = FALSE; 217 NewFileNode->Next = AslGbl_FilesList; 218 219 AslGbl_FilesList = NewFileNode; 220 AslGbl_Files = NewFileNode->Files; 221 222 for (i = 0; i < ASL_NUM_FILES; i++) 223 { --- 191 unchanged lines hidden (view full) --- 415 * DESCRIPTION: Get the current input file node 416 * 417 ******************************************************************************/ 418 419ASL_GLOBAL_FILE_NODE * 420FlGetCurrentFileNode ( 421 void) 422{ | 210 NewFileNode->ParserErrorDetected = FALSE; 211 NewFileNode->Next = AslGbl_FilesList; 212 213 AslGbl_FilesList = NewFileNode; 214 AslGbl_Files = NewFileNode->Files; 215 216 for (i = 0; i < ASL_NUM_FILES; i++) 217 { --- 191 unchanged lines hidden (view full) --- 409 * DESCRIPTION: Get the current input file node 410 * 411 ******************************************************************************/ 412 413ASL_GLOBAL_FILE_NODE * 414FlGetCurrentFileNode ( 415 void) 416{ |
423 return (FlGetFileNode ( 424 ASL_FILE_INPUT,AslGbl_Files[ASL_FILE_INPUT].Filename)); | 417 ASL_GLOBAL_FILE_NODE *FileNode = 418 FlGetFileNode (ASL_FILE_INPUT,AslGbl_Files[ASL_FILE_INPUT].Filename); 419 420 421 if (!FileNode) 422 { 423 /* 424 * If the current file node does not exist after initializing the file 425 * node structures, something went wrong and this is an unrecoverable 426 * condition. 427 */ 428 FlFileError (ASL_FILE_INPUT, ASL_MSG_COMPILER_INTERNAL); 429 AslAbort (); 430 } 431 432 return (FileNode); |
425} 426 427 428/******************************************************************************* 429 * 430 * FUNCTION: FlSetLineNumber 431 * 432 * PARAMETERS: Op - Parse node for the LINE asl statement --- 884 unchanged lines hidden --- | 433} 434 435 436/******************************************************************************* 437 * 438 * FUNCTION: FlSetLineNumber 439 * 440 * PARAMETERS: Op - Parse node for the LINE asl statement --- 884 unchanged lines hidden --- |