Deleted Added
full compact
aslerror.c (241973) aslerror.c (243347)
1/******************************************************************************
2 *
3 * Module Name: aslerror - Error handling and statistics
4 *
5 *****************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2012, Intel Corp.

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

289 {
290 fprintf (OutputFile,
291 "[*** iASL: Seek error on source code temp file %s ***]",
292 Gbl_Files[ASL_FILE_SOURCE_OUTPUT].Filename);
293 }
294 else
295 {
296 RActual = fread (&SourceByte, 1, 1, SourceFile);
1/******************************************************************************
2 *
3 * Module Name: aslerror - Error handling and statistics
4 *
5 *****************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2012, Intel Corp.

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

289 {
290 fprintf (OutputFile,
291 "[*** iASL: Seek error on source code temp file %s ***]",
292 Gbl_Files[ASL_FILE_SOURCE_OUTPUT].Filename);
293 }
294 else
295 {
296 RActual = fread (&SourceByte, 1, 1, SourceFile);
297 if (!RActual)
297 if (RActual != 1)
298 {
299 fprintf (OutputFile,
300 "[*** iASL: Read error on source code temp file %s ***]",
301 Gbl_Files[ASL_FILE_SOURCE_OUTPUT].Filename);
302 }
303 else
304 {
305 while (RActual && SourceByte && (SourceByte != '\n') && (Total < 256))
306 {
298 {
299 fprintf (OutputFile,
300 "[*** iASL: Read error on source code temp file %s ***]",
301 Gbl_Files[ASL_FILE_SOURCE_OUTPUT].Filename);
302 }
303 else
304 {
305 while (RActual && SourceByte && (SourceByte != '\n') && (Total < 256))
306 {
307 fwrite (&SourceByte, 1, 1, OutputFile);
307 if (fwrite (&SourceByte, 1, 1, OutputFile) != 1)
308 {
309 printf ("[*** iASL: Write error on output file ***]\n");
310 return;
311 }
312
308 RActual = fread (&SourceByte, 1, 1, SourceFile);
313 RActual = fread (&SourceByte, 1, 1, SourceFile);
314 if (RActual != 1)
315 {
316 fprintf (OutputFile,
317 "[*** iASL: Read error on source code temp file %s ***]",
318 Gbl_Files[ASL_FILE_SOURCE_OUTPUT].Filename);
319 return;
320 }
309 Total++;
310 }
311
312 if (Total >= 256)
313 {
314 fprintf (OutputFile,
315 "\n[*** iASL: Long input line, an error occurred at column %u ***]",
316 Enode->Column);

--- 470 unchanged lines hidden ---
321 Total++;
322 }
323
324 if (Total >= 256)
325 {
326 fprintf (OutputFile,
327 "\n[*** iASL: Long input line, an error occurred at column %u ***]",
328 Enode->Column);

--- 470 unchanged lines hidden ---