FreeBSD/sys/contrib/dev/acpica/compiler/dtexpress.c
/******************************************************************************
 *
 * FUNCTION:    DtResolveLabel
 *
 * PARAMETERS:  LabelString         - Contains the label
 *
 * RETURN:      Table offset associated with the label
 *
 * DESCRIPTION: Lookup a lable and return its value.
 *
 *****************************************************************************/
DtResolveLabel
PARAMETERS:  LabelString         - Contains the label

Table offset associated with the label

Lookup a lable and return its value.
DtResolveLabel PARAMETERS : LabelString - Contains the label Table offset associated with the label Lookup a lable and return its value .
UINT64
DtResolveLabel (
    char                    *LabelString)
{
    DT_FIELD                *LabelField;
    DbgPrint (ASL_DEBUG_OUTPUT, "Resolve Label: %s\n", LabelString);
    if (*LabelString != '$')
    {
        return (0);
    }
    LabelField = DtLookupLabel (LabelString);
    if (!LabelField)
    {
        DtError (ASL_ERROR, ASL_MSG_UNKNOWN_LABEL,
            Gbl_CurrentField, LabelString);
        return (0);
    }
    DbgPrint (ASL_DEBUG_OUTPUT, "Resolved Label: 0x%8.8X\n",
        LabelField->TableOffset);
    return (LabelField->TableOffset);
}
UINT64 DtResolveLabel ( char * LabelString ) { DT_FIELD * LabelField ; DbgPrint ( ASL_DEBUG_OUTPUT , " \n " , LabelString ) ; if ( * LabelString != ' ' ) { return ( 0 ) ; } LabelField = DtLookupLabel ( LabelString ) ; if ( ! LabelField ) { DtError ( ASL_ERROR , ASL_MSG_UNKNOWN_LABEL , Gbl_CurrentField , LabelString ) ; return ( 0 ) ; } DbgPrint ( ASL_DEBUG_OUTPUT , " \n " , LabelField -> TableOffset ) ; return ( LabelField -> TableOffset ) ; }
FUNCTION:    DtResolveLabel
 PARAMETERS:  LabelString         - Contains the label
FUNCTION : DtResolveLabel PARAMETERS : LabelString - Contains the label
/* Resolve a label reference to an integer (table offset) */ /* All we need from the label is the offset in the table */