dtcompile.c (a009b7dcabdc27aa3fdde1f2c6dd08d4fe5a3170) dtcompile.c (f9a6772ec354ef7acdcc3de0167e31461ab78a38)
1/******************************************************************************
2 *
3 * Module Name: dtcompile.c - Front-end for data table compiler
4 *
5 *****************************************************************************/
6
7/******************************************************************************
8 *

--- 247 unchanged lines hidden (view full) ---

256 }
257
258 Event = UtBeginEvent ("Compile parse tree");
259
260 Status = DtCompileDataTable (&FieldList);
261 UtEndEvent (Event);
262
263 FileNode = FlGetCurrentFileNode ();
1/******************************************************************************
2 *
3 * Module Name: dtcompile.c - Front-end for data table compiler
4 *
5 *****************************************************************************/
6
7/******************************************************************************
8 *

--- 247 unchanged lines hidden (view full) ---

256 }
257
258 Event = UtBeginEvent ("Compile parse tree");
259
260 Status = DtCompileDataTable (&FieldList);
261 UtEndEvent (Event);
262
263 FileNode = FlGetCurrentFileNode ();
264 if (!FileNode)
265 {
266 fprintf (stderr, "Summary for %s could not be generated",
267 AslGbl_Files[ASL_FILE_INPUT].Filename);
268 }
269 else
270 {
271 FileNode->TotalLineCount = AslGbl_CurrentLineNumber;
272 FileNode->OriginalInputFileSize = AslGbl_InputByteCount;
273 DbgPrint (ASL_PARSE_OUTPUT, "Line count: %u input file size: %u\n",
274 FileNode->TotalLineCount, FileNode->OriginalInputFileSize);
275 }
276
264
265 FileNode->TotalLineCount = AslGbl_CurrentLineNumber;
266 FileNode->OriginalInputFileSize = AslGbl_InputByteCount;
267 DbgPrint (ASL_PARSE_OUTPUT, "Line count: %u input file size: %u\n",
268 FileNode->TotalLineCount, FileNode->OriginalInputFileSize);
269
277 if (ACPI_FAILURE (Status))
278 {
270 if (ACPI_FAILURE (Status))
271 {
279 if (FileNode)
280 {
281 FileNode->ParserErrorDetected = TRUE;
282 }
272 FileNode->ParserErrorDetected = TRUE;
283
284 /* TBD: temporary error message. Msgs should come from function above */
285
286 DtError (ASL_ERROR, ASL_MSG_SYNTAX, NULL,
287 "Could not compile input file");
288
289 return (Status);
290 }

--- 10 unchanged lines hidden (view full) ---

301 /* Write the binary, then the optional hex file */
302
303 DtOutputBinary (AslGbl_RootTable);
304 HxDoHexOutput ();
305 DtWriteTableToListing ();
306
307 /* Save the compile time statistics to the current file node */
308
273
274 /* TBD: temporary error message. Msgs should come from function above */
275
276 DtError (ASL_ERROR, ASL_MSG_SYNTAX, NULL,
277 "Could not compile input file");
278
279 return (Status);
280 }

--- 10 unchanged lines hidden (view full) ---

291 /* Write the binary, then the optional hex file */
292
293 DtOutputBinary (AslGbl_RootTable);
294 HxDoHexOutput ();
295 DtWriteTableToListing ();
296
297 /* Save the compile time statistics to the current file node */
298
309 if (FileNode)
310 {
311 FileNode->TotalFields = AslGbl_InputFieldCount;
312 FileNode->OutputByteLength = AslGbl_TableLength;
313 }
299 FileNode->TotalFields = AslGbl_InputFieldCount;
300 FileNode->OutputByteLength = AslGbl_TableLength;
314
315 return (Status);
316}
317
318
319/******************************************************************************
320 *
321 * FUNCTION: DtInitialize

--- 550 unchanged lines hidden ---
301
302 return (Status);
303}
304
305
306/******************************************************************************
307 *
308 * FUNCTION: DtInitialize

--- 550 unchanged lines hidden ---