comparison src/regexp_nfa.c @ 16162:cd5c83115ec6 v8.1.1086

patch 8.1.1086: too many curly braces commit https://github.com/vim/vim/commit/abab0b0fdd6535969447b03a4fffc1947918cf6c Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 30 18:47:01 2019 +0100 patch 8.1.1086: too many curly braces Problem: Too many curly braces. Solution: Remove curly braces where they are not needed. (Hirohito Higashi, closes #3982)
author Bram Moolenaar <Bram@vim.org>
date Sat, 30 Mar 2019 19:00:07 +0100
parents ff00d207cc5e
children 38a323a6fd18
comparison
equal deleted inserted replaced
16161:75fa84e2461b 16162:cd5c83115ec6
1788 MB_PTR_ADV(regparse); 1788 MB_PTR_ADV(regparse);
1789 1789
1790 if (*regparse == 'n') 1790 if (*regparse == 'n')
1791 startc = (reg_string || emit_range 1791 startc = (reg_string || emit_range
1792 || regparse[1] == '-') ? NL : NFA_NEWL; 1792 || regparse[1] == '-') ? NL : NFA_NEWL;
1793 else 1793 else if (*regparse == 'd'
1794 if (*regparse == 'd'
1795 || *regparse == 'o' 1794 || *regparse == 'o'
1796 || *regparse == 'x' 1795 || *regparse == 'x'
1797 || *regparse == 'u' 1796 || *regparse == 'u'
1798 || *regparse == 'U' 1797 || *regparse == 'U'
1799 ) 1798 )
2917 nfa_set_code(*p2); 2916 nfa_set_code(*p2);
2918 fprintf(df, "%s, ", code); 2917 fprintf(df, "%s, ", code);
2919 } 2918 }
2920 # else 2919 # else
2921 for (p2 = postfix; p2 < end; p2++) 2920 for (p2 = postfix; p2 < end; p2++)
2922 {
2923 fprintf(df, "%d, ", *p2); 2921 fprintf(df, "%d, ", *p2);
2924 }
2925 fprintf(df, "\nCurrent position is: "); 2922 fprintf(df, "\nCurrent position is: ");
2926 for (p2 = postfix; p2 <= p; p2 ++) 2923 for (p2 = postfix; p2 <= p; p2 ++)
2927 {
2928 fprintf(df, "%d, ", *p2); 2924 fprintf(df, "%d, ", *p2);
2929 }
2930 # endif 2925 # endif
2931 fprintf(df, "\n--------------------------\n"); 2926 fprintf(df, "\n--------------------------\n");
2932 fclose(df); 2927 fclose(df);
2933 } 2928 }
2934 #endif 2929 #endif