mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.0.0506: can't build with ANSI C
Problem: Can't build with ANSI C. Solution: Move declarations to start of block.
This commit is contained in:
@@ -3250,6 +3250,9 @@ find_command(exarg_T *eap, int *full UNUSED)
|
|||||||
|
|
||||||
if (ASCII_ISLOWER(eap->cmd[0]))
|
if (ASCII_ISLOWER(eap->cmd[0]))
|
||||||
{
|
{
|
||||||
|
int c1 = eap->cmd[0];
|
||||||
|
int c2 = eap->cmd[1];
|
||||||
|
|
||||||
if (command_count != (int)CMD_SIZE)
|
if (command_count != (int)CMD_SIZE)
|
||||||
{
|
{
|
||||||
iemsg((char_u *)_("E943: Command table needs to be updated, run 'make cmdidxs'"));
|
iemsg((char_u *)_("E943: Command table needs to be updated, run 'make cmdidxs'"));
|
||||||
@@ -3258,8 +3261,6 @@ find_command(exarg_T *eap, int *full UNUSED)
|
|||||||
|
|
||||||
/* Use a precomputed index for fast look-up in cmdnames[]
|
/* Use a precomputed index for fast look-up in cmdnames[]
|
||||||
* taking into account the first 2 letters of eap->cmd. */
|
* taking into account the first 2 letters of eap->cmd. */
|
||||||
int c1 = eap->cmd[0];
|
|
||||||
int c2 = eap->cmd[1];
|
|
||||||
eap->cmdidx = cmdidxs1[CharOrdLow(c1)];
|
eap->cmdidx = cmdidxs1[CharOrdLow(c1)];
|
||||||
if (ASCII_ISLOWER(c2))
|
if (ASCII_ISLOWER(c2))
|
||||||
eap->cmdidx += cmdidxs2[CharOrdLow(c1)][CharOrdLow(c2)];
|
eap->cmdidx += cmdidxs2[CharOrdLow(c1)][CharOrdLow(c2)];
|
||||||
|
@@ -764,6 +764,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
506,
|
||||||
/**/
|
/**/
|
||||||
505,
|
505,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user