mirror of
https://github.com/acpica/acpica/
synced 2025-01-13 12:59:18 +03:00
Fix to allow conversion to Linux style code
date 2005.06.21.23.09.00; author rmoore1; state Exp;
This commit is contained in:
parent
ba0d5de53b
commit
a8fcb565d9
@ -2,7 +2,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: acpisrc.h - Include file for AcpiSrc utility
|
||||
* $Revision: 1.35 $
|
||||
* $Revision: 1.36 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -183,6 +183,9 @@ char * strlwr(char* str);
|
||||
#define FLG_NO_FILE_OUTPUT 0x00000002
|
||||
#define FLG_LOWERCASE_DIRNAMES 0x00000004
|
||||
|
||||
#define AS_START_IGNORE "/*!"
|
||||
#define AS_STOP_IGNORE "!*/"
|
||||
|
||||
|
||||
/* Globals */
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: ascase - Source conversion - lower/upper case utilities
|
||||
* $Revision: 1.7 $
|
||||
* $Revision: 1.10 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
*
|
||||
* 1. Copyright Notice
|
||||
*
|
||||
* Some or all of this work - Copyright (c) 1999 - 2003, Intel Corp.
|
||||
* Some or all of this work - Copyright (c) 1999 - 2005, Intel Corp.
|
||||
* All rights reserved.
|
||||
*
|
||||
* 2. License
|
||||
@ -159,14 +159,14 @@ AsLowerCaseString (
|
||||
* Check for translation escape string -- means to ignore
|
||||
* blocks of code while replacing
|
||||
*/
|
||||
SubString2 = strstr (SubBuffer, "/*!");
|
||||
SubString2 = strstr (SubBuffer, AS_START_IGNORE);
|
||||
|
||||
if ((SubString2) &&
|
||||
(SubString2 < SubString1))
|
||||
{
|
||||
/* Find end of the escape block starting at "Substring2" */
|
||||
|
||||
SubString2 = strstr (SubString2, "!*/");
|
||||
SubString2 = strstr (SubString2, AS_STOP_IGNORE);
|
||||
if (!SubString2)
|
||||
{
|
||||
/* Didn't find terminator */
|
||||
|
@ -2,7 +2,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: asconvrt - Source conversion code
|
||||
* $Revision: 1.52 $
|
||||
* $Revision: 1.54 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -490,14 +490,14 @@ AsReplaceString (
|
||||
* blocks of code while replacing
|
||||
*/
|
||||
|
||||
SubString2 = strstr (SubBuffer, "/*!");
|
||||
SubString2 = strstr (SubBuffer, AS_START_IGNORE);
|
||||
|
||||
if ((SubString2) &&
|
||||
(SubString2 < SubString1))
|
||||
{
|
||||
/* Find end of the escape block starting at "Substring2" */
|
||||
|
||||
SubString2 = strstr (SubString2, "!*/");
|
||||
SubString2 = strstr (SubString2, AS_STOP_IGNORE);
|
||||
if (!SubString2)
|
||||
{
|
||||
/* Didn't find terminator */
|
||||
@ -1436,4 +1436,3 @@ Exit:
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: asremove - Source conversion - removal functions
|
||||
* $Revision: 1.5 $
|
||||
* $Revision: 1.8 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
*
|
||||
* 1. Copyright Notice
|
||||
*
|
||||
* Some or all of this work - Copyright (c) 1999 - 2003, Intel Corp.
|
||||
* Some or all of this work - Copyright (c) 1999 - 2005, Intel Corp.
|
||||
* All rights reserved.
|
||||
*
|
||||
* 2. License
|
||||
@ -239,12 +239,12 @@ AsRemoveConditionalCompile (
|
||||
* Check for translation escape string -- means to ignore
|
||||
* blocks of code while replacing
|
||||
*/
|
||||
Comment = strstr (SubString, "/*!");
|
||||
Comment = strstr (SubString, AS_START_IGNORE);
|
||||
|
||||
if ((Comment) &&
|
||||
(Comment < SubBuffer))
|
||||
{
|
||||
SubString = strstr (Comment, "!*/");
|
||||
SubString = strstr (Comment, AS_STOP_IGNORE);
|
||||
if (!SubString)
|
||||
{
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user