mirror of
https://github.com/acpica/acpica/
synced 2025-01-18 15:39:18 +03:00
Automated code cleanup
date 2002.12.06.16.32.00; author rmoore1; state Exp;
This commit is contained in:
parent
984307dd4a
commit
f1421dd4d4
@ -1,7 +1,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: psparse - Parser top level AML parse routines
|
||||
* $Revision: 1.137 $
|
||||
* $Revision: 1.138 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -580,7 +580,7 @@ AcpiPsParseLoop (
|
||||
Status = AcpiPsNextParseState (WalkState, Op, Status);
|
||||
}
|
||||
|
||||
AcpiPsPopScope (ParserState, &Op,
|
||||
AcpiPsPopScope (ParserState, &Op,
|
||||
&WalkState->ArgTypes, &WalkState->ArgCount);
|
||||
ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "Popped scope, Op=%p\n", Op));
|
||||
}
|
||||
@ -604,7 +604,7 @@ AcpiPsParseLoop (
|
||||
{
|
||||
/* Get the next opcode from the AML stream */
|
||||
|
||||
WalkState->AmlOffset = ACPI_PTR_DIFF (ParserState->Aml,
|
||||
WalkState->AmlOffset = ACPI_PTR_DIFF (ParserState->Aml,
|
||||
ParserState->AmlStart);
|
||||
WalkState->Opcode = AcpiPsPeekOpcode (ParserState);
|
||||
|
||||
@ -835,7 +835,7 @@ AcpiPsParseLoop (
|
||||
|
||||
/* Op is not a constant or string, append each argument */
|
||||
|
||||
while (GET_CURRENT_ARG_TYPE (WalkState->ArgTypes) &&
|
||||
while (GET_CURRENT_ARG_TYPE (WalkState->ArgTypes) &&
|
||||
!WalkState->ArgCount)
|
||||
{
|
||||
WalkState->AmlOffset = ACPI_PTR_DIFF (ParserState->Aml,
|
||||
@ -922,7 +922,7 @@ AcpiPsParseLoop (
|
||||
{
|
||||
/* There are arguments (complex ones), push Op and prepare for argument */
|
||||
|
||||
Status = AcpiPsPushScope (ParserState, Op,
|
||||
Status = AcpiPsPushScope (ParserState, Op,
|
||||
WalkState->ArgTypes, WalkState->ArgCount);
|
||||
if (ACPI_FAILURE (Status))
|
||||
{
|
||||
@ -1013,7 +1013,7 @@ CloseThisOp:
|
||||
|
||||
case AE_CTRL_END:
|
||||
|
||||
AcpiPsPopScope (ParserState, &Op,
|
||||
AcpiPsPopScope (ParserState, &Op,
|
||||
&WalkState->ArgTypes, &WalkState->ArgCount);
|
||||
|
||||
if (Op)
|
||||
@ -1039,7 +1039,7 @@ CloseThisOp:
|
||||
|
||||
while (!Op || (Op->Common.AmlOpcode != AML_WHILE_OP))
|
||||
{
|
||||
AcpiPsPopScope (ParserState, &Op,
|
||||
AcpiPsPopScope (ParserState, &Op,
|
||||
&WalkState->ArgTypes, &WalkState->ArgCount);
|
||||
}
|
||||
|
||||
@ -1070,7 +1070,7 @@ CloseThisOp:
|
||||
{
|
||||
AcpiPsCompleteThisOp (WalkState, Op);
|
||||
}
|
||||
AcpiPsPopScope (ParserState, &Op,
|
||||
AcpiPsPopScope (ParserState, &Op,
|
||||
&WalkState->ArgTypes, &WalkState->ArgCount);
|
||||
|
||||
} while (Op);
|
||||
@ -1086,7 +1086,7 @@ CloseThisOp:
|
||||
{
|
||||
AcpiPsCompleteThisOp (WalkState, Op);
|
||||
}
|
||||
AcpiPsPopScope (ParserState, &Op,
|
||||
AcpiPsPopScope (ParserState, &Op,
|
||||
&WalkState->ArgTypes, &WalkState->ArgCount);
|
||||
|
||||
} while (Op);
|
||||
@ -1098,7 +1098,7 @@ CloseThisOp:
|
||||
#if 0
|
||||
if (Op == NULL)
|
||||
{
|
||||
AcpiPsPopScope (ParserState, &Op,
|
||||
AcpiPsPopScope (ParserState, &Op,
|
||||
&WalkState->ArgTypes, &WalkState->ArgCount);
|
||||
}
|
||||
#endif
|
||||
@ -1111,7 +1111,7 @@ CloseThisOp:
|
||||
|
||||
if (AcpiPsHasCompletedScope (ParserState))
|
||||
{
|
||||
AcpiPsPopScope (ParserState, &Op,
|
||||
AcpiPsPopScope (ParserState, &Op,
|
||||
&WalkState->ArgTypes, &WalkState->ArgCount);
|
||||
ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "Popped scope, Op=%p\n", Op));
|
||||
}
|
||||
@ -1160,7 +1160,7 @@ CloseThisOp:
|
||||
AcpiPsCompleteThisOp (WalkState, Op);
|
||||
}
|
||||
|
||||
AcpiPsPopScope (ParserState, &Op,
|
||||
AcpiPsPopScope (ParserState, &Op,
|
||||
&WalkState->ArgTypes, &WalkState->ArgCount);
|
||||
|
||||
} while (Op);
|
||||
@ -1178,7 +1178,7 @@ CloseThisOp:
|
||||
AcpiPsCompleteThisOp (WalkState, Op);
|
||||
}
|
||||
|
||||
AcpiPsPopScope (ParserState, &Op, &WalkState->ArgTypes,
|
||||
AcpiPsPopScope (ParserState, &Op, &WalkState->ArgTypes,
|
||||
&WalkState->ArgCount);
|
||||
|
||||
} while (Op);
|
||||
@ -1256,7 +1256,7 @@ AcpiPsParseAml (
|
||||
}
|
||||
|
||||
ACPI_DEBUG_PRINT ((ACPI_DB_PARSE,
|
||||
"Completed one call to walk loop, %s State=%p\n",
|
||||
"Completed one call to walk loop, %s State=%p\n",
|
||||
AcpiFormatException (Status), WalkState));
|
||||
|
||||
if (Status == AE_CTRL_TRANSFER)
|
||||
@ -1280,7 +1280,7 @@ AcpiPsParseAml (
|
||||
}
|
||||
else if (Status != AE_OK)
|
||||
{
|
||||
ACPI_REPORT_METHOD_ERROR ("Method execution failed",
|
||||
ACPI_REPORT_METHOD_ERROR ("Method execution failed",
|
||||
WalkState->MethodNode, NULL, Status);
|
||||
}
|
||||
|
||||
@ -1329,7 +1329,7 @@ AcpiPsParseAml (
|
||||
* If the method return value is not used by the parent,
|
||||
* The object is deleted
|
||||
*/
|
||||
Status = AcpiDsRestartControlMethod (WalkState,
|
||||
Status = AcpiDsRestartControlMethod (WalkState,
|
||||
PreviousWalkState->ReturnDesc);
|
||||
if (ACPI_SUCCESS (Status))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user