mirror of
https://github.com/acpica/acpica/
synced 2025-01-16 06:19:19 +03:00
Overhaul of the NATIVE* types. renamed to ACPI_NATIVE*, eliminated
use of MAX32 and MIN32 types date 2002.12.16.23.55.00; author rmoore1; state Exp;
This commit is contained in:
parent
842ac3391f
commit
af52a0b727
@ -1,7 +1,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: cmclib - Local implementation of C library functions
|
||||
* $Revision: 1.48 $
|
||||
* $Revision: 1.50 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -146,7 +146,7 @@
|
||||
|
||||
ACPI_SIZE
|
||||
AcpiUtStrlen (
|
||||
const NATIVE_CHAR *String)
|
||||
const char *String)
|
||||
{
|
||||
UINT32 Length = 0;
|
||||
|
||||
@ -176,12 +176,12 @@ AcpiUtStrlen (
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
NATIVE_CHAR *
|
||||
char *
|
||||
AcpiUtStrcpy (
|
||||
NATIVE_CHAR *DstString,
|
||||
const NATIVE_CHAR *SrcString)
|
||||
char *DstString,
|
||||
const char *SrcString)
|
||||
{
|
||||
NATIVE_CHAR *String = DstString;
|
||||
char *String = DstString;
|
||||
|
||||
|
||||
/* Move bytes brute force */
|
||||
@ -215,13 +215,13 @@ AcpiUtStrcpy (
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
NATIVE_CHAR *
|
||||
char *
|
||||
AcpiUtStrncpy (
|
||||
NATIVE_CHAR *DstString,
|
||||
const NATIVE_CHAR *SrcString,
|
||||
char *DstString,
|
||||
const char *SrcString,
|
||||
ACPI_SIZE Count)
|
||||
{
|
||||
NATIVE_CHAR *String = DstString;
|
||||
char *String = DstString;
|
||||
|
||||
|
||||
/* Copy the string */
|
||||
@ -259,8 +259,8 @@ AcpiUtStrncpy (
|
||||
|
||||
int
|
||||
AcpiUtStrcmp (
|
||||
const NATIVE_CHAR *String1,
|
||||
const NATIVE_CHAR *String2)
|
||||
const char *String1,
|
||||
const char *String2)
|
||||
{
|
||||
|
||||
|
||||
@ -292,8 +292,8 @@ AcpiUtStrcmp (
|
||||
|
||||
int
|
||||
AcpiUtStrncmp (
|
||||
const NATIVE_CHAR *String1,
|
||||
const NATIVE_CHAR *String2,
|
||||
const char *String1,
|
||||
const char *String2,
|
||||
ACPI_SIZE Count)
|
||||
{
|
||||
|
||||
@ -324,12 +324,12 @@ AcpiUtStrncmp (
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
NATIVE_CHAR *
|
||||
char *
|
||||
AcpiUtStrcat (
|
||||
NATIVE_CHAR *DstString,
|
||||
const NATIVE_CHAR *SrcString)
|
||||
char *DstString,
|
||||
const char *SrcString)
|
||||
{
|
||||
NATIVE_CHAR *String;
|
||||
char *String;
|
||||
|
||||
|
||||
/* Find end of the destination string */
|
||||
@ -361,13 +361,13 @@ AcpiUtStrcat (
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
NATIVE_CHAR *
|
||||
char *
|
||||
AcpiUtStrncat (
|
||||
NATIVE_CHAR *DstString,
|
||||
const NATIVE_CHAR *SrcString,
|
||||
char *DstString,
|
||||
const char *SrcString,
|
||||
ACPI_SIZE Count)
|
||||
{
|
||||
NATIVE_CHAR *String;
|
||||
char *String;
|
||||
|
||||
|
||||
if (Count)
|
||||
@ -414,8 +414,8 @@ AcpiUtMemcpy (
|
||||
const void *Src,
|
||||
ACPI_SIZE Count)
|
||||
{
|
||||
NATIVE_CHAR *New = (NATIVE_CHAR *) Dest;
|
||||
NATIVE_CHAR *Old = (NATIVE_CHAR *) Src;
|
||||
char *New = (char *) Dest;
|
||||
char *Old = (char *) Src;
|
||||
|
||||
|
||||
while (Count)
|
||||
@ -447,10 +447,10 @@ AcpiUtMemcpy (
|
||||
void *
|
||||
AcpiUtMemset (
|
||||
void *Dest,
|
||||
NATIVE_UINT Value,
|
||||
ACPI_NATIVE_UINT Value,
|
||||
ACPI_SIZE Count)
|
||||
{
|
||||
NATIVE_CHAR *New = (NATIVE_CHAR *) Dest;
|
||||
char *New = (char *) Dest;
|
||||
|
||||
|
||||
while (Count)
|
||||
@ -671,12 +671,12 @@ AcpiUtToLower (
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
NATIVE_CHAR *
|
||||
char *
|
||||
AcpiUtStrstr (
|
||||
NATIVE_CHAR *String1,
|
||||
NATIVE_CHAR *String2)
|
||||
char *String1,
|
||||
char *String2)
|
||||
{
|
||||
NATIVE_CHAR *String;
|
||||
char *String;
|
||||
|
||||
|
||||
if (AcpiUtStrlen (String2) > AcpiUtStrlen (String1))
|
||||
@ -717,14 +717,14 @@ AcpiUtStrstr (
|
||||
|
||||
UINT32
|
||||
AcpiUtStrtoul (
|
||||
const NATIVE_CHAR *String,
|
||||
NATIVE_CHAR **Terminator,
|
||||
const char *String,
|
||||
char **Terminator,
|
||||
UINT32 Base)
|
||||
{
|
||||
UINT32 converted = 0;
|
||||
UINT32 index;
|
||||
UINT32 sign;
|
||||
const NATIVE_CHAR *StringStart;
|
||||
const char *StringStart;
|
||||
UINT32 ReturnValue = 0;
|
||||
ACPI_STATUS Status = AE_OK;
|
||||
|
||||
@ -864,11 +864,11 @@ done:
|
||||
{
|
||||
if (converted == 0 && ReturnValue == 0 && String != NULL)
|
||||
{
|
||||
*Terminator = (NATIVE_CHAR *) StringStart;
|
||||
*Terminator = (char *) StringStart;
|
||||
}
|
||||
else
|
||||
{
|
||||
*Terminator = (NATIVE_CHAR *) String;
|
||||
*Terminator = (char *) String;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: utdebug - Debug print routines
|
||||
* $Revision: 1.105 $
|
||||
* $Revision: 1.107 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -387,7 +387,7 @@ void
|
||||
AcpiUtTraceStr (
|
||||
UINT32 LineNumber,
|
||||
ACPI_DEBUG_PRINT_INFO *DbgInfo,
|
||||
NATIVE_CHAR *String)
|
||||
char *String)
|
||||
{
|
||||
|
||||
AcpiGbl_NestingLevel++;
|
||||
@ -592,8 +592,8 @@ AcpiUtDumpBuffer (
|
||||
UINT32 Display,
|
||||
UINT32 ComponentId)
|
||||
{
|
||||
NATIVE_UINT i = 0;
|
||||
NATIVE_UINT j;
|
||||
ACPI_NATIVE_UINT i = 0;
|
||||
ACPI_NATIVE_UINT j;
|
||||
UINT32 Temp32;
|
||||
UINT8 BufChar;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user