Deleted Added
full compact
dtio.c (234623) dtio.c (235945)
1/******************************************************************************
2 *
3 * Module Name: dtio.c - File I/O support for data table compiler
4 *
5 *****************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2012, Intel Corp.

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

422 {
423 c = (char) getc (Handle);
424 if (c == EOF)
425 {
426 switch (State)
427 {
428 case DT_START_QUOTED_STRING:
429 case DT_SLASH_ASTERISK_COMMENT:
1/******************************************************************************
2 *
3 * Module Name: dtio.c - File I/O support for data table compiler
4 *
5 *****************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2012, Intel Corp.

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

422 {
423 c = (char) getc (Handle);
424 if (c == EOF)
425 {
426 switch (State)
427 {
428 case DT_START_QUOTED_STRING:
429 case DT_SLASH_ASTERISK_COMMENT:
430 case DT_SLASH_SLASH_COMMENT:
431
432 AcpiOsPrintf ("**** EOF within comment/string %u\n", State);
433 break;
434
435 default:
436 break;
437 }
438
430
431 AcpiOsPrintf ("**** EOF within comment/string %u\n", State);
432 break;
433
434 default:
435 break;
436 }
437
439 return (ASL_EOF);
438 /* Standalone EOF is OK */
439
440 if (i == 0)
441 {
442 return (ASL_EOF);
443 }
444
445 /*
446 * Received an EOF in the middle of a line. Terminate the
447 * line with a newline. The next call to this function will
448 * return a standalone EOF. Thus, the upper parsing software
449 * never has to deal with an EOF within a valid line (or
450 * the last line does not get tossed on the floor.)
451 */
452 c = '\n';
453 State = DT_NORMAL_TEXT;
440 }
441
442 switch (State)
443 {
444 case DT_NORMAL_TEXT:
445
446 /* Normal text, insert char into line buffer */
447

--- 550 unchanged lines hidden ---
454 }
455
456 switch (State)
457 {
458 case DT_NORMAL_TEXT:
459
460 /* Normal text, insert char into line buffer */
461

--- 550 unchanged lines hidden ---