FreeBSD/sys/contrib/dev/acpica/components/disassembler/dmcstyle.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiDmIsValidTarget
 *
 * PARAMETERS:  Target              - Target Op from the parse tree
 *
 * RETURN:      TRUE if the Target is real. FALSE if it is just a placeholder
 *              Op that was inserted by the parser.
 *
 * DESCRIPTION: Determine if a Target Op is a placeholder Op or a real Target.
 *              In other words, determine if the optional target is used or
 *              not. Note: If Target is NULL, something is seriously wrong,
 *              probably with the parse tree.
 *
 ******************************************************************************/
AcpiDmIsValidTarget
PARAMETERS:  Target              - Target Op from the parse tree

TRUE if the Target is real. FALSE if it is just a placeholder
Op that was inserted by the parser.

Determine if a Target Op is a placeholder Op or a real Target.
In other words, determine if the optional target is used or
not. Note: If Target is NULL, something is seriously wrong,
probably with the parse tree.
AcpiDmIsValidTarget PARAMETERS : Target - Target Op from the parse tree TRUE if the Target is real . FALSE if it is just a placeholder Op that was inserted by the parser . Determine if a Target Op is a placeholder Op or a real Target . In other words determine if the optional target is used or not . Note : If Target is NULL something is seriously wrong probably with the parse tree .
static BOOLEAN
AcpiDmIsValidTarget (
    ACPI_PARSE_OBJECT       *Target)
{
    if (!Target)
    {
        return (FALSE);
    }
    if ((Target->Common.AmlOpcode == AML_INT_NAMEPATH_OP) &&
        (Target->Common.Value.Arg == NULL))
    {
        return (FALSE);
    }
    return (TRUE);
}
static BOOLEAN AcpiDmIsValidTarget ( ACPI_PARSE_OBJECT * Target ) { if ( ! Target ) { return ( FALSE ) ; } if ( ( Target -> Common . AmlOpcode == AML_INT_NAMEPATH_OP ) && ( Target -> Common . Value . Arg == NULL ) ) { return ( FALSE ) ; } return ( TRUE ) ; }
FUNCTION:    AcpiDmIsValidTarget
 PARAMETERS:  Target              - Target Op from the parse tree
FUNCTION : AcpiDmIsValidTarget PARAMETERS : Target - Target Op from the parse tree