|
Karsten Hopp |
81c285 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
81c285 |
Subject: Patch 7.2.186
|
|
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.186
|
|
Karsten Hopp |
81c285 |
Problem: Some more compiler warnings when using gcc -Wextra.
|
|
Karsten Hopp |
81c285 |
Solution: Now with the intended if_tcl.c changes.
|
|
Karsten Hopp |
81c285 |
Files: src/if_tcl.c
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.185/src/if_tcl.c 2007-05-10 20:55:34.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/if_tcl.c 2009-05-22 15:29:53.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 290,299 ****
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
#define TCL_EXIT 5
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
exitcmd(dummy, interp, objc, objv)
|
|
Karsten Hopp |
81c285 |
! ClientData dummy;
|
|
Karsten Hopp |
81c285 |
Tcl_Interp *interp;
|
|
Karsten Hopp |
81c285 |
int objc;
|
|
Karsten Hopp |
81c285 |
Tcl_Obj *CONST objv[];
|
|
Karsten Hopp |
81c285 |
--- 290,298 ----
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
#define TCL_EXIT 5
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
exitcmd(dummy, interp, objc, objv)
|
|
Karsten Hopp |
81c285 |
! ClientData dummy UNUSED;
|
|
Karsten Hopp |
81c285 |
Tcl_Interp *interp;
|
|
Karsten Hopp |
81c285 |
int objc;
|
|
Karsten Hopp |
81c285 |
Tcl_Obj *CONST objv[];
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 315,324 ****
|
|
Karsten Hopp |
81c285 |
return TCL_ERROR;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
catchcmd(dummy, interp, objc, objv)
|
|
Karsten Hopp |
81c285 |
! ClientData dummy;
|
|
Karsten Hopp |
81c285 |
Tcl_Interp *interp;
|
|
Karsten Hopp |
81c285 |
int objc;
|
|
Karsten Hopp |
81c285 |
Tcl_Obj *CONST objv[];
|
|
Karsten Hopp |
81c285 |
--- 314,322 ----
|
|
Karsten Hopp |
81c285 |
return TCL_ERROR;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
catchcmd(dummy, interp, objc, objv)
|
|
Karsten Hopp |
81c285 |
! ClientData dummy UNUSED;
|
|
Karsten Hopp |
81c285 |
Tcl_Interp *interp;
|
|
Karsten Hopp |
81c285 |
int objc;
|
|
Karsten Hopp |
81c285 |
Tcl_Obj *CONST objv[];
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 356,365 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "::vim::beep" - what Vi[m] does best :-)
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
beepcmd(dummy, interp, objc, objv)
|
|
Karsten Hopp |
81c285 |
! ClientData dummy;
|
|
Karsten Hopp |
81c285 |
Tcl_Interp *interp;
|
|
Karsten Hopp |
81c285 |
int objc;
|
|
Karsten Hopp |
81c285 |
Tcl_Obj *CONST objv[];
|
|
Karsten Hopp |
81c285 |
--- 354,362 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "::vim::beep" - what Vi[m] does best :-)
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
beepcmd(dummy, interp, objc, objv)
|
|
Karsten Hopp |
81c285 |
! ClientData dummy UNUSED;
|
|
Karsten Hopp |
81c285 |
Tcl_Interp *interp;
|
|
Karsten Hopp |
81c285 |
int objc;
|
|
Karsten Hopp |
81c285 |
Tcl_Obj *CONST objv[];
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 378,387 ****
|
|
Karsten Hopp |
81c285 |
* "::vim::buffer {N}" - create buffer command for buffer N.
|
|
Karsten Hopp |
81c285 |
* "::vim::buffer new" - create a new buffer (not implemented)
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
buffercmd(dummy, interp, objc, objv)
|
|
Karsten Hopp |
81c285 |
! ClientData dummy;
|
|
Karsten Hopp |
81c285 |
Tcl_Interp *interp;
|
|
Karsten Hopp |
81c285 |
int objc;
|
|
Karsten Hopp |
81c285 |
Tcl_Obj *CONST objv[];
|
|
Karsten Hopp |
81c285 |
--- 375,383 ----
|
|
Karsten Hopp |
81c285 |
* "::vim::buffer {N}" - create buffer command for buffer N.
|
|
Karsten Hopp |
81c285 |
* "::vim::buffer new" - create a new buffer (not implemented)
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
buffercmd(dummy, interp, objc, objv)
|
|
Karsten Hopp |
81c285 |
! ClientData dummy UNUSED;
|
|
Karsten Hopp |
81c285 |
Tcl_Interp *interp;
|
|
Karsten Hopp |
81c285 |
int objc;
|
|
Karsten Hopp |
81c285 |
Tcl_Obj *CONST objv[];
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 475,484 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "::vim::window list" - create list of window commands.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
windowcmd(dummy, interp, objc, objv)
|
|
Karsten Hopp |
81c285 |
! ClientData dummy;
|
|
Karsten Hopp |
81c285 |
Tcl_Interp *interp;
|
|
Karsten Hopp |
81c285 |
int objc;
|
|
Karsten Hopp |
81c285 |
Tcl_Obj *CONST objv[];
|
|
Karsten Hopp |
81c285 |
--- 471,479 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "::vim::window list" - create list of window commands.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
windowcmd(dummy, interp, objc, objv)
|
|
Karsten Hopp |
81c285 |
! ClientData dummy UNUSED;
|
|
Karsten Hopp |
81c285 |
Tcl_Interp *interp;
|
|
Karsten Hopp |
81c285 |
int objc;
|
|
Karsten Hopp |
81c285 |
Tcl_Obj *CONST objv[];
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1130,1139 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
commandcmd(dummy, interp, objc, objv)
|
|
Karsten Hopp |
81c285 |
! ClientData dummy;
|
|
Karsten Hopp |
81c285 |
Tcl_Interp *interp;
|
|
Karsten Hopp |
81c285 |
int objc;
|
|
Karsten Hopp |
81c285 |
Tcl_Obj *CONST objv[];
|
|
Karsten Hopp |
81c285 |
--- 1125,1133 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
commandcmd(dummy, interp, objc, objv)
|
|
Karsten Hopp |
81c285 |
! ClientData dummy UNUSED;
|
|
Karsten Hopp |
81c285 |
Tcl_Interp *interp;
|
|
Karsten Hopp |
81c285 |
int objc;
|
|
Karsten Hopp |
81c285 |
Tcl_Obj *CONST objv[];
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1145,1154 ****
|
|
Karsten Hopp |
81c285 |
return err;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
optioncmd(dummy, interp, objc, objv)
|
|
Karsten Hopp |
81c285 |
! ClientData dummy;
|
|
Karsten Hopp |
81c285 |
Tcl_Interp *interp;
|
|
Karsten Hopp |
81c285 |
int objc;
|
|
Karsten Hopp |
81c285 |
Tcl_Obj *CONST objv[];
|
|
Karsten Hopp |
81c285 |
--- 1139,1147 ----
|
|
Karsten Hopp |
81c285 |
return err;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
optioncmd(dummy, interp, objc, objv)
|
|
Karsten Hopp |
81c285 |
! ClientData dummy UNUSED;
|
|
Karsten Hopp |
81c285 |
Tcl_Interp *interp;
|
|
Karsten Hopp |
81c285 |
int objc;
|
|
Karsten Hopp |
81c285 |
Tcl_Obj *CONST objv[];
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1160,1169 ****
|
|
Karsten Hopp |
81c285 |
return err;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
exprcmd(dummy, interp, objc, objv)
|
|
Karsten Hopp |
81c285 |
! ClientData dummy;
|
|
Karsten Hopp |
81c285 |
Tcl_Interp *interp;
|
|
Karsten Hopp |
81c285 |
int objc;
|
|
Karsten Hopp |
81c285 |
Tcl_Obj *CONST objv[];
|
|
Karsten Hopp |
81c285 |
--- 1153,1161 ----
|
|
Karsten Hopp |
81c285 |
return err;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
exprcmd(dummy, interp, objc, objv)
|
|
Karsten Hopp |
81c285 |
! ClientData dummy UNUSED;
|
|
Karsten Hopp |
81c285 |
Tcl_Interp *interp;
|
|
Karsten Hopp |
81c285 |
int objc;
|
|
Karsten Hopp |
81c285 |
Tcl_Obj *CONST objv[];
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1584,1594 ****
|
|
Karsten Hopp |
81c285 |
I/O Channel
|
|
Karsten Hopp |
81c285 |
********************************************/
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
channel_close(instance, interp)
|
|
Karsten Hopp |
81c285 |
ClientData instance;
|
|
Karsten Hopp |
81c285 |
! Tcl_Interp *interp;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int err = 0;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 1576,1585 ----
|
|
Karsten Hopp |
81c285 |
I/O Channel
|
|
Karsten Hopp |
81c285 |
********************************************/
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
channel_close(instance, interp)
|
|
Karsten Hopp |
81c285 |
ClientData instance;
|
|
Karsten Hopp |
81c285 |
! Tcl_Interp *interp UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int err = 0;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1602,1613 ****
|
|
Karsten Hopp |
81c285 |
return err;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
channel_input(instance, buf, bufsiz, errptr)
|
|
Karsten Hopp |
81c285 |
! ClientData instance;
|
|
Karsten Hopp |
81c285 |
! char *buf;
|
|
Karsten Hopp |
81c285 |
! int bufsiz;
|
|
Karsten Hopp |
81c285 |
int *errptr;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 1593,1603 ----
|
|
Karsten Hopp |
81c285 |
return err;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
channel_input(instance, buf, bufsiz, errptr)
|
|
Karsten Hopp |
81c285 |
! ClientData instance UNUSED;
|
|
Karsten Hopp |
81c285 |
! char *buf UNUSED;
|
|
Karsten Hopp |
81c285 |
! int bufsiz UNUSED;
|
|
Karsten Hopp |
81c285 |
int *errptr;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1659,1679 ****
|
|
Karsten Hopp |
81c285 |
return result;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
channel_watch(instance, mask)
|
|
Karsten Hopp |
81c285 |
! ClientData instance;
|
|
Karsten Hopp |
81c285 |
! int mask;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
Tcl_SetErrno(EINVAL);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
channel_gethandle(instance, direction, handleptr)
|
|
Karsten Hopp |
81c285 |
! ClientData instance;
|
|
Karsten Hopp |
81c285 |
! int direction;
|
|
Karsten Hopp |
81c285 |
! ClientData *handleptr;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
Tcl_SetErrno(EINVAL);
|
|
Karsten Hopp |
81c285 |
return EINVAL;
|
|
Karsten Hopp |
81c285 |
--- 1649,1667 ----
|
|
Karsten Hopp |
81c285 |
return result;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
channel_watch(instance, mask)
|
|
Karsten Hopp |
81c285 |
! ClientData instance UNUSED;
|
|
Karsten Hopp |
81c285 |
! int mask UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
Tcl_SetErrno(EINVAL);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
channel_gethandle(instance, direction, handleptr)
|
|
Karsten Hopp |
81c285 |
! ClientData instance UNUSED;
|
|
Karsten Hopp |
81c285 |
! int direction UNUSED;
|
|
Karsten Hopp |
81c285 |
! ClientData *handleptr UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
Tcl_SetErrno(EINVAL);
|
|
Karsten Hopp |
81c285 |
return EINVAL;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1691,1697 ****
|
|
Karsten Hopp |
81c285 |
NULL, /* set option */
|
|
Karsten Hopp |
81c285 |
NULL, /* get option */
|
|
Karsten Hopp |
81c285 |
channel_watch,
|
|
Karsten Hopp |
81c285 |
! channel_gethandle
|
|
Karsten Hopp |
81c285 |
};
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/**********************************
|
|
Karsten Hopp |
81c285 |
--- 1679,1692 ----
|
|
Karsten Hopp |
81c285 |
NULL, /* set option */
|
|
Karsten Hopp |
81c285 |
NULL, /* get option */
|
|
Karsten Hopp |
81c285 |
channel_watch,
|
|
Karsten Hopp |
81c285 |
! channel_gethandle,
|
|
Karsten Hopp |
81c285 |
! NULL,
|
|
Karsten Hopp |
81c285 |
! NULL,
|
|
Karsten Hopp |
81c285 |
! NULL,
|
|
Karsten Hopp |
81c285 |
! NULL,
|
|
Karsten Hopp |
81c285 |
! NULL,
|
|
Karsten Hopp |
81c285 |
! NULL,
|
|
Karsten Hopp |
81c285 |
! NULL
|
|
Karsten Hopp |
81c285 |
};
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/**********************************
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.185/src/version.c 2009-05-22 18:20:23.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/version.c 2009-05-22 21:07:21.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 |
+ 186,
|
|
Karsten Hopp |
81c285 |
/**/
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--
|
|
Karsten Hopp |
81c285 |
ARTHUR: Old woman!
|
|
Karsten Hopp |
81c285 |
DENNIS: Man!
|
|
Karsten Hopp |
81c285 |
ARTHUR: Man. I'm sorry. Old man, What knight live in that castle over there?
|
|
Karsten Hopp |
81c285 |
DENNIS: I'm thirty-seven.
|
|
Karsten Hopp |
81c285 |
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
|
|
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 ///
|