mirror of
https://github.com/acpica/acpica/
synced 2025-01-13 12:59:18 +03:00
Added "replace whole word" option to string replacement
date 2001.08.31.22.49.00; author rmoore1; state Exp;
This commit is contained in:
parent
ad32738fc2
commit
16342fa13c
@ -2,7 +2,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: acpisrc.h - Include file for AcpiSrc utility
|
||||
* $Revision: 1.11 $
|
||||
* $Revision: 1.12 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -187,12 +187,17 @@ extern char *optarg;
|
||||
#define VERBOSE_PRINT(a) if (Gbl_VerboseMode) printf PARAM_LIST(a)
|
||||
|
||||
|
||||
#define REPLACE_WHOLE_WORD 0
|
||||
#define REPLACE_SUBSTRINGS 1
|
||||
|
||||
|
||||
/* Conversion table structs */
|
||||
|
||||
typedef struct acpi_string_table
|
||||
{
|
||||
char *Target;
|
||||
char *Replacement;
|
||||
UINT8 Type;
|
||||
|
||||
} ACPI_STRING_TABLE;
|
||||
|
||||
@ -252,6 +257,7 @@ int
|
||||
AsReplaceString (
|
||||
char *Target,
|
||||
char *Replacement,
|
||||
UINT8 Type,
|
||||
char *Buffer);
|
||||
|
||||
void
|
||||
|
@ -2,7 +2,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: asfile - Main module for the acpi source processor utility
|
||||
* $Revision: 1.12 $
|
||||
* $Revision: 1.13 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -389,6 +389,7 @@ AsConvertFile (
|
||||
{
|
||||
AsReplaceString (StringTable[i].Target,
|
||||
StringTable[i].Replacement,
|
||||
StringTable[i].Type,
|
||||
FileBuffer);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user