Added "replace whole word" option to string replacement

date	2001.08.31.22.49.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 20:43:15 +00:00
parent ad32738fc2
commit 16342fa13c
2 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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);
}
}