Waitrud Weber’s blog

things and reminders for memories

2021-07-06から1日間の記事一覧

C_Analyzer: We can have a lot of controls, skipping the under control as a canread.

We don't think, the below is too bad, we can control seperations as well as switch. main.cpp Tue Jul 06 14:32:29 2021 ... 370 : if ( canread == 1 && m_start_with ( (char*)p_dummy, "\r\n" ) == 1 && level == 1 ) { 371 : printf("we could find…

C_Analyzer : Skip the under stir in C.

Scheme in this program should be like the below. switch ( canread ) { case 1: if ( m_start_with ( (char*)p_dummy, "\r\n" ) == 1 ) { printf("we could find the end line.\r\n"); } else if ( m_start_with ( (char*)p_dummy, "#include" ) == 1 ) {…