|
Karsten Hopp |
81c285 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
81c285 |
Subject: Patch 7.2.176
|
|
Karsten Hopp |
81c285 |
Fcc: outbox
|
|
Karsten Hopp |
81c285 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
81c285 |
Mime-Version: 1.0
|
|
Karsten Hopp |
81c285 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
81c285 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
81c285 |
------------
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
Patch 7.2.176
|
|
Karsten Hopp |
81c285 |
Problem: Exceptions for splint are not useful.
|
|
Karsten Hopp |
81c285 |
Solution: Remove the S_SPLINT_S ifdefs.
|
|
Karsten Hopp |
81c285 |
Files: src/edit.c, src/ex_cmds.c, src/ex_docmd.c, src/os_unix.c,
|
|
Karsten Hopp |
81c285 |
src/os_unix.h, src/os_unixx.h, src/structs.h, src/term.h
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.175/src/edit.c 2009-05-15 21:31:11.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/edit.c 2009-05-16 16:18:35.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 69,79 ****
|
|
Karsten Hopp |
81c285 |
compl_T *cp_prev;
|
|
Karsten Hopp |
81c285 |
char_u *cp_str; /* matched text */
|
|
Karsten Hopp |
81c285 |
char cp_icase; /* TRUE or FALSE: ignore case */
|
|
Karsten Hopp |
81c285 |
- #ifdef S_SPLINT_S /* splint can't handle array of pointers */
|
|
Karsten Hopp |
81c285 |
- char_u **cp_text; /* text for the menu */
|
|
Karsten Hopp |
81c285 |
- #else
|
|
Karsten Hopp |
81c285 |
char_u *(cp_text[CPT_COUNT]); /* text for the menu */
|
|
Karsten Hopp |
81c285 |
- #endif
|
|
Karsten Hopp |
81c285 |
char_u *cp_fname; /* file containing the match, allocated when
|
|
Karsten Hopp |
81c285 |
* cp_flags has FREE_FNAME */
|
|
Karsten Hopp |
81c285 |
int cp_flags; /* ORIGINAL_TEXT, CONT_S_IPOS or FREE_FNAME */
|
|
Karsten Hopp |
81c285 |
--- 69,75 ----
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 3835,3845 ****
|
|
Karsten Hopp |
81c285 |
char_u *word;
|
|
Karsten Hopp |
81c285 |
int icase = FALSE;
|
|
Karsten Hopp |
81c285 |
int adup = FALSE;
|
|
Karsten Hopp |
81c285 |
- #ifdef S_SPLINT_S /* splint doesn't parse array of pointers correctly */
|
|
Karsten Hopp |
81c285 |
- char_u **cptext;
|
|
Karsten Hopp |
81c285 |
- #else
|
|
Karsten Hopp |
81c285 |
char_u *(cptext[CPT_COUNT]);
|
|
Karsten Hopp |
81c285 |
- #endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
if (tv->v_type == VAR_DICT && tv->vval.v_dict != NULL)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
--- 3831,3837 ----
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.175/src/ex_cmds.c 2009-05-15 21:31:11.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/ex_cmds.c 2009-05-16 16:18:56.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 5776,5785 ****
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char_u *s, *d;
|
|
Karsten Hopp |
81c285 |
int i;
|
|
Karsten Hopp |
81c285 |
- #ifdef S_SPLINT_S /* splint doesn't understand array of pointers */
|
|
Karsten Hopp |
81c285 |
- static char **mtable;
|
|
Karsten Hopp |
81c285 |
- static char **rtable;
|
|
Karsten Hopp |
81c285 |
- #else
|
|
Karsten Hopp |
81c285 |
static char *(mtable[]) = {"*", "g*", "[*", "]*", ":*",
|
|
Karsten Hopp |
81c285 |
"/*", "/\\*", "\"*", "**",
|
|
Karsten Hopp |
81c285 |
"/\\(\\)",
|
|
Karsten Hopp |
81c285 |
--- 5776,5781 ----
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 5794,5800 ****
|
|
Karsten Hopp |
81c285 |
"/\\\\?", "/\\\\z(\\\\)", "\\\\=", ":s\\\\=",
|
|
Karsten Hopp |
81c285 |
"\\[count]", "\\[quotex]", "\\[range]",
|
|
Karsten Hopp |
81c285 |
"\\[pattern]", "\\\\bar", "/\\\\%\\$"};
|
|
Karsten Hopp |
81c285 |
- #endif
|
|
Karsten Hopp |
81c285 |
int flags;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
d = IObuff; /* assume IObuff is long enough! */
|
|
Karsten Hopp |
81c285 |
--- 5790,5795 ----
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.175/src/ex_docmd.c 2009-05-15 21:31:11.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/ex_docmd.c 2009-05-16 16:19:26.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 9395,9407 ****
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int len;
|
|
Karsten Hopp |
81c285 |
int i;
|
|
Karsten Hopp |
81c285 |
! #ifdef S_SPLINT_S /* splint can't handle array of pointers */
|
|
Karsten Hopp |
81c285 |
! static char **spec_str;
|
|
Karsten Hopp |
81c285 |
! static char *(nospec_str[])
|
|
Karsten Hopp |
81c285 |
! #else
|
|
Karsten Hopp |
81c285 |
! static char *(spec_str[])
|
|
Karsten Hopp |
81c285 |
! #endif
|
|
Karsten Hopp |
81c285 |
! = {
|
|
Karsten Hopp |
81c285 |
"%",
|
|
Karsten Hopp |
81c285 |
#define SPEC_PERC 0
|
|
Karsten Hopp |
81c285 |
"#",
|
|
Karsten Hopp |
81c285 |
--- 9395,9401 ----
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int len;
|
|
Karsten Hopp |
81c285 |
int i;
|
|
Karsten Hopp |
81c285 |
! static char *(spec_str[]) = {
|
|
Karsten Hopp |
81c285 |
"%",
|
|
Karsten Hopp |
81c285 |
#define SPEC_PERC 0
|
|
Karsten Hopp |
81c285 |
"#",
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.175/src/os_unix.c 2009-05-15 21:31:11.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/os_unix.c 2009-05-16 16:20:00.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 199,207 ****
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
#ifndef SIG_ERR
|
|
Karsten Hopp |
81c285 |
! # ifndef S_SPLINT_S
|
|
Karsten Hopp |
81c285 |
! # define SIG_ERR ((RETSIGTYPE (*)())-1)
|
|
Karsten Hopp |
81c285 |
! # endif
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/* volatile because it is used in signal handler sig_winch(). */
|
|
Karsten Hopp |
81c285 |
--- 199,205 ----
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
#ifndef SIG_ERR
|
|
Karsten Hopp |
81c285 |
! # define SIG_ERR ((RETSIGTYPE (*)())-1)
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/* volatile because it is used in signal handler sig_winch(). */
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 443,451 ****
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
#if defined(HAVE_TOTAL_MEM) || defined(PROTO)
|
|
Karsten Hopp |
81c285 |
# ifdef HAVE_SYS_RESOURCE_H
|
|
Karsten Hopp |
81c285 |
! # ifndef S_SPLINT_S /* splint crashes on bits/resource.h */
|
|
Karsten Hopp |
81c285 |
! # include <sys/resource.h>
|
|
Karsten Hopp |
81c285 |
! # endif
|
|
Karsten Hopp |
81c285 |
# endif
|
|
Karsten Hopp |
81c285 |
# if defined(HAVE_SYS_SYSCTL_H) && defined(HAVE_SYSCTL)
|
|
Karsten Hopp |
81c285 |
# include <sys/sysctl.h>
|
|
Karsten Hopp |
81c285 |
--- 441,447 ----
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
#if defined(HAVE_TOTAL_MEM) || defined(PROTO)
|
|
Karsten Hopp |
81c285 |
# ifdef HAVE_SYS_RESOURCE_H
|
|
Karsten Hopp |
81c285 |
! # include <sys/resource.h>
|
|
Karsten Hopp |
81c285 |
# endif
|
|
Karsten Hopp |
81c285 |
# if defined(HAVE_SYS_SYSCTL_H) && defined(HAVE_SYSCTL)
|
|
Karsten Hopp |
81c285 |
# include <sys/sysctl.h>
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.175/src/os_unix.h 2009-05-15 21:31:11.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/os_unix.h 2009-05-16 16:17:22.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 53,61 ****
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
#ifdef HAVE_UNISTD_H
|
|
Karsten Hopp |
81c285 |
! # ifndef S_SPLINT_S /* splint crashes on bits/confname.h */
|
|
Karsten Hopp |
81c285 |
! # include <unistd.h>
|
|
Karsten Hopp |
81c285 |
! # endif
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
#ifdef HAVE_LIBC_H
|
|
Karsten Hopp |
81c285 |
--- 53,59 ----
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
#ifdef HAVE_UNISTD_H
|
|
Karsten Hopp |
81c285 |
! # include <unistd.h>
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
#ifdef HAVE_LIBC_H
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.175/src/structs.h 2009-05-13 20:47:07.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/structs.h 2009-05-16 16:17:51.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1646,1656 ****
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_DIFF
|
|
Karsten Hopp |
81c285 |
diff_T *tp_first_diff;
|
|
Karsten Hopp |
81c285 |
- # ifdef S_SPLINT_S /* splint doesn't understand the array of pointers */
|
|
Karsten Hopp |
81c285 |
- buf_T **tp_diffbuf;
|
|
Karsten Hopp |
81c285 |
- # else
|
|
Karsten Hopp |
81c285 |
buf_T *(tp_diffbuf[DB_COUNT]);
|
|
Karsten Hopp |
81c285 |
- # endif
|
|
Karsten Hopp |
81c285 |
int tp_diff_invalid; /* list of diffs is outdated */
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
frame_T *tp_snapshot; /* window layout snapshot */
|
|
Karsten Hopp |
81c285 |
--- 1646,1652 ----
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.175/src/term.h 2009-05-13 18:54:14.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/term.h 2009-05-16 16:20:06.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 96,106 ****
|
|
Karsten Hopp |
81c285 |
* - there should be code in term.c to obtain the value from the termcap
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- #ifdef S_SPLINT_S /* splint doesn't understand array of pointers */
|
|
Karsten Hopp |
81c285 |
- extern char_u **term_strings; /* current terminal strings */
|
|
Karsten Hopp |
81c285 |
- #else
|
|
Karsten Hopp |
81c285 |
extern char_u *(term_strings[]); /* current terminal strings */
|
|
Karsten Hopp |
81c285 |
- #endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* strings used for terminal
|
|
Karsten Hopp |
81c285 |
--- 96,102 ----
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.175/src/version.c 2009-05-16 16:15:39.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/version.c 2009-05-16 16:34:10.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 678,679 ****
|
|
Karsten Hopp |
81c285 |
--- 678,681 ----
|
|
Karsten Hopp |
81c285 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
81c285 |
+ /**/
|
|
Karsten Hopp |
81c285 |
+ 176,
|
|
Karsten Hopp |
81c285 |
/**/
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--
|
|
Karsten Hopp |
81c285 |
Corn oil comes from corn and olive oil comes from olives, so where
|
|
Karsten Hopp |
81c285 |
does baby oil come from?
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
81c285 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
81c285 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
81c285 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|