mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 07:16:09 +00:00
vim-patch:8.1.1115: cannot build with older C compiler
Problem: Cannot build with older C compiler.
Solution: Move variable declaration to start of block.
8f4aeb5572
This commit is contained in:
@@ -5553,7 +5553,6 @@ static void au_del_cmd(AutoCmd *ac)
|
||||
static void au_cleanup(void)
|
||||
{
|
||||
AutoPat *ap, **prev_ap;
|
||||
AutoCmd *ac, **prev_ac;
|
||||
event_T event;
|
||||
|
||||
if (autocmd_busy || !au_need_clean) {
|
||||
@@ -5566,11 +5565,11 @@ static void au_cleanup(void)
|
||||
// Loop over all autocommand patterns.
|
||||
prev_ap = &(first_autopat[(int)event]);
|
||||
for (ap = *prev_ap; ap != NULL; ap = *prev_ap) {
|
||||
// Loop over all commands for this pattern.
|
||||
prev_ac = &(ap->cmds);
|
||||
bool has_cmd = false;
|
||||
|
||||
for (ac = *prev_ac; ac != NULL; ac = *prev_ac) {
|
||||
// Loop over all commands for this pattern.
|
||||
AutoCmd **prev_ac = &(ap->cmds);
|
||||
for (AutoCmd *ac = *prev_ac; ac != NULL; ac = *prev_ac) {
|
||||
// Remove the command if the pattern is to be deleted or when
|
||||
// the command has been marked for deletion.
|
||||
if (ap->pat == NULL || ac->cmd == NULL) {
|
||||
|
Reference in New Issue
Block a user