|
15 | 15 | MSVC does not. This is how to solve the differing declaration |
16 | 16 | signature requirements. */ |
17 | 17 | #if defined(__GNUC__) || defined(__clang__) || defined(__INTEL_LLVM_COMPILER) |
18 | | -/* Clang and GCC support static array parameter declarations while |
19 | | - MSVC does not. This is how to solve the differing declaration |
20 | | - signature requirements. */ |
21 | | - |
22 | 18 | /* A static array parameter declaration helper. Function parameters |
23 | 19 | may specify an array of a type of at least SIZE elements large, |
24 | 20 | allowing compiler optimizations and safety errors. Specify |
@@ -854,7 +850,7 @@ sv_rmemcmp(void const *const vl, void const *const vr, size_t n) |
854 | 850 |
|
855 | 851 | /* strcspn is based on musl C-standard library implementation |
856 | 852 | http://git.musl-libc.org/cgit/musl/tree/src/string/strcspn.c |
857 | | - A custom implemenatation is necessary because C standard library impls |
| 853 | + A custom implementation is necessary because C standard library impls |
858 | 854 | have no concept of a string view and will continue searching beyond the |
859 | 855 | end of a view until null is found. This way, string searches are |
860 | 856 | efficient and only within the range specified. */ |
@@ -989,8 +985,6 @@ sv_rstrnstrn(ptrdiff_t const hay_sz, char const ARR_CONST_GEQ(hay, hay_sz), |
989 | 985 |
|
990 | 986 | /*============== Post-Precomputation Two-Way Search =================*/ |
991 | 987 |
|
992 | | -/* NOLINTBEGIN(*easily-swappable*) */ |
993 | | - |
994 | 988 | /* Definitions for Two-Way String-Matching taken from original authors: |
995 | 989 |
|
996 | 990 | CROCHEMORE M., PERRIN D., 1991, Two-way string-matching, |
@@ -1329,8 +1323,6 @@ sv_rpos_normal(ptrdiff_t const hay_sz, char const ARR_CONST_GEQ(hay, hay_sz), |
1329 | 1323 | return hay_sz; |
1330 | 1324 | } |
1331 | 1325 |
|
1332 | | -/* NOLINTEND(*easily-swappable*) */ |
1333 | | - |
1334 | 1326 | static inline struct sv_factorization |
1335 | 1327 | sv_rmaximal_suffix(ptrdiff_t const needle_sz, |
1336 | 1328 | char const ARR_CONST_GEQ(needle, needle_sz)) |
|
0 commit comments