Mercurial > vim
comparison src/findfile.c @ 18251:c8a53c0daeed v8.1.2120
patch 8.1.2120: some MB_ macros are more complicated than necessary
Commit: https://github.com/vim/vim/commit/1614a14901558ca091329315d14a7d5e1b53aa47
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Oct 6 22:00:13 2019 +0200
patch 8.1.2120: some MB_ macros are more complicated than necessary
Problem: Some MB_ macros are more complicated than necessary. (Dominique
Pelle)
Solution: Simplify the macros. Expand inline.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 06 Oct 2019 22:15:04 +0200 |
parents | 46f95606b9ec |
children | 8f05b3cf8557 |
comparison
equal
deleted
inserted
replaced
18250:f1d9d3f76c98 | 18251:c8a53c0daeed |
---|---|
1335 && (prev1 != '*' || prev2 != '*')) | 1335 && (prev1 != '*' || prev2 != '*')) |
1336 return FALSE; | 1336 return FALSE; |
1337 prev2 = prev1; | 1337 prev2 = prev1; |
1338 prev1 = c1; | 1338 prev1 = c1; |
1339 | 1339 |
1340 i += MB_PTR2LEN(s1 + i); | 1340 i += mb_ptr2len(s1 + i); |
1341 j += MB_PTR2LEN(s2 + j); | 1341 j += mb_ptr2len(s2 + j); |
1342 } | 1342 } |
1343 return s1[i] == s2[j]; | 1343 return s1[i] == s2[j]; |
1344 } | 1344 } |
1345 #endif | 1345 #endif |
1346 | 1346 |