FreeBSD/sys/contrib/dev/acpica/components/disassembler/dmcstyle.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiDmPromoteTarget
 *
 * PARAMETERS:  Op                  - Operator parse object
 *              Target              - Target associate with the Op
 *
 * RETURN:      None
 *
 * DESCRIPTION: Transform the parse tree by moving the target up to the first
 *              child of the Op.
 *
 ******************************************************************************/
AcpiDmPromoteTarget
PARAMETERS:  Op                  - Operator parse object
Target              - Target associate with the Op

None

Transform the parse tree by moving the target up to the first
child of the Op.
AcpiDmPromoteTarget PARAMETERS : Op - Operator parse object Target - Target associate with the Op None Transform the parse tree by moving the target up to the first child of the Op .
static void
AcpiDmPromoteTarget (
    ACPI_PARSE_OBJECT       *Op,
    ACPI_PARSE_OBJECT       *Target)
{
    ACPI_PARSE_OBJECT       *Child;
    Child = Op->Common.Value.Arg;
    Op->Common.Value.Arg = Target;
    Target->Common.Next = Child;
    while (Child->Common.Next != Target)
    {
        Child = Child->Common.Next;
    }
    Child->Common.Next = NULL;
}
static void AcpiDmPromoteTarget ( ACPI_PARSE_OBJECT * Op , ACPI_PARSE_OBJECT * Target ) { ACPI_PARSE_OBJECT * Child ; Child = Op -> Common . Value . Arg ; Op -> Common . Value . Arg = Target ; Target -> Common . Next = Child ; while ( Child -> Common . Next != Target ) { Child = Child -> Common . Next ; } Child -> Common . Next = NULL ; }
FUNCTION:    AcpiDmPromoteTarget
 PARAMETERS:  Op                  - Operator parse object
              Target              - Target associate with the Op
FUNCTION : AcpiDmPromoteTarget PARAMETERS : Op - Operator parse object Target - Target associate with the Op
/* Link target directly to the Op as first child */ /* Find the last peer, it is linked to the target. Unlink it. */