Mercurial > vim
comparison src/kword_test.c @ 18800:f41b55f9357c v8.1.2388
patch 8.1.2388: using old C style comments
Commit: https://github.com/vim/vim/commit/4ba37b5833de99db9e9afe8928b31c864182405c
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Dec 4 21:57:43 2019 +0100
patch 8.1.2388: using old C style comments
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 04 Dec 2019 22:00:04 +0100 |
parents | 536dd2bc5ac9 |
children | 847cc7932c42 |
comparison
equal
deleted
inserted
replaced
18799:d7d0942e231b | 18800:f41b55f9357c |
---|---|
12 */ | 12 */ |
13 | 13 |
14 #undef NDEBUG | 14 #undef NDEBUG |
15 #include <assert.h> | 15 #include <assert.h> |
16 | 16 |
17 /* Must include main.c because it contains much more than just main() */ | 17 // Must include main.c because it contains much more than just main() |
18 #define NO_VIM_MAIN | 18 #define NO_VIM_MAIN |
19 #include "main.c" | 19 #include "main.c" |
20 | 20 |
21 /* This file has to be included because the tested functions are static */ | 21 // This file has to be included because the tested functions are static |
22 #include "charset.c" | 22 #include "charset.c" |
23 | 23 |
24 /* | 24 /* |
25 * Test the results of vim_iswordc() and vim_iswordp() are matched. | 25 * Test the results of vim_iswordc() and vim_iswordp() are matched. |
26 */ | 26 */ |
36 p_isp = (char_u *)""; | 36 p_isp = (char_u *)""; |
37 p_isf = (char_u *)""; | 37 p_isf = (char_u *)""; |
38 buf.b_p_isk = (char_u *)"@,48-57,_,128-167,224-235"; | 38 buf.b_p_isk = (char_u *)"@,48-57,_,128-167,224-235"; |
39 | 39 |
40 curbuf = &buf; | 40 curbuf = &buf; |
41 mb_init(); /* calls init_chartab() */ | 41 mb_init(); // calls init_chartab() |
42 | 42 |
43 for (c = 0; c < 0x10000; ++c) | 43 for (c = 0; c < 0x10000; ++c) |
44 { | 44 { |
45 char_u p[4] = {0}; | 45 char_u p[4] = {0}; |
46 int c1; | 46 int c1; |