kernel/acpica/compiler/cvcompiler.c
/*******************************************************************************
 *
 * FUNCTION:    CvPlaceComment
 *
 * PARAMETERS:  UINT8               - Type
 *              char *              - CommentString
 *
 * RETURN:      None
 *
 * DESCRIPTION: Given type and CommentString, this function places the
 *              CommentString in the approperiate global comment list or char*
 *
 ******************************************************************************/
CvPlaceComment
PARAMETERS:  UINT8               - Type
char *              - CommentString

None

Given type and CommentString, this function places the
CommentString in the approperiate global comment list or char
CvPlaceComment PARAMETERS : UINT8 - Type char * - CommentString None Given type and CommentString this function places the CommentString in the approperiate global comment list or char
void
CvPlaceComment(
    UINT8                   Type,
    char                    *CommentString)
{
    ACPI_PARSE_OBJECT       *LatestParseNode;
    ACPI_PARSE_OBJECT       *ParenBraceNode;
    LatestParseNode = Gbl_CommentState.LatestParseOp;
    ParenBraceNode  = Gbl_CommentState.ParsingParenBraceNode;
    CvDbgPrint ("Placing comment %s for type %d\n", CommentString, Type);
    switch (Type)
    {
    case ASL_COMMENT_STANDARD:
        CvAddToCommentList (CommentString);
        break;
    case ASLCOMMENT_INLINE:
        LatestParseNode->Asl.InlineComment =
            CvAppendInlineComment (LatestParseNode->Asl.InlineComment,
            CommentString);
        break;
    case ASL_COMMENT_OPEN_PAREN:
        Gbl_InlineCommentBuffer =
            CvAppendInlineComment(Gbl_InlineCommentBuffer,
            CommentString);
        break;
    case ASL_COMMENT_CLOSE_PAREN:
        if (ParenBraceNode)
        {
            ParenBraceNode->Asl.EndNodeComment =
                CvAppendInlineComment (ParenBraceNode->Asl.EndNodeComment,
                CommentString);
        }
        else
        {
            LatestParseNode->Asl.EndNodeComment =
                CvAppendInlineComment (LatestParseNode->Asl.EndNodeComment,
                CommentString);
        }
        break;
    case ASL_COMMENT_CLOSE_BRACE:
        LatestParseNode->Asl.CloseBraceComment = CommentString;
        break;
    default:
        break;
    }
}
void CvPlaceComment ( UINT8 Type , char * CommentString ) { ACPI_PARSE_OBJECT * LatestParseNode ; ACPI_PARSE_OBJECT * ParenBraceNode ; LatestParseNode = Gbl_CommentState . LatestParseOp ; ParenBraceNode = Gbl_CommentState . ParsingParenBraceNode ; CvDbgPrint ( " \n " , CommentString , Type ) ; switch ( Type ) { case ASL_COMMENT_STANDARD : CvAddToCommentList ( CommentString ) ; break ; case ASLCOMMENT_INLINE : LatestParseNode -> Asl . InlineComment = CvAppendInlineComment ( LatestParseNode -> Asl . InlineComment , CommentString ) ; break ; case ASL_COMMENT_OPEN_PAREN : Gbl_InlineCommentBuffer = CvAppendInlineComment ( Gbl_InlineCommentBuffer , CommentString ) ; break ; case ASL_COMMENT_CLOSE_PAREN : if ( ParenBraceNode ) { ParenBraceNode -> Asl . EndNodeComment = CvAppendInlineComment ( ParenBraceNode -> Asl . EndNodeComment , CommentString ) ; } else { LatestParseNode -> Asl . EndNodeComment = CvAppendInlineComment ( LatestParseNode -> Asl . EndNodeComment , CommentString ) ; } break ; case ASL_COMMENT_CLOSE_BRACE : LatestParseNode -> Asl . CloseBraceComment = CommentString ; break ; default : break ; } }
FUNCTION:    CvPlaceComment
 PARAMETERS:  UINT8               - Type
              char *              - CommentString
FUNCTION : CvPlaceComment PARAMETERS : UINT8 - Type char * - CommentString