kernel/acpica/compiler/cvparser.c
/*******************************************************************************
 *
 * FUNCTION:    CvCaptureComments
 *
 * PARAMETERS:  ParserState         - A parser state object
 *
 * RETURN:      None
 *
 * DESCRIPTION: Wrapper function for CvCaptureCommentsOnly
 *              This is referred as ASL_CV_CAPTURE_COMMENTS.
 *
 ******************************************************************************/
CvCaptureComments
PARAMETERS:  ParserState         - A parser state object

None

Wrapper function for CvCaptureCommentsOnly
This is referred as ASL_CV_CAPTURE_COMMENTS.
CvCaptureComments PARAMETERS : ParserState - A parser state object None Wrapper function for CvCaptureCommentsOnly This is referred as ASL_CV_CAPTURE_COMMENTS .
void
CvCaptureComments (
    ACPI_WALK_STATE         *WalkState)
{
    UINT8                   *Aml;
    UINT16                  Opcode;
    const ACPI_OPCODE_INFO  *OpInfo;
    if (!Gbl_CaptureComments)
    {
        return;
    }
    Aml = WalkState->ParserState.Aml;
    Opcode = (UINT16) ACPI_GET8 (Aml);
    OpInfo = AcpiPsGetOpcodeInfo (Opcode);
    if (!(OpInfo->Flags & AML_DEFER) ||
        ((OpInfo->Flags & AML_DEFER) &&
        (WalkState->PassNumber != ACPI_IMODE_LOAD_PASS1)))
    {
        CvCaptureCommentsOnly (&WalkState->ParserState);
        WalkState->Aml = WalkState->ParserState.Aml;
    }
}
void CvCaptureComments ( ACPI_WALK_STATE * WalkState ) { UINT8 * Aml ; UINT16 Opcode ; const ACPI_OPCODE_INFO * OpInfo ; if ( ! Gbl_CaptureComments ) { return ; } Aml = WalkState -> ParserState . Aml ; Opcode = ( UINT16 ) ACPI_GET8 ( Aml ) ; OpInfo = AcpiPsGetOpcodeInfo ( Opcode ) ; if ( ! ( OpInfo -> Flags & AML_DEFER ) || ( ( OpInfo -> Flags & AML_DEFER ) && ( WalkState -> PassNumber != ACPI_IMODE_LOAD_PASS1 ) ) ) { CvCaptureCommentsOnly ( & WalkState -> ParserState ) ; WalkState -> Aml = WalkState -> ParserState . Aml ; } }
FUNCTION:    CvCaptureComments
 PARAMETERS:  ParserState         - A parser state object
FUNCTION : CvCaptureComments PARAMETERS : ParserState - A parser state object
/*
     * Before parsing, check to see that comments that come directly
     * after deferred opcodes aren't being processed.
     */