Deleted Added
full compact
aslcompile.c (241973) aslcompile.c (243347)
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
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/*
54 * Main parser entry
55 * External is here in case the parser emits the same external in the
56 * generated header. (Newer versions of Bison)
57 */
58int
59AslCompilerparse(
60 void);
61
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
62/* Local prototypes */
63
64static void
65CmFlushSourceCode (
66 void);
67
68static void
69FlConsumeAnsiComment (

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

278FlConsumeAnsiComment (
279 FILE *Handle,
280 ASL_FILE_STATUS *Status)
281{
282 UINT8 Byte;
283 BOOLEAN ClosingComment = FALSE;
284
285
277 while (fread (&Byte, 1, 1, Handle))
286 while (fread (&Byte, 1, 1, Handle) == 1)
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
287 {
288 /* Scan until comment close is found */
289
290 if (ClosingComment)
291 {
292 if (Byte == '/')
293 {
294 return;

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

321static void
322FlConsumeNewComment (
323 FILE *Handle,
324 ASL_FILE_STATUS *Status)
325{
326 UINT8 Byte;
327
328
320 while (fread (&Byte, 1, 1, Handle))
329 while (fread (&Byte, 1, 1, Handle) == 1)
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
330 {
331 Status->Offset++;
332
333 /* Comment ends at newline */
334
335 if (Byte == 0x0A)
336 {
337 Status->Line++;

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

372 ASL_FILE_STATUS Status;
373
374
375 Status.Line = 1;
376 Status.Offset = 0;
377
378 /* Read the entire file */
379
371 while (fread (&Byte, 1, 1, Handle))
380 while (fread (&Byte, 1, 1, Handle) == 1)
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 ---
381 {
382 /* Ignore comment fields (allow non-ascii within) */
383
384 if (OpeningComment)
385 {
386 /* Check for second comment open delimiter */
387
388 if (Byte == '*')

--- 527 unchanged lines hidden ---