FreeBSD/sys/contrib/dev/acpica/compiler/dtio.c
/******************************************************************************
 *
 * FUNCTION:    DtLinkField
 *
 * PARAMETERS:  Field               - New field object to link
 *
 * RETURN:      None
 *
 * DESCRIPTION: Link one field name and value to the list
 *
 *****************************************************************************/
DtLinkField
PARAMETERS:  Field               - New field object to link

None

Link one field name and value to the list
DtLinkField PARAMETERS : Field - New field object to link None Link one field name and value to the list
static void
DtLinkField (
    DT_FIELD                *Field)
{
    DT_FIELD                *Prev;
    DT_FIELD                *Next;
    Prev = Next = Gbl_FieldList;
    while (Next)
    {
        Prev = Next;
        Next = Next->Next;
    }
    if (Prev)
    {
        Prev->Next = Field;
    }
    else
    {
        Gbl_FieldList = Field;
    }
}
static void DtLinkField ( DT_FIELD * Field ) { DT_FIELD * Prev ; DT_FIELD * Next ; Prev = Next = Gbl_FieldList ; while ( Next ) { Prev = Next ; Next = Next -> Next ; } if ( Prev ) { Prev -> Next = Field ; } else { Gbl_FieldList = Field ; } }
FUNCTION:    DtLinkField
 PARAMETERS:  Field               - New field object to link
FUNCTION : DtLinkField PARAMETERS : Field - New field object to link