FreeBSD/sys/contrib/dev/acpica/compiler/aslerror.c
/*******************************************************************************
 *
 * FUNCTION:    AeAddToErrorLog
 *
 * PARAMETERS:  Enode       - An error node to add to the log
 *
 * RETURN:      None
 *
 * DESCRIPTION: Add a new error node to the error log. The error log is
 *              ordered by the "logical" line number (cumulative line number
 *              including all include files.)
 *
 ******************************************************************************/
AeAddToErrorLog
PARAMETERS:  Enode       - An error node to add to the log

None

Add a new error node to the error log. The error log is
ordered by the "logical" line number (cumulative line number
including all include files.)
AeAddToErrorLog PARAMETERS : Enode - An error node to add to the log None Add a new error node to the error log . The error log is ordered by the " logical " line number ( cumulative line number including all include files . )
static void
AeAddToErrorLog (
    ASL_ERROR_MSG           *Enode)
{
    ASL_ERROR_MSG           *Next;
    ASL_ERROR_MSG           *Prev;
    if (!Gbl_ErrorLog)
    {
        Gbl_ErrorLog = Enode;
        return;
    }
    Prev = NULL;
    Next = Gbl_ErrorLog;
    while ((Next) &&
           (Next->LogicalLineNumber <= Enode->LogicalLineNumber))
    {
        Prev = Next;
        Next = Next->Next;
    }
    Enode->Next = Next;
    if (Prev)
    {
        Prev->Next = Enode;
    }
    else
    {
        Gbl_ErrorLog = Enode;
    }
}
static void AeAddToErrorLog ( ASL_ERROR_MSG * Enode ) { ASL_ERROR_MSG * Next ; ASL_ERROR_MSG * Prev ; if ( ! Gbl_ErrorLog ) { Gbl_ErrorLog = Enode ; return ; } Prev = NULL ; Next = Gbl_ErrorLog ; while ( ( Next ) && ( Next -> LogicalLineNumber <= Enode -> LogicalLineNumber ) ) { Prev = Next ; Next = Next -> Next ; } Enode -> Next = Next ; if ( Prev ) { Prev -> Next = Enode ; } else { Gbl_ErrorLog = Enode ; } }
FUNCTION:    AeAddToErrorLog
 PARAMETERS:  Enode       - An error node to add to the log
FUNCTION : AeAddToErrorLog PARAMETERS : Enode - An error node to add to the log
/* If Gbl_ErrorLog is null, this is the first error node */ /*
     * Walk error list until we find a line number greater than ours.
     * List is sorted according to line number.
     */ /* Found our place in the list */