mirror of
https://github.com/vim/vim.git
synced 2025-10-02 05:04:20 -04:00
patch 9.0.1075: build fails if compiler doesn't allow declaration after case
Problem: build fails if the compiler doesn't allow for a declaration right after "case". Solution: Add a block.
This commit is contained in:
@@ -695,6 +695,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 */
|
||||||
|
/**/
|
||||||
|
1075,
|
||||||
/**/
|
/**/
|
||||||
1074,
|
1074,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -2188,6 +2188,7 @@ generate_store_var(
|
|||||||
case dest_vimvar:
|
case dest_vimvar:
|
||||||
return generate_STORE(cctx, ISN_STOREV, vimvaridx, NULL);
|
return generate_STORE(cctx, ISN_STOREV, vimvaridx, NULL);
|
||||||
case dest_script:
|
case dest_script:
|
||||||
|
{
|
||||||
int scriptvar_idx = lhs->lhs_scriptvar_idx;
|
int scriptvar_idx = lhs->lhs_scriptvar_idx;
|
||||||
int scriptvar_sid = lhs->lhs_scriptvar_sid;
|
int scriptvar_sid = lhs->lhs_scriptvar_sid;
|
||||||
if (scriptvar_idx < 0)
|
if (scriptvar_idx < 0)
|
||||||
@@ -2199,7 +2200,8 @@ generate_store_var(
|
|||||||
&& SCRIPT_ITEM(scriptvar_sid)->sn_autoload_prefix
|
&& SCRIPT_ITEM(scriptvar_sid)->sn_autoload_prefix
|
||||||
== NULL)
|
== NULL)
|
||||||
{
|
{
|
||||||
// "import autoload './dir/script.vim'" - load script first
|
// "import autoload './dir/script.vim'" - load script
|
||||||
|
// first
|
||||||
if (generate_SOURCE(cctx, scriptvar_sid) == FAIL)
|
if (generate_SOURCE(cctx, scriptvar_sid) == FAIL)
|
||||||
return FAIL;
|
return FAIL;
|
||||||
isn_type = ISN_STOREEXPORT;
|
isn_type = ISN_STOREEXPORT;
|
||||||
@@ -2211,6 +2213,7 @@ generate_store_var(
|
|||||||
}
|
}
|
||||||
return generate_VIM9SCRIPT(cctx, ISN_STORESCRIPT,
|
return generate_VIM9SCRIPT(cctx, ISN_STORESCRIPT,
|
||||||
scriptvar_sid, scriptvar_idx, type);
|
scriptvar_sid, scriptvar_idx, type);
|
||||||
|
}
|
||||||
case dest_class_member:
|
case dest_class_member:
|
||||||
return generate_CLASSMEMBER(cctx, FALSE,
|
return generate_CLASSMEMBER(cctx, FALSE,
|
||||||
lhs->lhs_class, lhs->lhs_classmember_idx);
|
lhs->lhs_class, lhs->lhs_classmember_idx);
|
||||||
|
Reference in New Issue
Block a user