1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: A couple more shadowed variables.
12 Solution: Rename the variables.
16 *** ../vim-7.3.400/src/netbeans.c 2012-01-10 22:26:12.000000000 +0100
17 --- src/netbeans.c 2012-01-10 22:30:17.000000000 +0100
37 /* Read the file. There should be one of each parameter */
38 while ((lp = (char_u *)fgets((char *)buf, BUFSIZ, fp)) != NULL)
40 ! if ((nl = vim_strchr(lp, '\n')) != NULL)
41 ! *nl = 0; /* strip off the trailing newline */
43 if (STRNCMP(lp, "host=", 5) == 0)
46 /* Read the file. There should be one of each parameter */
47 while ((lp = (char_u *)fgets((char *)buf, BUFSIZ, fp)) != NULL)
49 ! if ((nlp = vim_strchr(lp, '\n')) != NULL)
50 ! *nlp = 0; /* strip off the trailing newline */
52 if (STRNCMP(lp, "host=", 5) == 0)
57 int oldFire = netbeansFireChanges;
65 int oldFire = netbeansFireChanges;
76 ! nl = vim_strchr(args, '\n');
79 /* Incomplete line, probably truncated. Next "insert"
80 * command should append to this one. */
85 ! nlp = vim_strchr(args, '\n');
88 /* Incomplete line, probably truncated. Next "insert"
89 * command should append to this one. */
98 * We need to detect EOL style, because the commands
99 * use a character offset.
101 ! if (nl > args && nl[-1] == '\r')
103 ff_detected = EOL_DOS;
112 * We need to detect EOL style, because the commands
113 * use a character offset.
115 ! if (nlp > args && nlp[-1] == '\r')
117 ff_detected = EOL_DOS;
122 /* Insert halfway a line. For simplicity we assume we
123 * need to append to the line. */
124 ! newline = alloc_check((unsigned)(STRLEN(oldline) + len + 1));
127 STRCPY(newline, oldline);
130 /* Insert halfway a line. For simplicity we assume we
131 * need to append to the line. */
132 ! newline = alloc_check(
133 ! (unsigned)(STRLEN(oldline) + len + 1));
136 STRCPY(newline, oldline);
140 /* Append a new line. Not that we always do this,
141 * also when the text doesn't end in a "\n". */
142 ! ml_append((linenr_T)(lnum - 1), args, (colnr_T)(len + 1), FALSE);
152 /* Adjust the marks below the inserted lines. */
155 /* Append a new line. Not that we always do this,
156 * also when the text doesn't end in a "\n". */
157 ! ml_append((linenr_T)(lnum - 1), args,
158 ! (colnr_T)(len + 1), FALSE);
168 /* Adjust the marks below the inserted lines. */
169 *** ../vim-7.3.400/src/version.c 2012-01-10 22:26:12.000000000 +0100
170 --- src/version.c 2012-01-10 22:30:47.000000000 +0100
174 { /* Add new patch number below this line */
180 So when I saw the post to comp.editors, I rushed over to the FTP site to
181 grab it. So I yank apart the tarball, light x candles, where x= the
182 vim version multiplied by the md5sum of the source divided by the MAC of
183 my NIC (8A3FA78155A8A1D346C3C4A), put on black robes, dim the lights,
184 wave a dead chicken over the hard drive, and summon the power of GNU GCC
185 with the magic words "make config ; make!".
186 [Jason Spence, compiling Vim 5.0]
188 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
189 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
190 \\\ an exciting new programming language -- http://www.Zimbu.org ///
191 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///