comparison src/ex_cmdidxs.h @ 20528:489cb75c76b6 v8.2.0818

patch 8.2.0818: Vim9: using a discovery phase doesn't work well Commit: https://github.com/vim/vim/commit/822ba24743af9ee1b5e7f656a7a61a38f3638bca Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 24 23:00:18 2020 +0200 patch 8.2.0818: Vim9: using a discovery phase doesn't work well Problem: Vim9: using a discovery phase doesn't work well. Solution: Remove the discovery phase, instead compile a function only when it is used. Add :defcompile to compile def functions earlier.
author Bram Moolenaar <Bram@vim.org>
date Sun, 24 May 2020 23:15:04 +0200
parents 94eda51ba9ba
children a9fb7efa31d6
comparison
equal deleted inserted replaced
20527:37ac4c5b4d27 20528:489cb75c76b6
7 { 7 {
8 /* a */ 0, 8 /* a */ 0,
9 /* b */ 19, 9 /* b */ 19,
10 /* c */ 42, 10 /* c */ 42,
11 /* d */ 108, 11 /* d */ 108,
12 /* e */ 132, 12 /* e */ 133,
13 /* f */ 155, 13 /* f */ 156,
14 /* g */ 171, 14 /* g */ 172,
15 /* h */ 177, 15 /* h */ 178,
16 /* i */ 186, 16 /* i */ 187,
17 /* j */ 205, 17 /* j */ 206,
18 /* k */ 207, 18 /* k */ 208,
19 /* l */ 212, 19 /* l */ 213,
20 /* m */ 274, 20 /* m */ 275,
21 /* n */ 292, 21 /* n */ 293,
22 /* o */ 312, 22 /* o */ 313,
23 /* p */ 324, 23 /* p */ 325,
24 /* q */ 363, 24 /* q */ 364,
25 /* r */ 366, 25 /* r */ 367,
26 /* s */ 386, 26 /* s */ 387,
27 /* t */ 455, 27 /* t */ 456,
28 /* u */ 500, 28 /* u */ 501,
29 /* v */ 511, 29 /* v */ 512,
30 /* w */ 530, 30 /* w */ 531,
31 /* x */ 544, 31 /* x */ 545,
32 /* y */ 554, 32 /* y */ 555,
33 /* z */ 555 33 /* z */ 556
34 }; 34 };
35 35
36 /* 36 /*
37 * Table giving the index of the first command in cmdnames[] to lookup 37 * Table giving the index of the first command in cmdnames[] to lookup
38 * based on the first 2 letters of a command. 38 * based on the first 2 letters of a command.
42 static const unsigned char cmdidxs2[26][26] = 42 static const unsigned char cmdidxs2[26][26] =
43 { /* a b c d e f g h i j k l m n o p q r s t u v w x y z */ 43 { /* a b c d e f g h i j k l m n o p q r s t u v w x y z */
44 /* a */ { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 5, 6, 0, 0, 0, 7, 15, 0, 16, 0, 0, 0, 0, 0 }, 44 /* a */ { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 5, 6, 0, 0, 0, 7, 15, 0, 16, 0, 0, 0, 0, 0 },
45 /* b */ { 2, 0, 0, 4, 5, 7, 0, 0, 0, 0, 0, 8, 9, 10, 11, 12, 0, 13, 0, 0, 0, 0, 22, 0, 0, 0 }, 45 /* b */ { 2, 0, 0, 4, 5, 7, 0, 0, 0, 0, 0, 8, 9, 10, 11, 12, 0, 13, 0, 0, 0, 0, 22, 0, 0, 0 },
46 /* c */ { 3, 12, 16, 18, 20, 22, 25, 0, 0, 0, 0, 33, 37, 40, 46, 56, 58, 59, 60, 0, 62, 0, 65, 0, 0, 0 }, 46 /* c */ { 3, 12, 16, 18, 20, 22, 25, 0, 0, 0, 0, 33, 37, 40, 46, 56, 58, 59, 60, 0, 62, 0, 65, 0, 0, 0 },
47 /* d */ { 0, 0, 0, 0, 0, 0, 0, 0, 7, 17, 0, 18, 0, 0, 19, 0, 0, 21, 22, 0, 0, 0, 0, 0, 0, 0 }, 47 /* d */ { 0, 0, 0, 0, 0, 0, 0, 0, 8, 18, 0, 19, 0, 0, 20, 0, 0, 22, 23, 0, 0, 0, 0, 0, 0, 0 },
48 /* e */ { 1, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 7, 9, 10, 0, 0, 0, 0, 0, 0, 0, 17, 0, 18, 0, 0 }, 48 /* e */ { 1, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 7, 9, 10, 0, 0, 0, 0, 0, 0, 0, 17, 0, 18, 0, 0 },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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
69 /* z */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } 69 /* z */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
70 }; 70 };
71 71
72 static const int command_count = 568; 72 static const int command_count = 569;