kernel/acpica/compiler/cvcompiler.c
/*******************************************************************************
 *
 * FUNCTION:    CvProcessCommentState
 *
 * PARAMETERS:  Input           - Input character
 *
 * RETURN:      None
 *
 * DESCRIPTION: Take the given input. If this character is
 *              defined as a comment table entry, then update the state
 *              accordingly.
 *
 ******************************************************************************/
CvProcessCommentState
PARAMETERS:  Input           - Input character

None

Take the given input. If this character is
defined as a comment table entry, then update the state
accordingly.
CvProcessCommentState PARAMETERS : Input - Input character None Take the given input . If this character is defined as a comment table entry then update the state accordingly .
void
CvProcessCommentState (
    char                    Input)
{
    if (Input != ' ')
    {
        Gbl_CommentState.SpacesBefore = 0;
    }
    switch (Input)
    {
    case '\n':
        Gbl_CommentState.CommentType = ASL_COMMENT_STANDARD;
        break;
    case ' ':
        Gbl_CommentState.SpacesBefore++;
        break;
    case '(':
        Gbl_CommentState.CommentType = ASL_COMMENT_OPEN_PAREN;
        break;
    case ')':
        Gbl_CommentState.CommentType = ASL_COMMENT_CLOSE_PAREN;
        break;
    case '{':
        Gbl_CommentState.CommentType = ASL_COMMENT_STANDARD;
        Gbl_CommentState.ParsingParenBraceNode = NULL;
        CvDbgPrint ("End Parsing paren/Brace node!\n");
        break;
    case '}':
        Gbl_CommentState.CommentType = ASL_COMMENT_CLOSE_BRACE;
        break;
    case ',':
        Gbl_CommentState.CommentType = ASLCOMMENT_INLINE;
        break;
    default:
        Gbl_CommentState.CommentType = ASLCOMMENT_INLINE;
        break;
    }
}
void CvProcessCommentState ( char Input ) { if ( Input != ' ' ) { Gbl_CommentState . SpacesBefore = 0 ; } switch ( Input ) { case ' \n ' : Gbl_CommentState . CommentType = ASL_COMMENT_STANDARD ; break ; case ' ' : Gbl_CommentState . SpacesBefore ++ ; break ; case ' ' : Gbl_CommentState . CommentType = ASL_COMMENT_OPEN_PAREN ; break ; case ' ' : Gbl_CommentState . CommentType = ASL_COMMENT_CLOSE_PAREN ; break ; case ' ' : Gbl_CommentState . CommentType = ASL_COMMENT_STANDARD ; Gbl_CommentState . ParsingParenBraceNode = NULL ; CvDbgPrint ( " \n " ) ; break ; case ' ' : Gbl_CommentState . CommentType = ASL_COMMENT_CLOSE_BRACE ; break ; case ' ' : Gbl_CommentState . CommentType = ASLCOMMENT_INLINE ; break ; default : Gbl_CommentState . CommentType = ASLCOMMENT_INLINE ; break ; } }
FUNCTION:    CvProcessCommentState
 PARAMETERS:  Input           - Input character
FUNCTION : CvProcessCommentState PARAMETERS : Input - Input character
/* Keep the CommentType the same */