4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Exceptions for splint are not useful.
12 Solution: Remove the S_SPLINT_S ifdefs.
13 Files: src/edit.c, src/ex_cmds.c, src/ex_docmd.c, src/os_unix.c,
14 src/os_unix.h, src/os_unixx.h, src/structs.h, src/term.h
17 *** ../vim-7.2.175/src/edit.c 2009-05-15 21:31:11.000000000 +0200
18 --- src/edit.c 2009-05-16 16:18:35.000000000 +0200
22 char_u *cp_str; /* matched text */
23 char cp_icase; /* TRUE or FALSE: ignore case */
24 - #ifdef S_SPLINT_S /* splint can't handle array of pointers */
25 - char_u **cp_text; /* text for the menu */
27 char_u *(cp_text[CPT_COUNT]); /* text for the menu */
29 char_u *cp_fname; /* file containing the match, allocated when
30 * cp_flags has FREE_FNAME */
31 int cp_flags; /* ORIGINAL_TEXT, CONT_S_IPOS or FREE_FNAME */
38 - #ifdef S_SPLINT_S /* splint doesn't parse array of pointers correctly */
41 char_u *(cptext[CPT_COUNT]);
44 if (tv->v_type == VAR_DICT && tv->vval.v_dict != NULL)
47 *** ../vim-7.2.175/src/ex_cmds.c 2009-05-15 21:31:11.000000000 +0200
48 --- src/ex_cmds.c 2009-05-16 16:18:56.000000000 +0200
54 - #ifdef S_SPLINT_S /* splint doesn't understand array of pointers */
55 - static char **mtable;
56 - static char **rtable;
58 static char *(mtable[]) = {"*", "g*", "[*", "]*", ":*",
59 "/*", "/\\*", "\"*", "**",
64 "/\\\\?", "/\\\\z(\\\\)", "\\\\=", ":s\\\\=",
65 "\\[count]", "\\[quotex]", "\\[range]",
66 "\\[pattern]", "\\\\bar", "/\\\\%\\$"};
70 d = IObuff; /* assume IObuff is long enough! */
72 *** ../vim-7.2.175/src/ex_docmd.c 2009-05-15 21:31:11.000000000 +0200
73 --- src/ex_docmd.c 2009-05-16 16:19:26.000000000 +0200
79 ! #ifdef S_SPLINT_S /* splint can't handle array of pointers */
80 ! static char **spec_str;
81 ! static char *(nospec_str[])
83 ! static char *(spec_str[])
93 ! static char *(spec_str[]) = {
97 *** ../vim-7.2.175/src/os_unix.c 2009-05-15 21:31:11.000000000 +0200
98 --- src/os_unix.c 2009-05-16 16:20:00.000000000 +0200
104 ! # ifndef S_SPLINT_S
105 ! # define SIG_ERR ((RETSIGTYPE (*)())-1)
109 /* volatile because it is used in signal handler sig_winch(). */
114 ! # define SIG_ERR ((RETSIGTYPE (*)())-1)
117 /* volatile because it is used in signal handler sig_winch(). */
121 #if defined(HAVE_TOTAL_MEM) || defined(PROTO)
122 # ifdef HAVE_SYS_RESOURCE_H
123 ! # ifndef S_SPLINT_S /* splint crashes on bits/resource.h */
124 ! # include <sys/resource.h>
127 # if defined(HAVE_SYS_SYSCTL_H) && defined(HAVE_SYSCTL)
128 # include <sys/sysctl.h>
131 #if defined(HAVE_TOTAL_MEM) || defined(PROTO)
132 # ifdef HAVE_SYS_RESOURCE_H
133 ! # include <sys/resource.h>
135 # if defined(HAVE_SYS_SYSCTL_H) && defined(HAVE_SYSCTL)
136 # include <sys/sysctl.h>
137 *** ../vim-7.2.175/src/os_unix.h 2009-05-15 21:31:11.000000000 +0200
138 --- src/os_unix.h 2009-05-16 16:17:22.000000000 +0200
144 ! # ifndef S_SPLINT_S /* splint crashes on bits/confname.h */
145 ! # include <unistd.h>
154 ! # include <unistd.h>
158 *** ../vim-7.2.175/src/structs.h 2009-05-13 20:47:07.000000000 +0200
159 --- src/structs.h 2009-05-16 16:17:51.000000000 +0200
164 diff_T *tp_first_diff;
165 - # ifdef S_SPLINT_S /* splint doesn't understand the array of pointers */
166 - buf_T **tp_diffbuf;
168 buf_T *(tp_diffbuf[DB_COUNT]);
170 int tp_diff_invalid; /* list of diffs is outdated */
172 frame_T *tp_snapshot; /* window layout snapshot */
174 *** ../vim-7.2.175/src/term.h 2009-05-13 18:54:14.000000000 +0200
175 --- src/term.h 2009-05-16 16:20:06.000000000 +0200
178 * - there should be code in term.c to obtain the value from the termcap
181 - #ifdef S_SPLINT_S /* splint doesn't understand array of pointers */
182 - extern char_u **term_strings; /* current terminal strings */
184 extern char_u *(term_strings[]); /* current terminal strings */
188 * strings used for terminal
190 *** ../vim-7.2.175/src/version.c 2009-05-16 16:15:39.000000000 +0200
191 --- src/version.c 2009-05-16 16:34:10.000000000 +0200
195 { /* Add new patch number below this line */
201 Corn oil comes from corn and olive oil comes from olives, so where
202 does baby oil come from?
204 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
205 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
206 \\\ download, build and distribute -- http://www.A-A-P.org ///
207 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///