sys/contrib/dev/acpica/source/compiler/cvcompiler.c
/*******************************************************************************
 *
 * FUNCTION:    CgWriteOneAmlComment
 *
 * PARAMETERS:  Op              - Current parse op
 *              CommentToPrint  - Comment that's printed
 *              InputOption     - Denotes the comment option.
 *
 * RETURN:      None
 *
 * DESCRIPTION: write a single comment.
 *
 ******************************************************************************/
CgWriteOneAmlComment
PARAMETERS:  Op              - Current parse op
CommentToPrint  - Comment that's printed
InputOption     - Denotes the comment option.

None

write a single comment.
CgWriteOneAmlComment PARAMETERS : Op - Current parse op CommentToPrint - Comment that ' s printed InputOption - Denotes the comment option . None write a single comment .
void
CgWriteOneAmlComment(
    ACPI_PARSE_OBJECT       *Op,
    char*                   CommentToPrint,
    UINT8                   InputOption)
{
    UINT8                   CommentOption = InputOption;
    UINT8                   CommentOpcode = (UINT8) AML_COMMENT_OP;
    if (!CommentToPrint)
    {
        return;
    }
    CgLocalWriteAmlData (Op, &CommentOpcode, 1);
    CgLocalWriteAmlData (Op, &CommentOption, 1);
    CgLocalWriteAmlData (Op, CommentToPrint, strlen (CommentToPrint) + 1);
}
void CgWriteOneAmlComment ( ACPI_PARSE_OBJECT * Op , char * CommentToPrint , UINT8 InputOption ) { UINT8 CommentOption = InputOption ; UINT8 CommentOpcode = ( UINT8 ) AML_COMMENT_OP ; if ( ! CommentToPrint ) { return ; } CgLocalWriteAmlData ( Op , & CommentOpcode , 1 ) ; CgLocalWriteAmlData ( Op , & CommentOption , 1 ) ; CgLocalWriteAmlData ( Op , CommentToPrint , strlen ( CommentToPrint ) + 1 ) ; }
FUNCTION:    CgWriteOneAmlComment
 PARAMETERS:  Op              - Current parse op
              CommentToPrint  - Comment that's printed
              InputOption     - Denotes the comment option.
FUNCTION : CgWriteOneAmlComment PARAMETERS : Op - Current parse op CommentToPrint - Comment that ' s printed InputOption - Denotes the comment option .
/* The strlen (..) + 1 is to include the null terminator */