mirror of
https://github.com/acpica/acpica/
synced 2025-01-16 06:19:19 +03:00
Renamed Clib functions to uppercase macros
date 99.10.12.20.28.00; author rmoore1; state Exp;
This commit is contained in:
parent
bc4351ed94
commit
c57f8fa38a
@ -250,7 +250,7 @@ CmAddElementToAllocList (
|
||||
Gbl_TailAllocPtr->AllocType = AllocType;
|
||||
Gbl_TailAllocPtr->Component = Component;
|
||||
Gbl_TailAllocPtr->Line = Line;
|
||||
strcpy (Gbl_TailAllocPtr->Module, Module);
|
||||
STRCPY (Gbl_TailAllocPtr->Module, Module);
|
||||
|
||||
CmReleaseMutex (MTX_MEMORY);
|
||||
return_VOID;
|
||||
@ -418,7 +418,7 @@ CmDumpCurrentAllocations (
|
||||
for (i = 1; ; i++) /* Just a counter */
|
||||
{
|
||||
if ((Element->Component & Component) &&
|
||||
((Module == NULL) || (0 == strcmp (Module, Element->Module))))
|
||||
((Module == NULL) || (0 == STRCMP (Module, Element->Module))))
|
||||
{
|
||||
DEBUG_PRINT (TRACE_ALLOCATIONS | TRACE_TABLES,
|
||||
("%p: Length %04x %10.10s Line %d",
|
||||
@ -686,7 +686,7 @@ CmInitStaticObject (
|
||||
/*
|
||||
* Clear the entire descriptor
|
||||
*/
|
||||
memset ((void *) ObjDesc, 0, sizeof (ACPI_OBJECT_INTERNAL));
|
||||
MEMSET ((void *) ObjDesc, 0, sizeof (ACPI_OBJECT_INTERNAL));
|
||||
|
||||
|
||||
/*
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -176,7 +176,7 @@ CmBuildExternalSimpleObject (
|
||||
switch (ExternalObj->Type)
|
||||
{
|
||||
|
||||
case TYPE_String:
|
||||
case ACPI_TYPE_String:
|
||||
|
||||
Length = InternalObj->String.Length;
|
||||
ExternalObj->String.Length = InternalObj->String.Length;
|
||||
@ -185,7 +185,7 @@ CmBuildExternalSimpleObject (
|
||||
break;
|
||||
|
||||
|
||||
case TYPE_Buffer:
|
||||
case ACPI_TYPE_Buffer:
|
||||
|
||||
Length = InternalObj->Buffer.Length;
|
||||
ExternalObj->Buffer.Length = InternalObj->Buffer.Length;
|
||||
@ -194,7 +194,7 @@ CmBuildExternalSimpleObject (
|
||||
break;
|
||||
|
||||
|
||||
case TYPE_Number:
|
||||
case ACPI_TYPE_Number:
|
||||
|
||||
ExternalObj->Number.Value= InternalObj->Number.Value;
|
||||
break;
|
||||
@ -211,7 +211,7 @@ CmBuildExternalSimpleObject (
|
||||
/*
|
||||
* Copy the return data to the caller's buffer
|
||||
*/
|
||||
memcpy ((void *) DataSpace, (void *) SourcePtr, Length);
|
||||
MEMCPY ((void *) DataSpace, (void *) SourcePtr, Length);
|
||||
}
|
||||
|
||||
|
||||
@ -276,7 +276,7 @@ CmBuildExternalPackageObject (
|
||||
* Initialize the working variables
|
||||
*/
|
||||
|
||||
memset ((void *) Level, 0, sizeof (Level));
|
||||
MEMSET ((void *) Level, 0, sizeof (Level));
|
||||
|
||||
Level[0].InternalObj = InternalObj;
|
||||
Level[0].ExternalObj = ExternalObj;
|
||||
@ -303,7 +303,7 @@ CmBuildExternalPackageObject (
|
||||
ThisInternalObj = (ACPI_OBJECT_INTERNAL *) LevelPtr->InternalObj->Package.Elements[ThisIndex];
|
||||
ThisExternalObj = (ACPI_OBJECT *) &LevelPtr->ExternalObj->Package.Elements[ThisIndex];
|
||||
|
||||
if (ThisInternalObj->Common.Type == TYPE_Package)
|
||||
if (VALID_OBJECT_TYPE (ThisInternalObj, ACPI_TYPE_Package))
|
||||
{
|
||||
/*
|
||||
* If this object is a package then we go one deeper
|
||||
@ -321,7 +321,7 @@ CmBuildExternalPackageObject (
|
||||
/*
|
||||
* Build the package object
|
||||
*/
|
||||
ThisExternalObj->Type = TYPE_Package;
|
||||
ThisExternalObj->Type = ACPI_TYPE_Package;
|
||||
ThisExternalObj->Package.Count = ThisInternalObj->Package.Count;
|
||||
ThisExternalObj->Package.Elements = (ACPI_OBJECT *) FreeSpace;
|
||||
|
||||
@ -417,7 +417,7 @@ CmBuildExternalObject (
|
||||
FUNCTION_TRACE ("CmBuildExternalObject");
|
||||
|
||||
|
||||
if (InternalObj->Common.Type == TYPE_Package)
|
||||
if (VALID_OBJECT_TYPE (InternalObj, ACPI_TYPE_Package))
|
||||
{
|
||||
/*
|
||||
* Package objects contain other objects (which can be objects)
|
||||
@ -477,21 +477,21 @@ CmBuildInternalSimpleObject (
|
||||
switch (ExternalObj->Type)
|
||||
{
|
||||
|
||||
case TYPE_String:
|
||||
case ACPI_TYPE_String:
|
||||
|
||||
InternalObj->String.Length = ExternalObj->String.Length;
|
||||
InternalObj->String.Pointer = ExternalObj->String.Pointer;
|
||||
break;
|
||||
|
||||
|
||||
case TYPE_Buffer:
|
||||
case ACPI_TYPE_Buffer:
|
||||
|
||||
InternalObj->Buffer.Length = ExternalObj->Buffer.Length;
|
||||
InternalObj->Buffer.Pointer = ExternalObj->Buffer.Pointer;
|
||||
break;
|
||||
|
||||
|
||||
case TYPE_Number:
|
||||
case ACPI_TYPE_Number:
|
||||
/*
|
||||
* Number is included in the object itself
|
||||
*/
|
||||
@ -565,7 +565,7 @@ CmBuildInternalPackageObject (
|
||||
* Initialize the working variables
|
||||
*/
|
||||
|
||||
memset ((void *) Level, 0, sizeof(Level));
|
||||
MEMSET ((void *) Level, 0, sizeof(Level));
|
||||
|
||||
Level[0].InternalObj = InternalObj;
|
||||
Level[0].ExternalObj = ExternalObj;
|
||||
@ -591,7 +591,7 @@ CmBuildInternalPackageObject (
|
||||
ThisInternalObj = (ACPI_OBJECT_INTERNAL *) &LevelPtr->InternalObj->Package.Elements[ThisIndex];
|
||||
ThisExternalObj = (ACPI_OBJECT *) &LevelPtr->ExternalObj->Package.Elements[ThisIndex];
|
||||
|
||||
if (ThisInternalObj->Common.Type == TYPE_Package)
|
||||
if (VALID_OBJECT_TYPE (ThisInternalObj, ACPI_TYPE_Package))
|
||||
{
|
||||
/*
|
||||
* If this object is a package then we go one deeper
|
||||
@ -609,7 +609,7 @@ CmBuildInternalPackageObject (
|
||||
/*
|
||||
* Build the package object
|
||||
*/
|
||||
ThisExternalObj->Type = TYPE_Package;
|
||||
ThisExternalObj->Type = ACPI_TYPE_Package;
|
||||
ThisExternalObj->Package.Count = ThisInternalObj->Package.Count;
|
||||
ThisExternalObj->Package.Elements = (ACPI_OBJECT *) FreeSpace;
|
||||
|
||||
@ -617,7 +617,7 @@ CmBuildInternalPackageObject (
|
||||
* Save space for the array of objects (Package elements)
|
||||
* update the buffer length counter
|
||||
*/
|
||||
ObjectSpace = ThisExternalObj->Package.Count * sizeof(ACPI_OBJECT);
|
||||
ObjectSpace = ThisExternalObj->Package.Count * sizeof (ACPI_OBJECT);
|
||||
FreeSpace += ObjectSpace;
|
||||
Length += ObjectSpace;
|
||||
|
||||
@ -705,7 +705,7 @@ CmBuildInternalObject (
|
||||
FUNCTION_TRACE ("CmBuildInternalObject");
|
||||
|
||||
|
||||
if (ExternalObj->Type == TYPE_Package)
|
||||
if (ExternalObj->Type == ACPI_TYPE_Package)
|
||||
{
|
||||
/*
|
||||
* Package objects contain other objects (which can be objects)
|
||||
|
Loading…
Reference in New Issue
Block a user