1/******************************************************************************
2 *
3 * Module Name: aslcompile - top level compile module
4 *
5 *****************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2012, Intel Corp.
--- 36 unchanged lines hidden (view full) ---
45
46#include <stdio.h>
47#include <time.h>
48#include <contrib/dev/acpica/include/acapps.h>
49
50#define _COMPONENT ACPI_COMPILER
51 ACPI_MODULE_NAME ("aslcompile")
52
53/* Local prototypes */
54
55static void
56CmFlushSourceCode (
57 void);
58
59static void
60FlConsumeAnsiComment (
--- 208 unchanged lines hidden (view full) ---
269FlConsumeAnsiComment (
270 FILE *Handle,
271 ASL_FILE_STATUS *Status)
272{
273 UINT8 Byte;
274 BOOLEAN ClosingComment = FALSE;
275
276
277 while (fread (&Byte, 1, 1, Handle))
278 {
279 /* Scan until comment close is found */
280
281 if (ClosingComment)
282 {
283 if (Byte == '/')
284 {
285 return;
--- 26 unchanged lines hidden (view full) ---
312static void
313FlConsumeNewComment (
314 FILE *Handle,
315 ASL_FILE_STATUS *Status)
316{
317 UINT8 Byte;
318
319
320 while (fread (&Byte, 1, 1, Handle))
321 {
322 Status->Offset++;
323
324 /* Comment ends at newline */
325
326 if (Byte == 0x0A)
327 {
328 Status->Line++;
--- 34 unchanged lines hidden (view full) ---
363 ASL_FILE_STATUS Status;
364
365
366 Status.Line = 1;
367 Status.Offset = 0;
368
369 /* Read the entire file */
370
371 while (fread (&Byte, 1, 1, Handle))
372 {
373 /* Ignore comment fields (allow non-ascii within) */
374
375 if (OpeningComment)
376 {
377 /* Check for second comment open delimiter */
378
379 if (Byte == '*')
--- 527 unchanged lines hidden ---
2 *
3 * Module Name: aslcompile - top level compile module
4 *
5 *****************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2012, Intel Corp.
--- 36 unchanged lines hidden (view full) ---
45
46#include <stdio.h>
47#include <time.h>
48#include <contrib/dev/acpica/include/acapps.h>
49
50#define _COMPONENT ACPI_COMPILER
51 ACPI_MODULE_NAME ("aslcompile")
52
53/* Local prototypes */
54
55static void
56CmFlushSourceCode (
57 void);
58
59static void
60FlConsumeAnsiComment (
--- 208 unchanged lines hidden (view full) ---
269FlConsumeAnsiComment (
270 FILE *Handle,
271 ASL_FILE_STATUS *Status)
272{
273 UINT8 Byte;
274 BOOLEAN ClosingComment = FALSE;
275
276
277 while (fread (&Byte, 1, 1, Handle))
278 {
279 /* Scan until comment close is found */
280
281 if (ClosingComment)
282 {
283 if (Byte == '/')
284 {
285 return;
--- 26 unchanged lines hidden (view full) ---
312static void
313FlConsumeNewComment (
314 FILE *Handle,
315 ASL_FILE_STATUS *Status)
316{
317 UINT8 Byte;
318
319
320 while (fread (&Byte, 1, 1, Handle))
321 {
322 Status->Offset++;
323
324 /* Comment ends at newline */
325
326 if (Byte == 0x0A)
327 {
328 Status->Line++;
--- 34 unchanged lines hidden (view full) ---
363 ASL_FILE_STATUS Status;
364
365
366 Status.Line = 1;
367 Status.Offset = 0;
368
369 /* Read the entire file */
370
371 while (fread (&Byte, 1, 1, Handle))
372 {
373 /* Ignore comment fields (allow non-ascii within) */
374
375 if (OpeningComment)
376 {
377 /* Check for second comment open delimiter */
378
379 if (Byte == '*')
--- 527 unchanged lines hidden ---