|
Karsten Hopp |
81c285 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
81c285 |
Subject: Patch 7.2.174
|
|
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.174
|
|
Karsten Hopp |
81c285 |
Problem: Too many warnings from gcc -Wextra.
|
|
Karsten Hopp |
81c285 |
Solution: Change initializer. Add UNUSED. Add type casts.
|
|
Karsten Hopp |
81c285 |
Files: src/edit.c, src/eval.c, src/ex_cmds.c, src/ex_docmd.c,
|
|
Karsten Hopp |
81c285 |
src/ex_getln.c, src/fileio.c, getchar.c, globals.h, main.c,
|
|
Karsten Hopp |
81c285 |
memline.c, message.c, src/misc1.c, src/move.c, src/normal.c,
|
|
Karsten Hopp |
81c285 |
src/option.c, src/os_unix.c, src/os_unix.h, src/regexp.c,
|
|
Karsten Hopp |
81c285 |
src/search.c, src/tag.c
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.173/src/edit.c 2009-05-14 22:19:19.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/edit.c 2009-05-15 21:06:07.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 8991,8997 ****
|
|
Karsten Hopp |
81c285 |
foldOpenCursor();
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
undisplay_dollar();
|
|
Karsten Hopp |
81c285 |
! if (gchar_cursor() != NUL || virtual_active()
|
|
Karsten Hopp |
81c285 |
)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
start_arrow(&curwin->w_cursor);
|
|
Karsten Hopp |
81c285 |
--- 8992,9001 ----
|
|
Karsten Hopp |
81c285 |
foldOpenCursor();
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
undisplay_dollar();
|
|
Karsten Hopp |
81c285 |
! if (gchar_cursor() != NUL
|
|
Karsten Hopp |
81c285 |
! #ifdef FEAT_VIRTUALEDIT
|
|
Karsten Hopp |
81c285 |
! || virtual_active()
|
|
Karsten Hopp |
81c285 |
! #endif
|
|
Karsten Hopp |
81c285 |
)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
start_arrow(&curwin->w_cursor);
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.173/src/eval.c 2009-04-22 16:07:57.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/eval.c 2009-05-15 21:18:08.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 8303,8312 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "argc()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_argc(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
rettv->vval.v_number = ARGCOUNT;
|
|
Karsten Hopp |
81c285 |
--- 8303,8311 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "argc()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_argc(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
rettv->vval.v_number = ARGCOUNT;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 8315,8324 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "argidx()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_argidx(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
rettv->vval.v_number = curwin->w_arg_idx;
|
|
Karsten Hopp |
81c285 |
--- 8314,8322 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "argidx()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_argidx(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
rettv->vval.v_number = curwin->w_arg_idx;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 8396,8405 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "browse(save, title, initdir, default)" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_browse(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_BROWSE
|
|
Karsten Hopp |
81c285 |
--- 8394,8402 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "browse(save, title, initdir, default)" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_browse(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_BROWSE
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 8431,8440 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "browsedir(title, initdir)" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_browsedir(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_BROWSE
|
|
Karsten Hopp |
81c285 |
--- 8428,8436 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "browsedir(title, initdir)" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_browsedir(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_BROWSE
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 8801,8810 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "changenr()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_changenr(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
rettv->vval.v_number = curbuf->b_u_seq_cur;
|
|
Karsten Hopp |
81c285 |
--- 8797,8805 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "changenr()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_changenr(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
rettv->vval.v_number = curbuf->b_u_seq_cur;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 8854,8863 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "clearmatches()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_clearmatches(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_SEARCH_EXTRA
|
|
Karsten Hopp |
81c285 |
--- 8849,8857 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "clearmatches()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_clearmatches(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_SEARCH_EXTRA
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.173/src/ex_cmds.c 2009-05-14 22:19:19.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/ex_cmds.c 2009-05-15 20:42:18.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 4040,4047 ****
|
|
Karsten Hopp |
81c285 |
--- 4040,4049 ----
|
|
Karsten Hopp |
81c285 |
bigness = curwin->w_height;
|
|
Karsten Hopp |
81c285 |
else if (firstwin == lastwin)
|
|
Karsten Hopp |
81c285 |
bigness = curwin->w_p_scr * 2;
|
|
Karsten Hopp |
81c285 |
+ #ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
81c285 |
else
|
|
Karsten Hopp |
81c285 |
bigness = curwin->w_height - 3;
|
|
Karsten Hopp |
81c285 |
+ #endif
|
|
Karsten Hopp |
81c285 |
if (bigness < 1)
|
|
Karsten Hopp |
81c285 |
bigness = 1;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.173/src/ex_docmd.c 2009-05-13 18:54:14.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/ex_docmd.c 2009-05-15 20:47:58.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1578,1588 ****
|
|
Karsten Hopp |
81c285 |
* If "fgetline" is get_loop_line(), return TRUE if the getline it uses equals
|
|
Karsten Hopp |
81c285 |
* "func". * Otherwise return TRUE when "fgetline" equals "func".
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
int
|
|
Karsten Hopp |
81c285 |
getline_equal(fgetline, cookie, func)
|
|
Karsten Hopp |
81c285 |
char_u *(*fgetline) __ARGS((int, void *, int));
|
|
Karsten Hopp |
81c285 |
! void *cookie; /* argument for fgetline() */
|
|
Karsten Hopp |
81c285 |
char_u *(*func) __ARGS((int, void *, int));
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_EVAL
|
|
Karsten Hopp |
81c285 |
--- 1578,1587 ----
|
|
Karsten Hopp |
81c285 |
* If "fgetline" is get_loop_line(), return TRUE if the getline it uses equals
|
|
Karsten Hopp |
81c285 |
* "func". * Otherwise return TRUE when "fgetline" equals "func".
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
int
|
|
Karsten Hopp |
81c285 |
getline_equal(fgetline, cookie, func)
|
|
Karsten Hopp |
81c285 |
char_u *(*fgetline) __ARGS((int, void *, int));
|
|
Karsten Hopp |
81c285 |
! void *cookie UNUSED; /* argument for fgetline() */
|
|
Karsten Hopp |
81c285 |
char_u *(*func) __ARGS((int, void *, int));
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_EVAL
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1610,1619 ****
|
|
Karsten Hopp |
81c285 |
* If "fgetline" is get_loop_line(), return the cookie used by the original
|
|
Karsten Hopp |
81c285 |
* getline function. Otherwise return "cookie".
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
void *
|
|
Karsten Hopp |
81c285 |
getline_cookie(fgetline, cookie)
|
|
Karsten Hopp |
81c285 |
! char_u *(*fgetline) __ARGS((int, void *, int));
|
|
Karsten Hopp |
81c285 |
void *cookie; /* argument for fgetline() */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
# ifdef FEAT_EVAL
|
|
Karsten Hopp |
81c285 |
--- 1609,1617 ----
|
|
Karsten Hopp |
81c285 |
* If "fgetline" is get_loop_line(), return the cookie used by the original
|
|
Karsten Hopp |
81c285 |
* getline function. Otherwise return "cookie".
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
void *
|
|
Karsten Hopp |
81c285 |
getline_cookie(fgetline, cookie)
|
|
Karsten Hopp |
81c285 |
! char_u *(*fgetline) __ARGS((int, void *, int)) UNUSED;
|
|
Karsten Hopp |
81c285 |
void *cookie; /* argument for fgetline() */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
# ifdef FEAT_EVAL
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2754,2764 ****
|
|
Karsten Hopp |
81c285 |
* "full" is set to TRUE if the whole command name matched.
|
|
Karsten Hopp |
81c285 |
* Returns NULL for an ambiguous user command.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static char_u *
|
|
Karsten Hopp |
81c285 |
find_command(eap, full)
|
|
Karsten Hopp |
81c285 |
exarg_T *eap;
|
|
Karsten Hopp |
81c285 |
! int *full;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int len;
|
|
Karsten Hopp |
81c285 |
char_u *p;
|
|
Karsten Hopp |
81c285 |
--- 2752,2761 ----
|
|
Karsten Hopp |
81c285 |
* "full" is set to TRUE if the whole command name matched.
|
|
Karsten Hopp |
81c285 |
* Returns NULL for an ambiguous user command.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static char_u *
|
|
Karsten Hopp |
81c285 |
find_command(eap, full)
|
|
Karsten Hopp |
81c285 |
exarg_T *eap;
|
|
Karsten Hopp |
81c285 |
! int *full UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int len;
|
|
Karsten Hopp |
81c285 |
char_u *p;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 5053,5062 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Function given to ExpandGeneric() to obtain the list of command names.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
get_command_name(xp, idx)
|
|
Karsten Hopp |
81c285 |
! expand_T *xp;
|
|
Karsten Hopp |
81c285 |
int idx;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (idx >= (int)CMD_SIZE)
|
|
Karsten Hopp |
81c285 |
--- 5050,5058 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Function given to ExpandGeneric() to obtain the list of command names.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
get_command_name(xp, idx)
|
|
Karsten Hopp |
81c285 |
! expand_T *xp UNUSED;
|
|
Karsten Hopp |
81c285 |
int idx;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (idx >= (int)CMD_SIZE)
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 5573,5582 ****
|
|
Karsten Hopp |
81c285 |
* ":comclear"
|
|
Karsten Hopp |
81c285 |
* Clear all user commands, global and for current buffer.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
ex_comclear(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
uc_clear(&ucmds);
|
|
Karsten Hopp |
81c285 |
uc_clear(&curbuf->b_ucmds);
|
|
Karsten Hopp |
81c285 |
--- 5569,5577 ----
|
|
Karsten Hopp |
81c285 |
* ":comclear"
|
|
Karsten Hopp |
81c285 |
* Clear all user commands, global and for current buffer.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
ex_comclear(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
uc_clear(&ucmds);
|
|
Karsten Hopp |
81c285 |
uc_clear(&curbuf->b_ucmds);
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 6072,6081 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Function given to ExpandGeneric() to obtain the list of user command names.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
get_user_commands(xp, idx)
|
|
Karsten Hopp |
81c285 |
! expand_T *xp;
|
|
Karsten Hopp |
81c285 |
int idx;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (idx < curbuf->b_ucmds.ga_len)
|
|
Karsten Hopp |
81c285 |
--- 6067,6075 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Function given to ExpandGeneric() to obtain the list of user command names.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
get_user_commands(xp, idx)
|
|
Karsten Hopp |
81c285 |
! expand_T *xp UNUSED;
|
|
Karsten Hopp |
81c285 |
int idx;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (idx < curbuf->b_ucmds.ga_len)
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 6090,6099 ****
|
|
Karsten Hopp |
81c285 |
* Function given to ExpandGeneric() to obtain the list of user command
|
|
Karsten Hopp |
81c285 |
* attributes.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
get_user_cmd_flags(xp, idx)
|
|
Karsten Hopp |
81c285 |
! expand_T *xp;
|
|
Karsten Hopp |
81c285 |
int idx;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
static char *user_cmd_flags[] =
|
|
Karsten Hopp |
81c285 |
--- 6084,6092 ----
|
|
Karsten Hopp |
81c285 |
* Function given to ExpandGeneric() to obtain the list of user command
|
|
Karsten Hopp |
81c285 |
* attributes.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
get_user_cmd_flags(xp, idx)
|
|
Karsten Hopp |
81c285 |
! expand_T *xp UNUSED;
|
|
Karsten Hopp |
81c285 |
int idx;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
static char *user_cmd_flags[] =
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 6108,6117 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Function given to ExpandGeneric() to obtain the list of values for -nargs.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
get_user_cmd_nargs(xp, idx)
|
|
Karsten Hopp |
81c285 |
! expand_T *xp;
|
|
Karsten Hopp |
81c285 |
int idx;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
static char *user_cmd_nargs[] = {"0", "1", "*", "?", "+"};
|
|
Karsten Hopp |
81c285 |
--- 6101,6109 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Function given to ExpandGeneric() to obtain the list of values for -nargs.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
get_user_cmd_nargs(xp, idx)
|
|
Karsten Hopp |
81c285 |
! expand_T *xp UNUSED;
|
|
Karsten Hopp |
81c285 |
int idx;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
static char *user_cmd_nargs[] = {"0", "1", "*", "?", "+"};
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 6124,6133 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Function given to ExpandGeneric() to obtain the list of values for -complete.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
get_user_cmd_complete(xp, idx)
|
|
Karsten Hopp |
81c285 |
! expand_T *xp;
|
|
Karsten Hopp |
81c285 |
int idx;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
return (char_u *)command_complete[idx].name;
|
|
Karsten Hopp |
81c285 |
--- 6116,6124 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Function given to ExpandGeneric() to obtain the list of values for -complete.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
get_user_cmd_complete(xp, idx)
|
|
Karsten Hopp |
81c285 |
! expand_T *xp UNUSED;
|
|
Karsten Hopp |
81c285 |
int idx;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
return (char_u *)command_complete[idx].name;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 6305,6314 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* ":cquit".
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ex_cquit(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
getout(1); /* this does not always pass on the exit code to the Manx
|
|
Karsten Hopp |
81c285 |
compiler. why? */
|
|
Karsten Hopp |
81c285 |
--- 6296,6304 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* ":cquit".
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ex_cquit(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
getout(1); /* this does not always pass on the exit code to the Manx
|
|
Karsten Hopp |
81c285 |
compiler. why? */
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 6750,6759 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* ":shell".
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ex_shell(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
do_shell(NULL, 0);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
--- 6740,6748 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* ":shell".
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ex_shell(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
do_shell(NULL, 0);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 7057,7066 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* ":preserve".
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ex_preserve(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
curbuf->b_flags |= BF_PRESERVED;
|
|
Karsten Hopp |
81c285 |
ml_preserve(curbuf, TRUE);
|
|
Karsten Hopp |
81c285 |
--- 7046,7054 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* ":preserve".
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ex_preserve(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
curbuf->b_flags |= BF_PRESERVED;
|
|
Karsten Hopp |
81c285 |
ml_preserve(curbuf, TRUE);
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 7292,7301 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* :tabs command: List tabs and their contents.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ex_tabs(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
tabpage_T *tp;
|
|
Karsten Hopp |
81c285 |
win_T *wp;
|
|
Karsten Hopp |
81c285 |
--- 7280,7288 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* :tabs command: List tabs and their contents.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ex_tabs(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
tabpage_T *tp;
|
|
Karsten Hopp |
81c285 |
win_T *wp;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 7482,7488 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* ":edit <file>" command and alikes.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
do_exedit(eap, old_curwin)
|
|
Karsten Hopp |
81c285 |
exarg_T *eap;
|
|
Karsten Hopp |
81c285 |
--- 7469,7474 ----
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 7694,7703 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ex_swapname(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (curbuf->b_ml.ml_mfp == NULL || curbuf->b_ml.ml_mfp->mf_fname == NULL)
|
|
Karsten Hopp |
81c285 |
MSG(_("No swap file"));
|
|
Karsten Hopp |
81c285 |
--- 7680,7688 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ex_swapname(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (curbuf->b_ml.ml_mfp == NULL || curbuf->b_ml.ml_mfp->mf_fname == NULL)
|
|
Karsten Hopp |
81c285 |
MSG(_("No swap file"));
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 7710,7719 ****
|
|
Karsten Hopp |
81c285 |
* offset.
|
|
Karsten Hopp |
81c285 |
* (1998-11-02 16:21:01 R. Edward Ralston <eralston@computer.org>)
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ex_syncbind(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_SCROLLBIND
|
|
Karsten Hopp |
81c285 |
win_T *wp;
|
|
Karsten Hopp |
81c285 |
--- 7695,7703 ----
|
|
Karsten Hopp |
81c285 |
* offset.
|
|
Karsten Hopp |
81c285 |
* (1998-11-02 16:21:01 R. Edward Ralston <eralston@computer.org>)
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ex_syncbind(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_SCROLLBIND
|
|
Karsten Hopp |
81c285 |
win_T *wp;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 7983,7992 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* ":pwd".
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ex_pwd(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (mch_dirname(NameBuff, MAXPATHL) == OK)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
--- 7967,7975 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* ":pwd".
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ex_pwd(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (mch_dirname(NameBuff, MAXPATHL) == OK)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 8417,8426 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* ":undo".
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ex_undo(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (eap->addr_count == 1) /* :undo 123 */
|
|
Karsten Hopp |
81c285 |
undo_time(eap->line2, FALSE, TRUE);
|
|
Karsten Hopp |
81c285 |
--- 8400,8408 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* ":undo".
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ex_undo(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (eap->addr_count == 1) /* :undo 123 */
|
|
Karsten Hopp |
81c285 |
undo_time(eap->line2, FALSE, TRUE);
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 8431,8440 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* ":redo".
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ex_redo(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
u_redo(1);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
--- 8413,8421 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* ":redo".
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ex_redo(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
u_redo(1);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 8442,8448 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* ":earlier" and ":later".
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ex_later(eap)
|
|
Karsten Hopp |
81c285 |
exarg_T *eap;
|
|
Karsten Hopp |
81c285 |
--- 8423,8428 ----
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 8627,8636 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* ":redrawstatus": force redraw of status line(s)
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ex_redrawstatus(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#if defined(FEAT_WINDOWS)
|
|
Karsten Hopp |
81c285 |
int r = RedrawingDisabled;
|
|
Karsten Hopp |
81c285 |
--- 8607,8615 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* ":redrawstatus": force redraw of status line(s)
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ex_redrawstatus(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#if defined(FEAT_WINDOWS)
|
|
Karsten Hopp |
81c285 |
int r = RedrawingDisabled;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 8891,8901 ****
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
#if ((defined(FEAT_SESSION) || defined(FEAT_EVAL)) && defined(vim_mkdir)) \
|
|
Karsten Hopp |
81c285 |
|| defined(PROTO)
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
int
|
|
Karsten Hopp |
81c285 |
vim_mkdir_emsg(name, prot)
|
|
Karsten Hopp |
81c285 |
char_u *name;
|
|
Karsten Hopp |
81c285 |
! int prot;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (vim_mkdir(name, prot) != 0)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
--- 8870,8879 ----
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
#if ((defined(FEAT_SESSION) || defined(FEAT_EVAL)) && defined(vim_mkdir)) \
|
|
Karsten Hopp |
81c285 |
|| defined(PROTO)
|
|
Karsten Hopp |
81c285 |
int
|
|
Karsten Hopp |
81c285 |
vim_mkdir_emsg(name, prot)
|
|
Karsten Hopp |
81c285 |
char_u *name;
|
|
Karsten Hopp |
81c285 |
! int prot UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (vim_mkdir(name, prot) != 0)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 10968,10977 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ex_digraphs(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_DIGRAPHS
|
|
Karsten Hopp |
81c285 |
if (*eap->arg != NUL)
|
|
Karsten Hopp |
81c285 |
--- 10946,10954 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ex_digraphs(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_DIGRAPHS
|
|
Karsten Hopp |
81c285 |
if (*eap->arg != NUL)
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 11005,11014 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* ":nohlsearch"
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ex_nohlsearch(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
no_hlsearch = TRUE;
|
|
Karsten Hopp |
81c285 |
redraw_all_later(SOME_VALID);
|
|
Karsten Hopp |
81c285 |
--- 10982,10990 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* ":nohlsearch"
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ex_nohlsearch(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
no_hlsearch = TRUE;
|
|
Karsten Hopp |
81c285 |
redraw_all_later(SOME_VALID);
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 11087,11096 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* ":X": Get crypt key
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ex_X(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
(void)get_crypt_key(TRUE, TRUE);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
--- 11063,11071 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* ":X": Get crypt key
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ex_X(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
(void)get_crypt_key(TRUE, TRUE);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.173/src/ex_getln.c 2009-04-29 18:44:38.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/ex_getln.c 2009-05-15 20:49:22.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 140,150 ****
|
|
Karsten Hopp |
81c285 |
* Return pointer to allocated string if there is a commandline, NULL
|
|
Karsten Hopp |
81c285 |
* otherwise.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
getcmdline(firstc, count, indent)
|
|
Karsten Hopp |
81c285 |
int firstc;
|
|
Karsten Hopp |
81c285 |
! long count; /* only used for incremental search */
|
|
Karsten Hopp |
81c285 |
int indent; /* indent for inside conditionals */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int c;
|
|
Karsten Hopp |
81c285 |
--- 140,149 ----
|
|
Karsten Hopp |
81c285 |
* Return pointer to allocated string if there is a commandline, NULL
|
|
Karsten Hopp |
81c285 |
* otherwise.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
getcmdline(firstc, count, indent)
|
|
Karsten Hopp |
81c285 |
int firstc;
|
|
Karsten Hopp |
81c285 |
! long count UNUSED; /* only used for incremental search */
|
|
Karsten Hopp |
81c285 |
int indent; /* indent for inside conditionals */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int c;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2113,2123 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Get an Ex command line for the ":" command.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
! getexline(c, dummy, indent)
|
|
Karsten Hopp |
81c285 |
int c; /* normally ':', NUL for ":append" */
|
|
Karsten Hopp |
81c285 |
! void *dummy; /* cookie not used */
|
|
Karsten Hopp |
81c285 |
int indent; /* indent for inside conditionals */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/* When executing a register, remove ':' that's in front of each line. */
|
|
Karsten Hopp |
81c285 |
--- 2112,2121 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Get an Ex command line for the ":" command.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
! getexline(c, cookie, indent)
|
|
Karsten Hopp |
81c285 |
int c; /* normally ':', NUL for ":append" */
|
|
Karsten Hopp |
81c285 |
! void *cookie UNUSED;
|
|
Karsten Hopp |
81c285 |
int indent; /* indent for inside conditionals */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/* When executing a register, remove ':' that's in front of each line. */
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2132,2143 ****
|
|
Karsten Hopp |
81c285 |
* mappings or abbreviations.
|
|
Karsten Hopp |
81c285 |
* Returns a string in allocated memory or NULL.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
! getexmodeline(promptc, dummy, indent)
|
|
Karsten Hopp |
81c285 |
int promptc; /* normally ':', NUL for ":append" and '?' for
|
|
Karsten Hopp |
81c285 |
:s prompt */
|
|
Karsten Hopp |
81c285 |
! void *dummy; /* cookie not used */
|
|
Karsten Hopp |
81c285 |
int indent; /* indent for inside conditionals */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
garray_T line_ga;
|
|
Karsten Hopp |
81c285 |
--- 2130,2140 ----
|
|
Karsten Hopp |
81c285 |
* mappings or abbreviations.
|
|
Karsten Hopp |
81c285 |
* Returns a string in allocated memory or NULL.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
! getexmodeline(promptc, cookie, indent)
|
|
Karsten Hopp |
81c285 |
int promptc; /* normally ':', NUL for ":append" and '?' for
|
|
Karsten Hopp |
81c285 |
:s prompt */
|
|
Karsten Hopp |
81c285 |
! void *cookie UNUSED;
|
|
Karsten Hopp |
81c285 |
int indent; /* indent for inside conditionals */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
garray_T line_ga;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 3832,3842 ****
|
|
Karsten Hopp |
81c285 |
* Returns EXPAND_NOTHING when the character that triggered expansion should
|
|
Karsten Hopp |
81c285 |
* be inserted like a normal character.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
showmatches(xp, wildmenu)
|
|
Karsten Hopp |
81c285 |
expand_T *xp;
|
|
Karsten Hopp |
81c285 |
! int wildmenu;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#define L_SHOWFILE(m) (showtail ? sm_gettail(files_found[m]) : files_found[m])
|
|
Karsten Hopp |
81c285 |
int num_files;
|
|
Karsten Hopp |
81c285 |
--- 3829,3838 ----
|
|
Karsten Hopp |
81c285 |
* Returns EXPAND_NOTHING when the character that triggered expansion should
|
|
Karsten Hopp |
81c285 |
* be inserted like a normal character.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
showmatches(xp, wildmenu)
|
|
Karsten Hopp |
81c285 |
expand_T *xp;
|
|
Karsten Hopp |
81c285 |
! int wildmenu UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#define L_SHOWFILE(m) (showtail ? sm_gettail(files_found[m]) : files_found[m])
|
|
Karsten Hopp |
81c285 |
int num_files;
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.173/src/fileio.c 2009-05-13 20:47:07.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/fileio.c 2009-05-15 20:52:40.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 3498,3504 ****
|
|
Karsten Hopp |
81c285 |
if (mch_stat((char *)IObuff, &st) < 0
|
|
Karsten Hopp |
81c285 |
|| st.st_uid != st_old.st_uid
|
|
Karsten Hopp |
81c285 |
|| st.st_gid != st_old.st_gid
|
|
Karsten Hopp |
81c285 |
! || st.st_mode != perm)
|
|
Karsten Hopp |
81c285 |
backup_copy = TRUE;
|
|
Karsten Hopp |
81c285 |
# endif
|
|
Karsten Hopp |
81c285 |
/* Close the file before removing it, on MS-Windows we
|
|
Karsten Hopp |
81c285 |
--- 3498,3504 ----
|
|
Karsten Hopp |
81c285 |
if (mch_stat((char *)IObuff, &st) < 0
|
|
Karsten Hopp |
81c285 |
|| st.st_uid != st_old.st_uid
|
|
Karsten Hopp |
81c285 |
|| st.st_gid != st_old.st_gid
|
|
Karsten Hopp |
81c285 |
! || (long)st.st_mode != perm)
|
|
Karsten Hopp |
81c285 |
backup_copy = TRUE;
|
|
Karsten Hopp |
81c285 |
# endif
|
|
Karsten Hopp |
81c285 |
/* Close the file before removing it, on MS-Windows we
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 5963,5969 ****
|
|
Karsten Hopp |
81c285 |
else if (*ext == '.')
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
! if (s - ptr > (size_t)8)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
s = ptr + 8;
|
|
Karsten Hopp |
81c285 |
*s = '\0';
|
|
Karsten Hopp |
81c285 |
--- 5971,5977 ----
|
|
Karsten Hopp |
81c285 |
else if (*ext == '.')
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
! if ((size_t)(s - ptr) > (size_t)8)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
s = ptr + 8;
|
|
Karsten Hopp |
81c285 |
*s = '\0';
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 6460,6470 ****
|
|
Karsten Hopp |
81c285 |
* return 2 if a message has been displayed.
|
|
Karsten Hopp |
81c285 |
* return 0 otherwise.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
int
|
|
Karsten Hopp |
81c285 |
buf_check_timestamp(buf, focus)
|
|
Karsten Hopp |
81c285 |
buf_T *buf;
|
|
Karsten Hopp |
81c285 |
! int focus; /* called for GUI focus event */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
struct stat st;
|
|
Karsten Hopp |
81c285 |
int stat_res;
|
|
Karsten Hopp |
81c285 |
--- 6468,6477 ----
|
|
Karsten Hopp |
81c285 |
* return 2 if a message has been displayed.
|
|
Karsten Hopp |
81c285 |
* return 0 otherwise.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
int
|
|
Karsten Hopp |
81c285 |
buf_check_timestamp(buf, focus)
|
|
Karsten Hopp |
81c285 |
buf_T *buf;
|
|
Karsten Hopp |
81c285 |
! int focus UNUSED; /* called for GUI focus event */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
struct stat st;
|
|
Karsten Hopp |
81c285 |
int stat_res;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 6868,6879 ****
|
|
Karsten Hopp |
81c285 |
/* Careful: autocommands may have made "buf" invalid! */
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
buf_store_time(buf, st, fname)
|
|
Karsten Hopp |
81c285 |
buf_T *buf;
|
|
Karsten Hopp |
81c285 |
struct stat *st;
|
|
Karsten Hopp |
81c285 |
! char_u *fname;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
buf->b_mtime = (long)st->st_mtime;
|
|
Karsten Hopp |
81c285 |
buf->b_orig_size = (size_t)st->st_size;
|
|
Karsten Hopp |
81c285 |
--- 6875,6885 ----
|
|
Karsten Hopp |
81c285 |
/* Careful: autocommands may have made "buf" invalid! */
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
buf_store_time(buf, st, fname)
|
|
Karsten Hopp |
81c285 |
buf_T *buf;
|
|
Karsten Hopp |
81c285 |
struct stat *st;
|
|
Karsten Hopp |
81c285 |
! char_u *fname UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
buf->b_mtime = (long)st->st_mtime;
|
|
Karsten Hopp |
81c285 |
buf->b_orig_size = (size_t)st->st_size;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 6936,6945 ****
|
|
Karsten Hopp |
81c285 |
* The returned pointer is to allocated memory.
|
|
Karsten Hopp |
81c285 |
* The returned pointer is NULL if no valid name was found.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
vim_tempname(extra_char)
|
|
Karsten Hopp |
81c285 |
! int extra_char; /* character to use in the name instead of '?' */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef USE_TMPNAM
|
|
Karsten Hopp |
81c285 |
char_u itmp[L_tmpnam]; /* use tmpnam() */
|
|
Karsten Hopp |
81c285 |
--- 6942,6950 ----
|
|
Karsten Hopp |
81c285 |
* The returned pointer is to allocated memory.
|
|
Karsten Hopp |
81c285 |
* The returned pointer is NULL if no valid name was found.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
vim_tempname(extra_char)
|
|
Karsten Hopp |
81c285 |
! int extra_char UNUSED; /* char to use in the name instead of '?' */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef USE_TMPNAM
|
|
Karsten Hopp |
81c285 |
char_u itmp[L_tmpnam]; /* use tmpnam() */
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 6968,6974 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Try the entries in TEMPDIRNAMES to create the temp directory.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < sizeof(tempdirs) / sizeof(char *); ++i)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/* expand $TMP, leave room for "/v1100000/999999999" */
|
|
Karsten Hopp |
81c285 |
expand_env((char_u *)tempdirs[i], itmp, TEMPNAMELEN - 20);
|
|
Karsten Hopp |
81c285 |
--- 6973,6979 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Try the entries in TEMPDIRNAMES to create the temp directory.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < (int)(sizeof(tempdirs) / sizeof(char *)); ++i)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/* expand $TMP, leave room for "/v1100000/999999999" */
|
|
Karsten Hopp |
81c285 |
expand_env((char_u *)tempdirs[i], itmp, TEMPNAMELEN - 20);
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 9588,9600 ****
|
|
Karsten Hopp |
81c285 |
*
|
|
Karsten Hopp |
81c285 |
* Returns NULL when out of memory.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
file_pat_to_reg_pat(pat, pat_end, allow_dirs, no_bslash)
|
|
Karsten Hopp |
81c285 |
char_u *pat;
|
|
Karsten Hopp |
81c285 |
char_u *pat_end; /* first char after pattern or NULL */
|
|
Karsten Hopp |
81c285 |
char *allow_dirs; /* Result passed back out in here */
|
|
Karsten Hopp |
81c285 |
! int no_bslash; /* Don't use a backward slash as pathsep */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int size;
|
|
Karsten Hopp |
81c285 |
char_u *endp;
|
|
Karsten Hopp |
81c285 |
--- 9593,9604 ----
|
|
Karsten Hopp |
81c285 |
*
|
|
Karsten Hopp |
81c285 |
* Returns NULL when out of memory.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
file_pat_to_reg_pat(pat, pat_end, allow_dirs, no_bslash)
|
|
Karsten Hopp |
81c285 |
char_u *pat;
|
|
Karsten Hopp |
81c285 |
char_u *pat_end; /* first char after pattern or NULL */
|
|
Karsten Hopp |
81c285 |
char *allow_dirs; /* Result passed back out in here */
|
|
Karsten Hopp |
81c285 |
! int no_bslash UNUSED; /* Don't use a backward slash as pathsep */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int size;
|
|
Karsten Hopp |
81c285 |
char_u *endp;
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.173/src/misc1.c 2009-04-29 11:00:09.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/misc1.c 2009-05-15 20:59:08.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2188,2199 ****
|
|
Karsten Hopp |
81c285 |
*
|
|
Karsten Hopp |
81c285 |
* return FAIL for failure, OK otherwise
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
int
|
|
Karsten Hopp |
81c285 |
del_bytes(count, fixpos_arg, use_delcombine)
|
|
Karsten Hopp |
81c285 |
long count;
|
|
Karsten Hopp |
81c285 |
int fixpos_arg;
|
|
Karsten Hopp |
81c285 |
! int use_delcombine; /* 'delcombine' option applies */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char_u *oldp, *newp;
|
|
Karsten Hopp |
81c285 |
colnr_T oldlen;
|
|
Karsten Hopp |
81c285 |
--- 2188,2198 ----
|
|
Karsten Hopp |
81c285 |
*
|
|
Karsten Hopp |
81c285 |
* return FAIL for failure, OK otherwise
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
int
|
|
Karsten Hopp |
81c285 |
del_bytes(count, fixpos_arg, use_delcombine)
|
|
Karsten Hopp |
81c285 |
long count;
|
|
Karsten Hopp |
81c285 |
int fixpos_arg;
|
|
Karsten Hopp |
81c285 |
! int use_delcombine UNUSED; /* 'delcombine' option applies */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char_u *oldp, *newp;
|
|
Karsten Hopp |
81c285 |
colnr_T oldlen;
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.173/src/move.c 2008-11-15 16:05:30.000000000 +0100
|
|
Karsten Hopp |
81c285 |
--- src/move.c 2009-05-15 21:00:06.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1238,1248 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Scroll the current window down by "line_count" logical lines. "CTRL-Y"
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
scrolldown(line_count, byfold)
|
|
Karsten Hopp |
81c285 |
long line_count;
|
|
Karsten Hopp |
81c285 |
! int byfold; /* TRUE: count a closed fold as one line */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
long done = 0; /* total # of physical lines done */
|
|
Karsten Hopp |
81c285 |
int wrow;
|
|
Karsten Hopp |
81c285 |
--- 1238,1247 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Scroll the current window down by "line_count" logical lines. "CTRL-Y"
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
scrolldown(line_count, byfold)
|
|
Karsten Hopp |
81c285 |
long line_count;
|
|
Karsten Hopp |
81c285 |
! int byfold UNUSED; /* TRUE: count a closed fold as one line */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
long done = 0; /* total # of physical lines done */
|
|
Karsten Hopp |
81c285 |
int wrow;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1349,1359 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Scroll the current window up by "line_count" logical lines. "CTRL-E"
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
scrollup(line_count, byfold)
|
|
Karsten Hopp |
81c285 |
long line_count;
|
|
Karsten Hopp |
81c285 |
! int byfold; /* TRUE: count a closed fold as one line */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#if defined(FEAT_FOLDING) || defined(FEAT_DIFF)
|
|
Karsten Hopp |
81c285 |
linenr_T lnum;
|
|
Karsten Hopp |
81c285 |
--- 1348,1357 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Scroll the current window up by "line_count" logical lines. "CTRL-E"
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
scrollup(line_count, byfold)
|
|
Karsten Hopp |
81c285 |
long line_count;
|
|
Karsten Hopp |
81c285 |
! int byfold UNUSED; /* TRUE: count a closed fold as one line */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#if defined(FEAT_FOLDING) || defined(FEAT_DIFF)
|
|
Karsten Hopp |
81c285 |
linenr_T lnum;
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.173/src/normal.c 2009-04-29 17:39:17.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/normal.c 2009-05-15 21:08:07.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 493,506 ****
|
|
Karsten Hopp |
81c285 |
int i;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/* Fill the index table with a one to one relation. */
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < NV_CMDS_SIZE; ++i)
|
|
Karsten Hopp |
81c285 |
nv_cmd_idx[i] = i;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/* Sort the commands by the command character. */
|
|
Karsten Hopp |
81c285 |
qsort((void *)&nv_cmd_idx, (size_t)NV_CMDS_SIZE, sizeof(short), nv_compare);
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/* Find the first entry that can't be indexed by the command character. */
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < NV_CMDS_SIZE; ++i)
|
|
Karsten Hopp |
81c285 |
if (i != nv_cmds[nv_cmd_idx[i]].cmd_char)
|
|
Karsten Hopp |
81c285 |
break;
|
|
Karsten Hopp |
81c285 |
nv_max_linear = i - 1;
|
|
Karsten Hopp |
81c285 |
--- 493,506 ----
|
|
Karsten Hopp |
81c285 |
int i;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/* Fill the index table with a one to one relation. */
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < (int)NV_CMDS_SIZE; ++i)
|
|
Karsten Hopp |
81c285 |
nv_cmd_idx[i] = i;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/* Sort the commands by the command character. */
|
|
Karsten Hopp |
81c285 |
qsort((void *)&nv_cmd_idx, (size_t)NV_CMDS_SIZE, sizeof(short), nv_compare);
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/* Find the first entry that can't be indexed by the command character. */
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < (int)NV_CMDS_SIZE; ++i)
|
|
Karsten Hopp |
81c285 |
if (i != nv_cmds[nv_cmd_idx[i]].cmd_char)
|
|
Karsten Hopp |
81c285 |
break;
|
|
Karsten Hopp |
81c285 |
nv_max_linear = i - 1;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 561,571 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Execute a command in Normal mode.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
normal_cmd(oap, toplevel)
|
|
Karsten Hopp |
81c285 |
oparg_T *oap;
|
|
Karsten Hopp |
81c285 |
! int toplevel; /* TRUE when called from main() */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
cmdarg_T ca; /* command arguments */
|
|
Karsten Hopp |
81c285 |
int c;
|
|
Karsten Hopp |
81c285 |
--- 561,570 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Execute a command in Normal mode.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
normal_cmd(oap, toplevel)
|
|
Karsten Hopp |
81c285 |
oparg_T *oap;
|
|
Karsten Hopp |
81c285 |
! int toplevel UNUSED; /* TRUE when called from main() */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
cmdarg_T ca; /* command arguments */
|
|
Karsten Hopp |
81c285 |
int c;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2188,2197 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Handle the "g@" operator: call 'operatorfunc'.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
op_function(oap)
|
|
Karsten Hopp |
81c285 |
! oparg_T *oap;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_EVAL
|
|
Karsten Hopp |
81c285 |
char_u *(argv[1]);
|
|
Karsten Hopp |
81c285 |
--- 2187,2195 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Handle the "g@" operator: call 'operatorfunc'.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
op_function(oap)
|
|
Karsten Hopp |
81c285 |
! oparg_T *oap UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_EVAL
|
|
Karsten Hopp |
81c285 |
char_u *(argv[1]);
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 4100,4109 ****
|
|
Karsten Hopp |
81c285 |
* Command character that doesn't do anything, but unlike nv_ignore() does
|
|
Karsten Hopp |
81c285 |
* start edit(). Used for "startinsert" executed while starting up.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
nv_nop(cap)
|
|
Karsten Hopp |
81c285 |
! cmdarg_T *cap;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 4098,4106 ----
|
|
Karsten Hopp |
81c285 |
* Command character that doesn't do anything, but unlike nv_ignore() does
|
|
Karsten Hopp |
81c285 |
* start edit(). Used for "startinsert" executed while starting up.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
nv_nop(cap)
|
|
Karsten Hopp |
81c285 |
! cmdarg_T *cap UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 5241,5247 ****
|
|
Karsten Hopp |
81c285 |
if (cap->oap->op_type != OP_NOP
|
|
Karsten Hopp |
81c285 |
&& (cap->oap->start.lnum > curbuf->b_ml.ml_line_count
|
|
Karsten Hopp |
81c285 |
|| cap->oap->start.col >
|
|
Karsten Hopp |
81c285 |
! STRLEN(ml_get(cap->oap->start.lnum))))
|
|
Karsten Hopp |
81c285 |
clearopbeep(cap->oap);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
--- 5238,5244 ----
|
|
Karsten Hopp |
81c285 |
if (cap->oap->op_type != OP_NOP
|
|
Karsten Hopp |
81c285 |
&& (cap->oap->start.lnum > curbuf->b_ml.ml_line_count
|
|
Karsten Hopp |
81c285 |
|| cap->oap->start.col >
|
|
Karsten Hopp |
81c285 |
! (colnr_T)STRLEN(ml_get(cap->oap->start.lnum))))
|
|
Karsten Hopp |
81c285 |
clearopbeep(cap->oap);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 5816,5822 ****
|
|
Karsten Hopp |
81c285 |
for (n = cap->count1; n > 0; --n)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if ((!PAST_LINE && oneright() == FAIL)
|
|
Karsten Hopp |
81c285 |
! || (PAST_LINE && *ml_get_cursor() == NUL))
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* <Space> wraps to next line if 'whichwrap' has 's'.
|
|
Karsten Hopp |
81c285 |
--- 5813,5822 ----
|
|
Karsten Hopp |
81c285 |
for (n = cap->count1; n > 0; --n)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if ((!PAST_LINE && oneright() == FAIL)
|
|
Karsten Hopp |
81c285 |
! #ifdef FEAT_VISUAL
|
|
Karsten Hopp |
81c285 |
! || (PAST_LINE && *ml_get_cursor() == NUL)
|
|
Karsten Hopp |
81c285 |
! #endif
|
|
Karsten Hopp |
81c285 |
! )
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* <Space> wraps to next line if 'whichwrap' has 's'.
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.173/src/option.c 2009-03-18 15:40:03.000000000 +0100
|
|
Karsten Hopp |
81c285 |
--- src/option.c 2009-05-15 21:08:50.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 5302,5315 ****
|
|
Karsten Hopp |
81c285 |
* When "set_sid" is zero set the scriptID to current_SID. When "set_sid" is
|
|
Karsten Hopp |
81c285 |
* SID_NONE don't set the scriptID. Otherwise set the scriptID to "set_sid".
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
set_string_option_direct(name, opt_idx, val, opt_flags, set_sid)
|
|
Karsten Hopp |
81c285 |
char_u *name;
|
|
Karsten Hopp |
81c285 |
int opt_idx;
|
|
Karsten Hopp |
81c285 |
char_u *val;
|
|
Karsten Hopp |
81c285 |
int opt_flags; /* OPT_FREE, OPT_LOCAL and/or OPT_GLOBAL */
|
|
Karsten Hopp |
81c285 |
! int set_sid;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char_u *s;
|
|
Karsten Hopp |
81c285 |
char_u **varp;
|
|
Karsten Hopp |
81c285 |
--- 5302,5314 ----
|
|
Karsten Hopp |
81c285 |
* When "set_sid" is zero set the scriptID to current_SID. When "set_sid" is
|
|
Karsten Hopp |
81c285 |
* SID_NONE don't set the scriptID. Otherwise set the scriptID to "set_sid".
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
set_string_option_direct(name, opt_idx, val, opt_flags, set_sid)
|
|
Karsten Hopp |
81c285 |
char_u *name;
|
|
Karsten Hopp |
81c285 |
int opt_idx;
|
|
Karsten Hopp |
81c285 |
char_u *val;
|
|
Karsten Hopp |
81c285 |
int opt_flags; /* OPT_FREE, OPT_LOCAL and/or OPT_GLOBAL */
|
|
Karsten Hopp |
81c285 |
! int set_sid UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char_u *s;
|
|
Karsten Hopp |
81c285 |
char_u **varp;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 9357,9366 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Check for NULL pointers in a winopt_T and replace them with empty_option.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
check_winopt(wop)
|
|
Karsten Hopp |
81c285 |
! winopt_T *wop;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_FOLDING
|
|
Karsten Hopp |
81c285 |
check_string_option(&wop->wo_fdi);
|
|
Karsten Hopp |
81c285 |
--- 9356,9364 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Check for NULL pointers in a winopt_T and replace them with empty_option.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
check_winopt(wop)
|
|
Karsten Hopp |
81c285 |
! winopt_T *wop UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_FOLDING
|
|
Karsten Hopp |
81c285 |
check_string_option(&wop->wo_fdi);
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 9382,9391 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Free the allocated memory inside a winopt_T.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
clear_winopt(wop)
|
|
Karsten Hopp |
81c285 |
! winopt_T *wop;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_FOLDING
|
|
Karsten Hopp |
81c285 |
clear_string_option(&wop->wo_fdi);
|
|
Karsten Hopp |
81c285 |
--- 9380,9388 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Free the allocated memory inside a winopt_T.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
clear_winopt(wop)
|
|
Karsten Hopp |
81c285 |
! winopt_T *wop UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_FOLDING
|
|
Karsten Hopp |
81c285 |
clear_string_option(&wop->wo_fdi);
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.173/src/os_unix.c 2009-05-13 12:46:36.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/os_unix.c 2009-05-15 21:13:43.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 458,467 ****
|
|
Karsten Hopp |
81c285 |
* Return total amount of memory available in Kbyte.
|
|
Karsten Hopp |
81c285 |
* Doesn't change when memory has been allocated.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
long_u
|
|
Karsten Hopp |
81c285 |
mch_total_mem(special)
|
|
Karsten Hopp |
81c285 |
! int special;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
# ifdef __EMX__
|
|
Karsten Hopp |
81c285 |
return ulimit(3, 0L) >> 10; /* always 32MB? */
|
|
Karsten Hopp |
81c285 |
--- 458,466 ----
|
|
Karsten Hopp |
81c285 |
* Return total amount of memory available in Kbyte.
|
|
Karsten Hopp |
81c285 |
* Doesn't change when memory has been allocated.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
long_u
|
|
Karsten Hopp |
81c285 |
mch_total_mem(special)
|
|
Karsten Hopp |
81c285 |
! int special UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
# ifdef __EMX__
|
|
Karsten Hopp |
81c285 |
return ulimit(3, 0L) >> 10; /* always 32MB? */
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 815,821 ****
|
|
Karsten Hopp |
81c285 |
* Let me try it with a few tricky defines from my own osdef.h (jw).
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
#if defined(SIGWINCH)
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static RETSIGTYPE
|
|
Karsten Hopp |
81c285 |
sig_winch SIGDEFARG(sigarg)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
--- 814,819 ----
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1355,1365 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Check_win checks whether we have an interactive stdout.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
int
|
|
Karsten Hopp |
81c285 |
mch_check_win(argc, argv)
|
|
Karsten Hopp |
81c285 |
! int argc;
|
|
Karsten Hopp |
81c285 |
! char **argv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef OS2
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
--- 1353,1362 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Check_win checks whether we have an interactive stdout.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
int
|
|
Karsten Hopp |
81c285 |
mch_check_win(argc, argv)
|
|
Karsten Hopp |
81c285 |
! int argc UNUSED;
|
|
Karsten Hopp |
81c285 |
! char **argv UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef OS2
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2467,2473 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/* Catch file names which are too long. */
|
|
Karsten Hopp |
81c285 |
! if (retval == FAIL || STRLEN(buf) + STRLEN(fname) >= len)
|
|
Karsten Hopp |
81c285 |
return FAIL;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/* Do not append ".", "/dir/." is equal to "/dir". */
|
|
Karsten Hopp |
81c285 |
--- 2464,2470 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/* Catch file names which are too long. */
|
|
Karsten Hopp |
81c285 |
! if (retval == FAIL || (int)(STRLEN(buf) + STRLEN(fname)) >= len)
|
|
Karsten Hopp |
81c285 |
return FAIL;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/* Do not append ".", "/dir/." is equal to "/dir". */
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2686,2692 ****
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
vim_acl_T
|
|
Karsten Hopp |
81c285 |
mch_get_acl(fname)
|
|
Karsten Hopp |
81c285 |
! char_u *fname;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
vim_acl_T ret = NULL;
|
|
Karsten Hopp |
81c285 |
#ifdef HAVE_POSIX_ACL
|
|
Karsten Hopp |
81c285 |
--- 2683,2689 ----
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
vim_acl_T
|
|
Karsten Hopp |
81c285 |
mch_get_acl(fname)
|
|
Karsten Hopp |
81c285 |
! char_u *fname UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
vim_acl_T ret = NULL;
|
|
Karsten Hopp |
81c285 |
#ifdef HAVE_POSIX_ACL
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2746,2752 ****
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
mch_set_acl(fname, aclent)
|
|
Karsten Hopp |
81c285 |
! char_u *fname;
|
|
Karsten Hopp |
81c285 |
vim_acl_T aclent;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (aclent == NULL)
|
|
Karsten Hopp |
81c285 |
--- 2743,2749 ----
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
mch_set_acl(fname, aclent)
|
|
Karsten Hopp |
81c285 |
! char_u *fname UNUSED;
|
|
Karsten Hopp |
81c285 |
vim_acl_T aclent;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (aclent == NULL)
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2789,2798 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Set hidden flag for "name".
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
mch_hide(name)
|
|
Karsten Hopp |
81c285 |
! char_u *name;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/* can't hide a file */
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
--- 2786,2794 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Set hidden flag for "name".
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
mch_hide(name)
|
|
Karsten Hopp |
81c285 |
! char_u *name UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/* can't hide a file */
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 3481,3490 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* set screen mode, always fails.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
int
|
|
Karsten Hopp |
81c285 |
mch_screenmode(arg)
|
|
Karsten Hopp |
81c285 |
! char_u *arg;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
EMSG(_(e_screenmode));
|
|
Karsten Hopp |
81c285 |
return FAIL;
|
|
Karsten Hopp |
81c285 |
--- 3477,3485 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* set screen mode, always fails.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
int
|
|
Karsten Hopp |
81c285 |
mch_screenmode(arg)
|
|
Karsten Hopp |
81c285 |
! char_u *arg UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
EMSG(_(e_screenmode));
|
|
Karsten Hopp |
81c285 |
return FAIL;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 4189,4197 ****
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
s = vim_strchr(lp + written, NL);
|
|
Karsten Hopp |
81c285 |
len = write(toshell_fd, (char *)lp + written,
|
|
Karsten Hopp |
81c285 |
! s == NULL ? l : s - (lp + written));
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
! if (len == l)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/* Finished a line, add a NL, unless this line
|
|
Karsten Hopp |
81c285 |
* should not have one. */
|
|
Karsten Hopp |
81c285 |
--- 4184,4193 ----
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
s = vim_strchr(lp + written, NL);
|
|
Karsten Hopp |
81c285 |
len = write(toshell_fd, (char *)lp + written,
|
|
Karsten Hopp |
81c285 |
! s == NULL ? l
|
|
Karsten Hopp |
81c285 |
! : (size_t)(s - (lp + written)));
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
! if (len == (int)l)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/* Finished a line, add a NL, unless this line
|
|
Karsten Hopp |
81c285 |
* should not have one. */
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 4746,4752 ****
|
|
Karsten Hopp |
81c285 |
* Returns also, when a request from Sniff is waiting -- toni.
|
|
Karsten Hopp |
81c285 |
* Or when a Linux GPM mouse event is waiting.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
#if defined(__BEOS__)
|
|
Karsten Hopp |
81c285 |
int
|
|
Karsten Hopp |
81c285 |
#else
|
|
Karsten Hopp |
81c285 |
--- 4742,4747 ----
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 4755,4761 ****
|
|
Karsten Hopp |
81c285 |
RealWaitForChar(fd, msec, check_for_gpm)
|
|
Karsten Hopp |
81c285 |
int fd;
|
|
Karsten Hopp |
81c285 |
long msec;
|
|
Karsten Hopp |
81c285 |
! int *check_for_gpm;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int ret;
|
|
Karsten Hopp |
81c285 |
#if defined(FEAT_XCLIPBOARD) || defined(USE_XSMP) || defined(FEAT_MZSCHEME)
|
|
Karsten Hopp |
81c285 |
--- 4750,4756 ----
|
|
Karsten Hopp |
81c285 |
RealWaitForChar(fd, msec, check_for_gpm)
|
|
Karsten Hopp |
81c285 |
int fd;
|
|
Karsten Hopp |
81c285 |
long msec;
|
|
Karsten Hopp |
81c285 |
! int *check_for_gpm UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int ret;
|
|
Karsten Hopp |
81c285 |
#if defined(FEAT_XCLIPBOARD) || defined(USE_XSMP) || defined(FEAT_MZSCHEME)
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 5572,5578 ****
|
|
Karsten Hopp |
81c285 |
i = fread((char *)buffer, 1, len, fd);
|
|
Karsten Hopp |
81c285 |
fclose(fd);
|
|
Karsten Hopp |
81c285 |
mch_remove(tempname);
|
|
Karsten Hopp |
81c285 |
! if (i != len)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/* unexpected read error */
|
|
Karsten Hopp |
81c285 |
EMSG2(_(e_notread), tempname);
|
|
Karsten Hopp |
81c285 |
--- 5567,5573 ----
|
|
Karsten Hopp |
81c285 |
i = fread((char *)buffer, 1, len, fd);
|
|
Karsten Hopp |
81c285 |
fclose(fd);
|
|
Karsten Hopp |
81c285 |
mch_remove(tempname);
|
|
Karsten Hopp |
81c285 |
! if (i != (int)len)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/* unexpected read error */
|
|
Karsten Hopp |
81c285 |
EMSG2(_(e_notread), tempname);
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 5633,5639 ****
|
|
Karsten Hopp |
81c285 |
if (shell_style == STYLE_PRINT && !did_find_nul)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/* If there is a NUL, set did_find_nul, else set check_spaces */
|
|
Karsten Hopp |
81c285 |
! if (len && (int)STRLEN(buffer) < len - 1)
|
|
Karsten Hopp |
81c285 |
did_find_nul = TRUE;
|
|
Karsten Hopp |
81c285 |
else
|
|
Karsten Hopp |
81c285 |
check_spaces = TRUE;
|
|
Karsten Hopp |
81c285 |
--- 5628,5634 ----
|
|
Karsten Hopp |
81c285 |
if (shell_style == STYLE_PRINT && !did_find_nul)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/* If there is a NUL, set did_find_nul, else set check_spaces */
|
|
Karsten Hopp |
81c285 |
! if (len && (int)STRLEN(buffer) < (int)len - 1)
|
|
Karsten Hopp |
81c285 |
did_find_nul = TRUE;
|
|
Karsten Hopp |
81c285 |
else
|
|
Karsten Hopp |
81c285 |
check_spaces = TRUE;
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.173/src/os_unix.h 2009-05-13 12:46:36.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/os_unix.h 2009-05-15 21:10:31.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 126,132 ****
|
|
Karsten Hopp |
81c285 |
# define SIGDUMMYARG 0, 0, (struct sigcontext *)0
|
|
Karsten Hopp |
81c285 |
# else
|
|
Karsten Hopp |
81c285 |
# define SIGPROTOARG (int)
|
|
Karsten Hopp |
81c285 |
! # define SIGDEFARG(s) (s) int s;
|
|
Karsten Hopp |
81c285 |
# define SIGDUMMYARG 0
|
|
Karsten Hopp |
81c285 |
# endif
|
|
Karsten Hopp |
81c285 |
#else
|
|
Karsten Hopp |
81c285 |
--- 126,132 ----
|
|
Karsten Hopp |
81c285 |
# define SIGDUMMYARG 0, 0, (struct sigcontext *)0
|
|
Karsten Hopp |
81c285 |
# else
|
|
Karsten Hopp |
81c285 |
# define SIGPROTOARG (int)
|
|
Karsten Hopp |
81c285 |
! # define SIGDEFARG(s) (s) int s UNUSED;
|
|
Karsten Hopp |
81c285 |
# define SIGDUMMYARG 0
|
|
Karsten Hopp |
81c285 |
# endif
|
|
Karsten Hopp |
81c285 |
#else
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.173/src/regexp.c 2009-02-21 22:03:06.000000000 +0100
|
|
Karsten Hopp |
81c285 |
--- src/regexp.c 2009-05-15 21:14:18.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 471,477 ****
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
if ((*pp)[1] == ':')
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < sizeof(class_names) / sizeof(*class_names); ++i)
|
|
Karsten Hopp |
81c285 |
if (STRNCMP(*pp + 2, class_names[i], STRLEN(class_names[i])) == 0)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
*pp += STRLEN(class_names[i]) + 2;
|
|
Karsten Hopp |
81c285 |
--- 471,477 ----
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
if ((*pp)[1] == ':')
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < (int)(sizeof(class_names) / sizeof(*class_names)); ++i)
|
|
Karsten Hopp |
81c285 |
if (STRNCMP(*pp + 2, class_names[i], STRLEN(class_names[i])) == 0)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
*pp += STRLEN(class_names[i]) + 2;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 3362,3373 ****
|
|
Karsten Hopp |
81c285 |
* Match a regexp against a string ("line" points to the string) or multiple
|
|
Karsten Hopp |
81c285 |
* lines ("line" is NULL, use reg_getline()).
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static long
|
|
Karsten Hopp |
81c285 |
vim_regexec_both(line, col, tm)
|
|
Karsten Hopp |
81c285 |
char_u *line;
|
|
Karsten Hopp |
81c285 |
colnr_T col; /* column to start looking for match */
|
|
Karsten Hopp |
81c285 |
! proftime_T *tm; /* timeout limit or NULL */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
regprog_T *prog;
|
|
Karsten Hopp |
81c285 |
char_u *s;
|
|
Karsten Hopp |
81c285 |
--- 3362,3372 ----
|
|
Karsten Hopp |
81c285 |
* Match a regexp against a string ("line" points to the string) or multiple
|
|
Karsten Hopp |
81c285 |
* lines ("line" is NULL, use reg_getline()).
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static long
|
|
Karsten Hopp |
81c285 |
vim_regexec_both(line, col, tm)
|
|
Karsten Hopp |
81c285 |
char_u *line;
|
|
Karsten Hopp |
81c285 |
colnr_T col; /* column to start looking for match */
|
|
Karsten Hopp |
81c285 |
! proftime_T *tm UNUSED; /* timeout limit or NULL */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
regprog_T *prog;
|
|
Karsten Hopp |
81c285 |
char_u *s;
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.173/src/search.c 2009-04-22 18:43:06.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/search.c 2009-05-15 21:16:36.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 522,528 ****
|
|
Karsten Hopp |
81c285 |
* When FEAT_EVAL is defined, returns the index of the first matching
|
|
Karsten Hopp |
81c285 |
* subpattern plus one; one if there was none.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
int
|
|
Karsten Hopp |
81c285 |
searchit(win, buf, pos, dir, pat, count, options, pat_use, stop_lnum, tm)
|
|
Karsten Hopp |
81c285 |
win_T *win; /* window to search in; can be NULL for a
|
|
Karsten Hopp |
81c285 |
--- 522,527 ----
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 535,541 ****
|
|
Karsten Hopp |
81c285 |
int options;
|
|
Karsten Hopp |
81c285 |
int pat_use; /* which pattern to use when "pat" is empty */
|
|
Karsten Hopp |
81c285 |
linenr_T stop_lnum; /* stop after this line number when != 0 */
|
|
Karsten Hopp |
81c285 |
! proftime_T *tm; /* timeout limit or NULL */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int found;
|
|
Karsten Hopp |
81c285 |
linenr_T lnum; /* no init to shut up Apollo cc */
|
|
Karsten Hopp |
81c285 |
--- 534,540 ----
|
|
Karsten Hopp |
81c285 |
int options;
|
|
Karsten Hopp |
81c285 |
int pat_use; /* which pattern to use when "pat" is empty */
|
|
Karsten Hopp |
81c285 |
linenr_T stop_lnum; /* stop after this line number when != 0 */
|
|
Karsten Hopp |
81c285 |
! proftime_T *tm UNUSED; /* timeout limit or NULL */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int found;
|
|
Karsten Hopp |
81c285 |
linenr_T lnum; /* no init to shut up Apollo cc */
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 554,561 ****
|
|
Karsten Hopp |
81c285 |
int save_called_emsg = called_emsg;
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_SEARCH_EXTRA
|
|
Karsten Hopp |
81c285 |
int break_loop = FALSE;
|
|
Karsten Hopp |
81c285 |
- #else
|
|
Karsten Hopp |
81c285 |
- # define break_loop FALSE
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
if (search_regcomp(pat, RE_SEARCH, pat_use,
|
|
Karsten Hopp |
81c285 |
--- 553,558 ----
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 940,946 ****
|
|
Karsten Hopp |
81c285 |
* twice.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
if (!p_ws || stop_lnum != 0 || got_int || called_emsg
|
|
Karsten Hopp |
81c285 |
! || break_loop || found || loop)
|
|
Karsten Hopp |
81c285 |
break;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
--- 937,946 ----
|
|
Karsten Hopp |
81c285 |
* twice.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
if (!p_ws || stop_lnum != 0 || got_int || called_emsg
|
|
Karsten Hopp |
81c285 |
! #ifdef FEAT_SEARCH_EXTRA
|
|
Karsten Hopp |
81c285 |
! || break_loop
|
|
Karsten Hopp |
81c285 |
! #endif
|
|
Karsten Hopp |
81c285 |
! || found || loop)
|
|
Karsten Hopp |
81c285 |
break;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 958,964 ****
|
|
Karsten Hopp |
81c285 |
give_warning((char_u *)_(dir == BACKWARD
|
|
Karsten Hopp |
81c285 |
? top_bot_msg : bot_top_msg), TRUE);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
! if (got_int || called_emsg || break_loop)
|
|
Karsten Hopp |
81c285 |
break;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
while (--count > 0 && found); /* stop after count matches or no match */
|
|
Karsten Hopp |
81c285 |
--- 958,968 ----
|
|
Karsten Hopp |
81c285 |
give_warning((char_u *)_(dir == BACKWARD
|
|
Karsten Hopp |
81c285 |
? top_bot_msg : bot_top_msg), TRUE);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
! if (got_int || called_emsg
|
|
Karsten Hopp |
81c285 |
! #ifdef FEAT_SEARCH_EXTRA
|
|
Karsten Hopp |
81c285 |
! || break_loop
|
|
Karsten Hopp |
81c285 |
! #endif
|
|
Karsten Hopp |
81c285 |
! )
|
|
Karsten Hopp |
81c285 |
break;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
while (--count > 0 && found); /* stop after count matches or no match */
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.173/src/tag.c 2009-02-23 00:53:35.000000000 +0100
|
|
Karsten Hopp |
81c285 |
--- src/tag.c 2009-05-15 21:16:59.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1105,1114 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Print the tag stack
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
do_tags(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int i;
|
|
Karsten Hopp |
81c285 |
char_u *name;
|
|
Karsten Hopp |
81c285 |
--- 1105,1113 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Print the tag stack
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
do_tags(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int i;
|
|
Karsten Hopp |
81c285 |
char_u *name;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2530,2540 ****
|
|
Karsten Hopp |
81c285 |
* Callback function for finding all "tags" and "tags-??" files in
|
|
Karsten Hopp |
81c285 |
* 'runtimepath' doc directories.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
found_tagfile_cb(fname, cookie)
|
|
Karsten Hopp |
81c285 |
char_u *fname;
|
|
Karsten Hopp |
81c285 |
! void *cookie;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (ga_grow(&tag_fnames, 1) == OK)
|
|
Karsten Hopp |
81c285 |
((char_u **)(tag_fnames.ga_data))[tag_fnames.ga_len++] =
|
|
Karsten Hopp |
81c285 |
--- 2529,2538 ----
|
|
Karsten Hopp |
81c285 |
* Callback function for finding all "tags" and "tags-??" files in
|
|
Karsten Hopp |
81c285 |
* 'runtimepath' doc directories.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
found_tagfile_cb(fname, cookie)
|
|
Karsten Hopp |
81c285 |
char_u *fname;
|
|
Karsten Hopp |
81c285 |
! void *cookie UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (ga_grow(&tag_fnames, 1) == OK)
|
|
Karsten Hopp |
81c285 |
((char_u **)(tag_fnames.ga_data))[tag_fnames.ga_len++] =
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.173/src/version.c 2009-05-14 22:19:19.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/version.c 2009-05-15 21:21:44.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 |
+ 174,
|
|
Karsten Hopp |
81c285 |
/**/
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--
|
|
Karsten Hopp |
81c285 |
TERRY GILLIAM PLAYED: PATSY (ARTHUR'S TRUSTY STEED), THE GREEN KNIGHT
|
|
Karsten Hopp |
81c285 |
SOOTHSAYER, BRIDGEKEEPER, SIR GAWAIN (THE FIRST TO BE
|
|
Karsten Hopp |
81c285 |
KILLED BY THE RABBIT)
|
|
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 ///
|