FreeBSD/sys/contrib/dev/acpica/compiler/dtexpress.c
/******************************************************************************
 *
 * FUNCTION:    DtLookupLabel
 *
 * PARAMETERS:  Name                - Label to be resolved
 *
 * RETURN:      Field object associated with the label
 *
 * DESCRIPTION: Lookup a label in the global label list. Used during the
 *              resolution of integer expressions.
 *
 *****************************************************************************/
DtLookupLabel
PARAMETERS:  Name                - Label to be resolved

Field object associated with the label

Lookup a label in the global label list. Used during the
resolution of integer expressions.
DtLookupLabel PARAMETERS : Name - Label to be resolved Field object associated with the label Lookup a label in the global label list . Used during the resolution of integer expressions .
static DT_FIELD *
DtLookupLabel (
    char                    *Name)
{
    DT_FIELD                *LabelField;
    if (*Name == '$')
    {
        Name++;
    }
    LabelField = Gbl_LabelList;
    while (LabelField)
    {
        if (!strcmp (Name, LabelField->Value))
        {
            return (LabelField);
        }
        LabelField = LabelField->NextLabel;
    }
    return (NULL);
}
static DT_FIELD * DtLookupLabel ( char * Name ) { DT_FIELD * LabelField ; if ( * Name == ' ' ) { Name ++ ; } LabelField = Gbl_LabelList ; while ( LabelField ) { if ( ! strcmp ( Name , LabelField -> Value ) ) { return ( LabelField ) ; } LabelField = LabelField -> NextLabel ; } return ( NULL ) ; }
FUNCTION:    DtLookupLabel
 PARAMETERS:  Name                - Label to be resolved
FUNCTION : DtLookupLabel PARAMETERS : Name - Label to be resolved
/* Skip a leading $ */ /* Search global list */