blob: 1c881d06464119c8b046fb8cc16fdb288c1a9d09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
To: vim_dev@googlegroups.com
Subject: Patch 8.1.11
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------
Patch 8.1.1115
Problem: Cannot build with older C compiler.
Solution: Move variable declaration to start of block.
Files: src/autocmd.c
*** ../vim-8.1.1114/src/autocmd.c 2019-04-04 15:04:32.966792195 +0200
--- src/autocmd.c 2019-04-04 15:38:27.276170676 +0200
***************
*** 391,400 ****
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);
int has_cmd = FALSE;
for (ac = *prev_ac; ac != NULL; ac = *prev_ac)
{
// remove the command if the pattern is to be deleted or when
--- 391,400 ----
prev_ap = &(first_autopat[(int)event]);
for (ap = *prev_ap; ap != NULL; ap = *prev_ap)
{
int has_cmd = FALSE;
+ // loop over all commands for this pattern
+ prev_ac = &(ap->cmds);
for (ac = *prev_ac; ac != NULL; ac = *prev_ac)
{
// remove the command if the pattern is to be deleted or when
***************
*** 405,421 ****
vim_free(ac->cmd);
vim_free(ac);
}
! else {
has_cmd = TRUE;
prev_ac = &(ac->next);
}
}
! if (ap->pat != NULL && !has_cmd) {
// Pattern was not marked for deletion, but all of its
// commands were. So mark the pattern for deletion.
au_remove_pat(ap);
- }
// remove the pattern if it has been marked for deletion
if (ap->pat == NULL)
--- 405,421 ----
vim_free(ac->cmd);
vim_free(ac);
}
! else
! {
has_cmd = TRUE;
prev_ac = &(ac->next);
}
}
! if (ap->pat != NULL && !has_cmd)
// Pattern was not marked for deletion, but all of its
// commands were. So mark the pattern for deletion.
au_remove_pat(ap);
// remove the pattern if it has been marked for deletion
if (ap->pat == NULL)
*** ../vim-8.1.1114/src/version.c 2019-04-04 15:35:42.833132544 +0200
--- src/version.c 2019-04-04 15:39:05.447951004 +0200
***************
*** 773,774 ****
--- 773,776 ----
{ /* Add new patch number below this line */
+ /**/
+ 1115,
/**/
--
% cat /usr/include/sys/errno.h
#define EPERM 1 /* Operation not permitted */
#define ENOENT 2 /* No such file or directory */
#define ESRCH 3 /* No such process */
[...]
#define EMACS 666 /* Too many macros */
%
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|