mirror of
https://github.com/acpica/acpica/
synced 2025-02-15 13:04:16 +03:00
AcpiXtract: Lowercase all output filenames.
Simplify filenames on systems that are case-sensitive.
This commit is contained in:
parent
8df82fc77f
commit
c7cd1fe110
@ -124,6 +124,10 @@
|
||||
|
||||
/* Local prototypes */
|
||||
|
||||
static void
|
||||
AxStrlwr (
|
||||
char *String);
|
||||
|
||||
static void
|
||||
AxCheckAscii (
|
||||
char *Name,
|
||||
@ -192,6 +196,31 @@ static char HeaderBuffer[AX_LINE_BUFFER_SIZE];
|
||||
static char InstanceBuffer[AX_LINE_BUFFER_SIZE];
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
*
|
||||
* FUNCTION: AxStrlwr
|
||||
*
|
||||
* PARAMETERS: String - Ascii string
|
||||
*
|
||||
* RETURN: None
|
||||
*
|
||||
* DESCRIPTION: String lowercase function.
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
static void
|
||||
AxStrlwr (
|
||||
char *String)
|
||||
{
|
||||
|
||||
while (*String)
|
||||
{
|
||||
*String = (char) tolower ((int) *String);
|
||||
String++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
*
|
||||
* FUNCTION: AxCheckAscii
|
||||
@ -599,6 +628,7 @@ AxExtractTables (
|
||||
sprintf (Filename, "%4.4s.dat", ThisSignature);
|
||||
}
|
||||
|
||||
AxStrlwr (Filename);
|
||||
OutputFile = fopen (Filename, "w+b");
|
||||
if (!OutputFile)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user