4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Using negative value for device number might not work.
12 Solution: Use a separate flag for whether ffv_dev was set.
16 *** ../vim-7.2.177/src/misc2.c 2009-04-29 11:00:09.000000000 +0200
17 --- src/misc2.c 2009-05-16 21:05:10.000000000 +0200
23 ! if (i >= KEY_NAMES_TABLE_LEN)
25 return key_names_table[i].name;
31 ! if (i >= (int)KEY_NAMES_TABLE_LEN)
33 return key_names_table[i].name;
40 ! int ffv_dev; /* device number (-1 if not set) */
41 ino_t ffv_ino; /* inode number */
43 /* The memory for this struct is allocated according to the length of
48 ! int ffv_dev_valid; /* ffv_dev and ffv_ino were set */
49 ! dev_t ffv_dev; /* device number */
50 ino_t ffv_ino; /* inode number */
52 /* The memory for this struct is allocated according to the length of
55 * This function silently ignores a few errors, vim_findfile() will have
56 * limited functionality then.
60 vim_findfile_init(path, filename, stopdirs, level, free_visited, find_what,
61 search_ctx_arg, tagfile, rel_fname)
69 * This function silently ignores a few errors, vim_findfile() will have
70 * limited functionality then.
73 vim_findfile_init(path, filename, stopdirs, level, free_visited, find_what,
74 search_ctx_arg, tagfile, rel_fname)
77 ! char_u *stopdirs UNUSED;
87 ! ? (vp->ffv_dev == st.st_dev
88 ! && vp->ffv_ino == st.st_ino)
91 fnamecmp(vp->ffv_fname, ff_expand_buffer) == 0
97 ! !url ? (vp->ffv_dev_valid && vp->ffv_dev == st.st_dev
98 ! && vp->ffv_ino == st.st_ino)
101 fnamecmp(vp->ffv_fname, ff_expand_buffer) == 0
108 vp->ffv_ino = st.st_ino;
109 vp->ffv_dev = st.st_dev;
110 vp->ffv_fname[0] = NUL;
117 STRCPY(vp->ffv_fname, ff_expand_buffer);
123 + vp->ffv_dev_valid = TRUE;
124 vp->ffv_ino = st.st_ino;
125 vp->ffv_dev = st.st_dev;
126 vp->ffv_fname[0] = NUL;
130 ! vp->ffv_dev_valid = FALSE;
132 STRCPY(vp->ffv_fname, ff_expand_buffer);
134 *** ../vim-7.2.177/src/version.c 2009-05-16 17:29:37.000000000 +0200
135 --- src/version.c 2009-05-16 21:00:15.000000000 +0200
139 { /* Add new patch number below this line */
145 FATAL ERROR! SYSTEM HALTED! - Press any key to continue doing nothing.
147 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
148 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
149 \\\ download, build and distribute -- http://www.A-A-P.org ///
150 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///