FreeBSD/sys/contrib/dev/acpica/compiler/asltree.c
/*******************************************************************************
 *
 * FUNCTION:    TrAllocateNode
 *
 * PARAMETERS:  ParseOpcode         - Opcode to be assigned to the node
 *
 * RETURN:      New parse node. Aborts on allocation failure
 *
 * DESCRIPTION: Allocate and initialize a new parse node for the parse tree
 *
 ******************************************************************************/
TrAllocateNode
PARAMETERS:  ParseOpcode         - Opcode to be assigned to the node

New parse node. Aborts on allocation failure

Allocate and initialize a new parse node for the parse tree
TrAllocateNode PARAMETERS : ParseOpcode - Opcode to be assigned to the node New parse node . Aborts on allocation failure Allocate and initialize a new parse node for the parse tree
ACPI_PARSE_OBJECT *
TrAllocateNode (
    UINT32                  ParseOpcode)
{
    ACPI_PARSE_OBJECT       *Op;
    Op = TrGetNextNode ();
    Op->Asl.ParseOpcode       = (UINT16) ParseOpcode;
    Op->Asl.Filename          = Gbl_Files[ASL_FILE_INPUT].Filename;
    Op->Asl.LineNumber        = Gbl_CurrentLineNumber;
    Op->Asl.LogicalLineNumber = Gbl_LogicalLineNumber;
    Op->Asl.LogicalByteOffset = Gbl_CurrentLineOffset;
    Op->Asl.Column            = Gbl_CurrentColumn;
    UtSetParseOpName (Op);
    return (Op);
}
ACPI_PARSE_OBJECT * TrAllocateNode ( UINT32 ParseOpcode ) { ACPI_PARSE_OBJECT * Op ; Op = TrGetNextNode ( ) ; Op -> Asl . ParseOpcode = ( UINT16 ) ParseOpcode ; Op -> Asl . Filename = Gbl_Files [ ASL_FILE_INPUT ] . Filename ; Op -> Asl . LineNumber = Gbl_CurrentLineNumber ; Op -> Asl . LogicalLineNumber = Gbl_LogicalLineNumber ; Op -> Asl . LogicalByteOffset = Gbl_CurrentLineOffset ; Op -> Asl . Column = Gbl_CurrentColumn ; UtSetParseOpName ( Op ) ; return ( Op ) ; }
FUNCTION:    TrAllocateNode
 PARAMETERS:  ParseOpcode         - Opcode to be assigned to the node
FUNCTION : TrAllocateNode PARAMETERS : ParseOpcode - Opcode to be assigned to the node