|
Karsten Hopp |
81c285 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
81c285 |
Subject: Patch 7.2.177
|
|
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.177
|
|
Karsten Hopp |
81c285 |
Problem: Compiler warnings when using -Wextra
|
|
Karsten Hopp |
81c285 |
Solution: Add UNUSED and type casts.
|
|
Karsten Hopp |
81c285 |
Files: src/eval.c, src/ex_docmd.c, src/ex_eval.c, src/ex_getln.c,
|
|
Karsten Hopp |
81c285 |
src/fileio.c, src/hardcopy.c, src/if_cscope.c, src/if_xcmdsrv.c,
|
|
Karsten Hopp |
81c285 |
src/farsi.c, src/mark.c, src/menu.c
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.176/src/eval.c 2009-05-15 21:31:11.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/eval.c 2009-05-16 16:58:30.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 3772,3778 ****
|
|
Karsten Hopp |
81c285 |
* Function given to ExpandGeneric() to obtain the list of user defined
|
|
Karsten Hopp |
81c285 |
* (global/buffer/window/built-in) variable names.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
get_user_var_name(xp, idx)
|
|
Karsten Hopp |
81c285 |
expand_T *xp;
|
|
Karsten Hopp |
81c285 |
--- 3772,3777 ----
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 7787,7793 ****
|
|
Karsten Hopp |
81c285 |
* Function given to ExpandGeneric() to obtain the list of internal or
|
|
Karsten Hopp |
81c285 |
* user defined variable or function names.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
get_expr_name(xp, idx)
|
|
Karsten Hopp |
81c285 |
expand_T *xp;
|
|
Karsten Hopp |
81c285 |
--- 7786,7791 ----
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 8655,8664 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "byte2line(byte)" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_byte2line(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifndef FEAT_BYTEOFF
|
|
Karsten Hopp |
81c285 |
--- 8653,8661 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "byte2line(byte)" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_byte2line(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifndef FEAT_BYTEOFF
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 8678,8684 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "byteidx()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_byteidx(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
--- 8675,8680 ----
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 8852,8858 ****
|
|
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 |
clear_matches(curwin);
|
|
Karsten Hopp |
81c285 |
--- 8848,8854 ----
|
|
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 UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_SEARCH_EXTRA
|
|
Karsten Hopp |
81c285 |
clear_matches(curwin);
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 8916,8926 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "complete()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_complete(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int startcol;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 8912,8921 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "complete()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_complete(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int startcol;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 8951,8957 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "complete_add()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_complete_add(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
--- 8946,8951 ----
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 8963,8972 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "complete_check()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_complete_check(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int saved = RedrawingDisabled;
|
|
Karsten Hopp |
81c285 |
--- 8957,8965 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "complete_check()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_complete_check(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int saved = RedrawingDisabled;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 8981,8991 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "confirm(message, buttons[, default [, type]])" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_confirm(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG)
|
|
Karsten Hopp |
81c285 |
char_u *message;
|
|
Karsten Hopp |
81c285 |
--- 8974,8983 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "confirm(message, buttons[, default [, type]])" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_confirm(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG)
|
|
Karsten Hopp |
81c285 |
char_u *message;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 9150,9160 ****
|
|
Karsten Hopp |
81c285 |
*
|
|
Karsten Hopp |
81c285 |
* Checks the existence of a cscope connection.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_cscope_connection(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_CSCOPE
|
|
Karsten Hopp |
81c285 |
int num = 0;
|
|
Karsten Hopp |
81c285 |
--- 9142,9151 ----
|
|
Karsten Hopp |
81c285 |
*
|
|
Karsten Hopp |
81c285 |
* Checks the existence of a cscope connection.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_cscope_connection(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_CSCOPE
|
|
Karsten Hopp |
81c285 |
int num = 0;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 9181,9187 ****
|
|
Karsten Hopp |
81c285 |
* Moves the cursor to the specified line and column.
|
|
Karsten Hopp |
81c285 |
* Returns 0 when the position could be set, -1 otherwise.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_cursor(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
--- 9172,9177 ----
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 9275,9285 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "did_filetype()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_did_filetype(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_AUTOCMD
|
|
Karsten Hopp |
81c285 |
rettv->vval.v_number = did_filetype;
|
|
Karsten Hopp |
81c285 |
--- 9265,9274 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "did_filetype()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_did_filetype(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_AUTOCMD
|
|
Karsten Hopp |
81c285 |
rettv->vval.v_number = did_filetype;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 9289,9299 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "diff_filler()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_diff_filler(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_DIFF
|
|
Karsten Hopp |
81c285 |
rettv->vval.v_number = diff_check_fill(curwin, get_tv_lnum(argvars));
|
|
Karsten Hopp |
81c285 |
--- 9278,9287 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "diff_filler()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_diff_filler(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_DIFF
|
|
Karsten Hopp |
81c285 |
rettv->vval.v_number = diff_check_fill(curwin, get_tv_lnum(argvars));
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 9303,9313 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "diff_hlID()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_diff_hlID(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_DIFF
|
|
Karsten Hopp |
81c285 |
linenr_T lnum = get_tv_lnum(argvars);
|
|
Karsten Hopp |
81c285 |
--- 9291,9300 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "diff_hlID()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_diff_hlID(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_DIFF
|
|
Karsten Hopp |
81c285 |
linenr_T lnum = get_tv_lnum(argvars);
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 9420,9426 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "eval()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_eval(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
--- 9407,9412 ----
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 9444,9453 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "eventhandler()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_eventhandler(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
rettv->vval.v_number = vgetc_busy;
|
|
Karsten Hopp |
81c285 |
--- 9430,9438 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "eventhandler()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_eventhandler(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 = vgetc_busy;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 9704,9714 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "feedkeys()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_feedkeys(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int remap = TRUE;
|
|
Karsten Hopp |
81c285 |
char_u *keys, *flags;
|
|
Karsten Hopp |
81c285 |
--- 9689,9698 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "feedkeys()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_feedkeys(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int remap = TRUE;
|
|
Karsten Hopp |
81c285 |
char_u *keys, *flags;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 10210,10219 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "foldtext()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_foldtext(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_FOLDING
|
|
Karsten Hopp |
81c285 |
--- 10194,10202 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "foldtext()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_foldtext(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_FOLDING
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 10278,10287 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "foldtextresult(lnum)" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_foldtextresult(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_FOLDING
|
|
Karsten Hopp |
81c285 |
--- 10261,10269 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "foldtextresult(lnum)" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_foldtextresult(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_FOLDING
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 10314,10324 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "foreground()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_foreground(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_GUI
|
|
Karsten Hopp |
81c285 |
if (gui.in_use)
|
|
Karsten Hopp |
81c285 |
--- 10296,10305 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "foreground()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_foreground(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_GUI
|
|
Karsten Hopp |
81c285 |
if (gui.in_use)
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 10333,10339 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "function()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_function(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
--- 10314,10319 ----
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 10357,10367 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "garbagecollect()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_garbagecollect(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/* This is postponed until we are back at the toplevel, because we may be
|
|
Karsten Hopp |
81c285 |
* using Lists and Dicts internally. E.g.: ":echo [garbagecollect()]". */
|
|
Karsten Hopp |
81c285 |
--- 10337,10346 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "garbagecollect()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_garbagecollect(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/* This is postponed until we are back at the toplevel, because we may be
|
|
Karsten Hopp |
81c285 |
* using Lists and Dicts internally. E.g.: ":echo [garbagecollect()]". */
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 10664,10673 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "getcharmod()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_getcharmod(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
rettv->vval.v_number = mod_mask;
|
|
Karsten Hopp |
81c285 |
--- 10643,10651 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "getcharmod()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_getcharmod(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 = mod_mask;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 10676,10685 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "getcmdline()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_getcmdline(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
rettv->v_type = VAR_STRING;
|
|
Karsten Hopp |
81c285 |
--- 10654,10662 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "getcmdline()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_getcmdline(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
rettv->v_type = VAR_STRING;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 10689,10698 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "getcmdpos()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_getcmdpos(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
rettv->vval.v_number = get_cmdline_pos() + 1;
|
|
Karsten Hopp |
81c285 |
--- 10666,10674 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "getcmdpos()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_getcmdpos(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 = get_cmdline_pos() + 1;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 10701,10710 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "getcmdtype()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_getcmdtype(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
rettv->v_type = VAR_STRING;
|
|
Karsten Hopp |
81c285 |
--- 10677,10685 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "getcmdtype()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_getcmdtype(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
rettv->v_type = VAR_STRING;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 10719,10728 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "getcwd()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_getcwd(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char_u cwd[MAXPATHL];
|
|
Karsten Hopp |
81c285 |
--- 10694,10702 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "getcwd()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_getcwd(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char_u cwd[MAXPATHL];
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 10743,10752 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "getfontname()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_getfontname(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
rettv->v_type = VAR_STRING;
|
|
Karsten Hopp |
81c285 |
--- 10717,10725 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "getfontname()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_getfontname(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
rettv->v_type = VAR_STRING;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 10973,10982 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "getmatches()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_getmatches(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 |
--- 10946,10954 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "getmatches()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_getmatches(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 |
***************
|
|
Karsten Hopp |
81c285 |
*** 11004,11013 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "getpid()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_getpid(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
rettv->vval.v_number = mch_get_pid();
|
|
Karsten Hopp |
81c285 |
--- 10976,10984 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "getpid()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_getpid(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 = mch_get_pid();
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 11051,11061 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "getqflist()" and "getloclist()" functions
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_getqflist(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_QUICKFIX
|
|
Karsten Hopp |
81c285 |
win_T *wp;
|
|
Karsten Hopp |
81c285 |
--- 11022,11031 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "getqflist()" and "getloclist()" functions
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_getqflist(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_QUICKFIX
|
|
Karsten Hopp |
81c285 |
win_T *wp;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 11170,11179 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "getwinposx()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_getwinposx(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
rettv->vval.v_number = -1;
|
|
Karsten Hopp |
81c285 |
--- 11140,11148 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "getwinposx()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_getwinposx(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 = -1;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 11191,11200 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "getwinposy()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_getwinposy(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
rettv->vval.v_number = -1;
|
|
Karsten Hopp |
81c285 |
--- 11160,11168 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "getwinposy()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_getwinposy(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 = -1;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 11921,11930 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "haslocaldir()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_haslocaldir(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_localdir != NULL);
|
|
Karsten Hopp |
81c285 |
--- 11889,11897 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "haslocaldir()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_haslocaldir(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_localdir != NULL);
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 11962,11971 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "histadd()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_histadd(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_CMDHIST
|
|
Karsten Hopp |
81c285 |
--- 11929,11937 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "histadd()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_histadd(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_CMDHIST
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 11996,12006 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "histdel()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_histdel(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_CMDHIST
|
|
Karsten Hopp |
81c285 |
int n;
|
|
Karsten Hopp |
81c285 |
--- 11962,11971 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "histdel()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_histdel(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_CMDHIST
|
|
Karsten Hopp |
81c285 |
int n;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 12028,12037 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "histget()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_histget(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_CMDHIST
|
|
Karsten Hopp |
81c285 |
--- 11993,12001 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "histget()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_histget(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_CMDHIST
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 12061,12070 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "histnr()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_histnr(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int i;
|
|
Karsten Hopp |
81c285 |
--- 12025,12033 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "histnr()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_histnr(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int i;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 12106,12115 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "hostname()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_hostname(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char_u hostname[256];
|
|
Karsten Hopp |
81c285 |
--- 12069,12077 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "hostname()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_hostname(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char_u hostname[256];
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 12122,12131 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* iconv() function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_iconv(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_MBYTE
|
|
Karsten Hopp |
81c285 |
--- 12084,12092 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* iconv() function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_iconv(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_MBYTE
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 12420,12429 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "inputrestore()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_inputrestore(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (ga_userinput.ga_len > 0)
|
|
Karsten Hopp |
81c285 |
--- 12381,12389 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "inputrestore()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_inputrestore(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (ga_userinput.ga_len > 0)
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 12443,12452 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "inputsave()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_inputsave(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/* Add an entry to the stack of typeahead storage. */
|
|
Karsten Hopp |
81c285 |
--- 12403,12411 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "inputsave()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_inputsave(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/* Add an entry to the stack of typeahead storage. */
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 12733,12742 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "last_buffer_nr()" function.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_last_buffer_nr(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int n = 0;
|
|
Karsten Hopp |
81c285 |
--- 12692,12700 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "last_buffer_nr()" function.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_last_buffer_nr(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int n = 0;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 12863,12872 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "line2byte(lnum)" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_line2byte(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifndef FEAT_BYTEOFF
|
|
Karsten Hopp |
81c285 |
--- 12821,12829 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "line2byte(lnum)" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_line2byte(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifndef FEAT_BYTEOFF
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 12912,12921 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "localtime()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_localtime(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
rettv->vval.v_number = (varnumber_T)time(NULL);
|
|
Karsten Hopp |
81c285 |
--- 12869,12877 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "localtime()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_localtime(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 = (varnumber_T)time(NULL);
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 13497,13503 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "mode()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_mode(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
--- 13453,13458 ----
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 13726,13736 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "pumvisible()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_pumvisible(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_INS_EXPAND
|
|
Karsten Hopp |
81c285 |
if (pum_visible())
|
|
Karsten Hopp |
81c285 |
--- 13681,13690 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "pumvisible()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_pumvisible(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_INS_EXPAND
|
|
Karsten Hopp |
81c285 |
if (pum_visible())
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 14131,14140 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "remote_expr()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_remote_expr(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
rettv->v_type = VAR_STRING;
|
|
Karsten Hopp |
81c285 |
--- 14085,14093 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "remote_expr()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_remote_expr(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
rettv->v_type = VAR_STRING;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 14147,14157 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "remote_foreground()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_remote_foreground(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_CLIENTSERVER
|
|
Karsten Hopp |
81c285 |
# ifdef WIN32
|
|
Karsten Hopp |
81c285 |
--- 14100,14109 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "remote_foreground()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_remote_foreground(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_CLIENTSERVER
|
|
Karsten Hopp |
81c285 |
# ifdef WIN32
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 14173,14182 ****
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_remote_peek(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_CLIENTSERVER
|
|
Karsten Hopp |
81c285 |
--- 14125,14133 ----
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_remote_peek(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_CLIENTSERVER
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 14231,14240 ****
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_remote_read(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char_u *r = NULL;
|
|
Karsten Hopp |
81c285 |
--- 14182,14190 ----
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_remote_read(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char_u *r = NULL;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 14266,14275 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "remote_send()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_remote_send(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
rettv->v_type = VAR_STRING;
|
|
Karsten Hopp |
81c285 |
--- 14216,14224 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "remote_send()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_remote_send(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
rettv->v_type = VAR_STRING;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 14398,14404 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "repeat()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_repeat(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
--- 14347,14352 ----
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 15207,15216 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_server2client(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_CLIENTSERVER
|
|
Karsten Hopp |
81c285 |
--- 15155,15163 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_server2client(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_CLIENTSERVER
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 15239,15248 ****
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_serverlist(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char_u *r = NULL;
|
|
Karsten Hopp |
81c285 |
--- 15186,15194 ----
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_serverlist(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char_u *r = NULL;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 15263,15273 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "setbufvar()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_setbufvar(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
buf_T *buf;
|
|
Karsten Hopp |
81c285 |
aco_save_T aco;
|
|
Karsten Hopp |
81c285 |
--- 15209,15218 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "setbufvar()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_setbufvar(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
buf_T *buf;
|
|
Karsten Hopp |
81c285 |
aco_save_T aco;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 15402,15413 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Used by "setqflist()" and "setloclist()" functions
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
set_qf_ll_list(wp, list_arg, action_arg, rettv)
|
|
Karsten Hopp |
81c285 |
! win_T *wp;
|
|
Karsten Hopp |
81c285 |
! typval_T *list_arg;
|
|
Karsten Hopp |
81c285 |
! typval_T *action_arg;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_QUICKFIX
|
|
Karsten Hopp |
81c285 |
--- 15347,15357 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Used by "setqflist()" and "setloclist()" functions
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
set_qf_ll_list(wp, list_arg, action_arg, rettv)
|
|
Karsten Hopp |
81c285 |
! win_T *wp UNUSED;
|
|
Karsten Hopp |
81c285 |
! typval_T *list_arg UNUSED;
|
|
Karsten Hopp |
81c285 |
! typval_T *action_arg UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_QUICKFIX
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 15442,15448 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "setloclist()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_setloclist(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
--- 15386,15391 ----
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 15520,15526 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "setpos()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_setpos(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
--- 15463,15468 ----
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 15564,15570 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "setqflist()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_setqflist(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
--- 15506,15511 ----
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 15667,15677 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "setwinvar()" and "settabwinvar()" functions
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
setwinvar(argvars, rettv, off)
|
|
Karsten Hopp |
81c285 |
typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
int off;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
win_T *win;
|
|
Karsten Hopp |
81c285 |
--- 15608,15617 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "setwinvar()" and "settabwinvar()" functions
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
setwinvar(argvars, rettv, off)
|
|
Karsten Hopp |
81c285 |
typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv UNUSED;
|
|
Karsten Hopp |
81c285 |
int off;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
win_T *win;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 15987,15996 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "spellbadword()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_spellbadword(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char_u *word = (char_u *)"";
|
|
Karsten Hopp |
81c285 |
--- 15927,15935 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "spellbadword()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_spellbadword(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char_u *word = (char_u *)"";
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 16042,16051 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "spellsuggest()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_spellsuggest(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_SPELL
|
|
Karsten Hopp |
81c285 |
--- 15981,15989 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "spellsuggest()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_spellsuggest(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_SPELL
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 16528,16537 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "synID(lnum, col, trans)" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_synID(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int id = 0;
|
|
Karsten Hopp |
81c285 |
--- 16466,16474 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "synID(lnum, col, trans)" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_synID(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int id = 0;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 16556,16565 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "synIDattr(id, what [, mode])" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_synIDattr(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char_u *p = NULL;
|
|
Karsten Hopp |
81c285 |
--- 16493,16501 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "synIDattr(id, what [, mode])" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_synIDattr(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char_u *p = NULL;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 16652,16661 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "synIDtrans(id)" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_synIDtrans(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int id;
|
|
Karsten Hopp |
81c285 |
--- 16588,16596 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "synIDtrans(id)" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_synIDtrans(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int id;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 16675,16684 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "synstack(lnum, col)" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_synstack(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_SYN_HL
|
|
Karsten Hopp |
81c285 |
--- 16610,16618 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "synstack(lnum, col)" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_synstack(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_SYN_HL
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 16812,16822 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "tabpagebuflist()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_tabpagebuflist(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
81c285 |
tabpage_T *tp;
|
|
Karsten Hopp |
81c285 |
--- 16746,16755 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "tabpagebuflist()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_tabpagebuflist(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
81c285 |
tabpage_T *tp;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 16844,16853 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "tabpagenr()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_tabpagenr(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int nr = 1;
|
|
Karsten Hopp |
81c285 |
--- 16777,16785 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "tabpagenr()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_tabpagenr(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int nr = 1;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 16929,16938 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "tabpagewinnr()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_tabpagewinnr(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int nr = 1;
|
|
Karsten Hopp |
81c285 |
--- 16861,16869 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "tabpagewinnr()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_tabpagewinnr(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int nr = 1;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 16952,16961 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "tagfiles()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_tagfiles(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char_u fname[MAXPATHL + 1];
|
|
Karsten Hopp |
81c285 |
--- 16883,16891 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "tagfiles()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_tagfiles(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char_u fname[MAXPATHL + 1];
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 16995,17004 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "tempname()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_tempname(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
static int x = 'A';
|
|
Karsten Hopp |
81c285 |
--- 16925,16933 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "tempname()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_tempname(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
static int x = 'A';
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 17031,17041 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "test(list)" function: Just checking the walls...
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_test(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/* Used for unit testing. Change the code below to your liking. */
|
|
Karsten Hopp |
81c285 |
#if 0
|
|
Karsten Hopp |
81c285 |
--- 16960,16969 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "test(list)" function: Just checking the walls...
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_test(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/* Used for unit testing. Change the code below to your liking. */
|
|
Karsten Hopp |
81c285 |
#if 0
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 17320,17330 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "visualmode()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_visualmode(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_VISUAL
|
|
Karsten Hopp |
81c285 |
char_u str[2];
|
|
Karsten Hopp |
81c285 |
--- 17248,17257 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "visualmode()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_visualmode(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_VISUAL
|
|
Karsten Hopp |
81c285 |
char_u str[2];
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 17360,17369 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "wincol()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_wincol(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
validate_cursor();
|
|
Karsten Hopp |
81c285 |
--- 17287,17295 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "wincol()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_wincol(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
validate_cursor();
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 17390,17399 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "winline()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_winline(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
validate_cursor();
|
|
Karsten Hopp |
81c285 |
--- 17316,17324 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "winline()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_winline(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
validate_cursor();
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 17403,17412 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "winnr()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_winnr(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int nr = 1;
|
|
Karsten Hopp |
81c285 |
--- 17328,17336 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "winnr()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_winnr(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int nr = 1;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 17420,17429 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "winrestcmd()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_winrestcmd(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
81c285 |
--- 17344,17352 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "winrestcmd()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_winrestcmd(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 17455,17465 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "winrestview()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_winrestview(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
dict_T *dict;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 17378,17387 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "winrestview()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_winrestview(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
! typval_T *rettv UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
dict_T *dict;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 17501,17510 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "winsaveview()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_winsaveview(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
dict_T *dict;
|
|
Karsten Hopp |
81c285 |
--- 17423,17431 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* "winsaveview()" function
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
f_winsaveview(argvars, rettv)
|
|
Karsten Hopp |
81c285 |
! typval_T *argvars UNUSED;
|
|
Karsten Hopp |
81c285 |
typval_T *rettv;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
dict_T *dict;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 21646,21657 ****
|
|
Karsten Hopp |
81c285 |
* Called by do_cmdline() to get the next line.
|
|
Karsten Hopp |
81c285 |
* Returns allocated string, or NULL for end of function.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
get_func_line(c, cookie, indent)
|
|
Karsten Hopp |
81c285 |
! int c; /* not used */
|
|
Karsten Hopp |
81c285 |
void *cookie;
|
|
Karsten Hopp |
81c285 |
! int indent; /* not used */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
funccall_T *fcp = (funccall_T *)cookie;
|
|
Karsten Hopp |
81c285 |
ufunc_T *fp = fcp->func;
|
|
Karsten Hopp |
81c285 |
--- 21567,21577 ----
|
|
Karsten Hopp |
81c285 |
* Called by do_cmdline() to get the next line.
|
|
Karsten Hopp |
81c285 |
* Returns allocated string, or NULL for end of function.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
get_func_line(c, cookie, indent)
|
|
Karsten Hopp |
81c285 |
! int c UNUSED;
|
|
Karsten Hopp |
81c285 |
void *cookie;
|
|
Karsten Hopp |
81c285 |
! int indent UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
funccall_T *fcp = (funccall_T *)cookie;
|
|
Karsten Hopp |
81c285 |
ufunc_T *fp = fcp->func;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 22023,22032 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* List v:oldfiles in a nice way.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
ex_oldfiles(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
list_T *l = vimvars[VV_OLDFILES].vv_list;
|
|
Karsten Hopp |
81c285 |
listitem_T *li;
|
|
Karsten Hopp |
81c285 |
--- 21943,21951 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* List v:oldfiles in a nice way.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
ex_oldfiles(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
list_T *l = vimvars[VV_OLDFILES].vv_list;
|
|
Karsten Hopp |
81c285 |
listitem_T *li;
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.176/src/ex_docmd.c 2009-05-16 16:36:25.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/ex_docmd.c 2009-05-16 17:01:26.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 3004,3010 ****
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
if (VIM_ISDIGIT(*cmd))
|
|
Karsten Hopp |
81c285 |
p = skipwhite(skipdigits(cmd));
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < sizeof(cmdmods) / sizeof(struct cmdmod); ++i)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
for (j = 0; p[j] != NUL; ++j)
|
|
Karsten Hopp |
81c285 |
if (p[j] != cmdmods[i].name[j])
|
|
Karsten Hopp |
81c285 |
--- 3004,3010 ----
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
if (VIM_ISDIGIT(*cmd))
|
|
Karsten Hopp |
81c285 |
p = skipwhite(skipdigits(cmd));
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < (int)(sizeof(cmdmods) / sizeof(struct cmdmod)); ++i)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
for (j = 0; p[j] != NUL; ++j)
|
|
Karsten Hopp |
81c285 |
if (p[j] != cmdmods[i].name[j])
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 3032,3038 ****
|
|
Karsten Hopp |
81c285 |
char_u *p;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/* Check command modifiers. */
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < sizeof(cmdmods) / sizeof(struct cmdmod); ++i)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
for (j = 0; name[j] != NUL; ++j)
|
|
Karsten Hopp |
81c285 |
if (name[j] != cmdmods[i].name[j])
|
|
Karsten Hopp |
81c285 |
--- 3032,3038 ----
|
|
Karsten Hopp |
81c285 |
char_u *p;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/* Check command modifiers. */
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < (int)(sizeof(cmdmods) / sizeof(struct cmdmod)); ++i)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
for (j = 0; name[j] != NUL; ++j)
|
|
Karsten Hopp |
81c285 |
if (name[j] != cmdmods[i].name[j])
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 6093,6099 ****
|
|
Karsten Hopp |
81c285 |
{"bang", "bar", "buffer", "complete", "count",
|
|
Karsten Hopp |
81c285 |
"nargs", "range", "register"};
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
! if (idx >= sizeof(user_cmd_flags) / sizeof(user_cmd_flags[0]))
|
|
Karsten Hopp |
81c285 |
return NULL;
|
|
Karsten Hopp |
81c285 |
return (char_u *)user_cmd_flags[idx];
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
--- 6093,6099 ----
|
|
Karsten Hopp |
81c285 |
{"bang", "bar", "buffer", "complete", "count",
|
|
Karsten Hopp |
81c285 |
"nargs", "range", "register"};
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
! if (idx >= (int)(sizeof(user_cmd_flags) / sizeof(user_cmd_flags[0])))
|
|
Karsten Hopp |
81c285 |
return NULL;
|
|
Karsten Hopp |
81c285 |
return (char_u *)user_cmd_flags[idx];
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 6108,6114 ****
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
static char *user_cmd_nargs[] = {"0", "1", "*", "?", "+"};
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
! if (idx >= sizeof(user_cmd_nargs) / sizeof(user_cmd_nargs[0]))
|
|
Karsten Hopp |
81c285 |
return NULL;
|
|
Karsten Hopp |
81c285 |
return (char_u *)user_cmd_nargs[idx];
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
--- 6108,6114 ----
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
static char *user_cmd_nargs[] = {"0", "1", "*", "?", "+"};
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
! if (idx >= (int)(sizeof(user_cmd_nargs) / sizeof(user_cmd_nargs[0])))
|
|
Karsten Hopp |
81c285 |
return NULL;
|
|
Karsten Hopp |
81c285 |
return (char_u *)user_cmd_nargs[idx];
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 9144,9153 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* ":stopinsert"
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ex_stopinsert(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
restart_edit = 0;
|
|
Karsten Hopp |
81c285 |
stop_insert_mode = TRUE;
|
|
Karsten Hopp |
81c285 |
--- 9144,9152 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* ":stopinsert"
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ex_stopinsert(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
restart_edit = 0;
|
|
Karsten Hopp |
81c285 |
stop_insert_mode = TRUE;
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.176/src/ex_eval.c 2007-11-24 21:50:19.000000000 +0100
|
|
Karsten Hopp |
81c285 |
--- src/ex_eval.c 2009-05-16 17:06:09.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 60,66 ****
|
|
Karsten Hopp |
81c285 |
--- 60,68 ----
|
|
Karsten Hopp |
81c285 |
#else
|
|
Karsten Hopp |
81c285 |
/* Values used for the Vim release. */
|
|
Karsten Hopp |
81c285 |
# define THROW_ON_ERROR TRUE
|
|
Karsten Hopp |
81c285 |
+ # define THROW_ON_ERROR_TRUE
|
|
Karsten Hopp |
81c285 |
# define THROW_ON_INTERRUPT TRUE
|
|
Karsten Hopp |
81c285 |
+ # define THROW_ON_INTERRUPT_TRUE
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void catch_exception __ARGS((except_T *excp));
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1320,1335 ****
|
|
Karsten Hopp |
81c285 |
--- 1322,1341 ----
|
|
Karsten Hopp |
81c285 |
* and reset the did_emsg or got_int flag, so this won't happen again at
|
|
Karsten Hopp |
81c285 |
* the next surrounding try conditional.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
+ #ifndef THROW_ON_ERROR_TRUE
|
|
Karsten Hopp |
81c285 |
if (did_emsg && !THROW_ON_ERROR)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
inactivate_try = TRUE;
|
|
Karsten Hopp |
81c285 |
did_emsg = FALSE;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
+ #endif
|
|
Karsten Hopp |
81c285 |
+ #ifndef THROW_ON_INTERRUPT_TRUE
|
|
Karsten Hopp |
81c285 |
if (got_int && !THROW_ON_INTERRUPT)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
inactivate_try = TRUE;
|
|
Karsten Hopp |
81c285 |
got_int = FALSE;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
+ #endif
|
|
Karsten Hopp |
81c285 |
idx = cleanup_conditionals(cstack, 0, inactivate_try);
|
|
Karsten Hopp |
81c285 |
if (idx >= 0)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2254,2263 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* ":endfunction" when not after a ":function"
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
ex_endfunction(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
EMSG(_("E193: :endfunction not inside a function"));
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
--- 2260,2268 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* ":endfunction" when not after a ":function"
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
ex_endfunction(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
EMSG(_("E193: :endfunction not inside a function"));
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.176/src/ex_getln.c 2009-05-15 21:31:11.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/ex_getln.c 2009-05-16 17:06:55.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 4533,4539 ****
|
|
Karsten Hopp |
81c285 |
* right function to do the expansion.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
ret = FAIL;
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < sizeof(tab) / sizeof(struct expgen); ++i)
|
|
Karsten Hopp |
81c285 |
if (xp->xp_context == tab[i].context)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (tab[i].ic)
|
|
Karsten Hopp |
81c285 |
--- 4533,4539 ----
|
|
Karsten Hopp |
81c285 |
* right function to do the expansion.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
ret = FAIL;
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < (int)(sizeof(tab) / sizeof(struct expgen)); ++i)
|
|
Karsten Hopp |
81c285 |
if (xp->xp_context == tab[i].context)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (tab[i].ic)
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.176/src/fileio.c 2009-05-15 21:31:11.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/fileio.c 2009-05-16 17:07:35.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 9085,9096 ****
|
|
Karsten Hopp |
81c285 |
* Called by do_cmdline() to get the next line for ":if".
|
|
Karsten Hopp |
81c285 |
* Returns allocated string, or NULL for end of autocommands.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static char_u *
|
|
Karsten Hopp |
81c285 |
getnextac(c, cookie, indent)
|
|
Karsten Hopp |
81c285 |
! int c; /* not used */
|
|
Karsten Hopp |
81c285 |
void *cookie;
|
|
Karsten Hopp |
81c285 |
! int indent; /* not used */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
AutoPatCmd *acp = (AutoPatCmd *)cookie;
|
|
Karsten Hopp |
81c285 |
char_u *retval;
|
|
Karsten Hopp |
81c285 |
--- 9093,9103 ----
|
|
Karsten Hopp |
81c285 |
* Called by do_cmdline() to get the next line for ":if".
|
|
Karsten Hopp |
81c285 |
* Returns allocated string, or NULL for end of autocommands.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static char_u *
|
|
Karsten Hopp |
81c285 |
getnextac(c, cookie, indent)
|
|
Karsten Hopp |
81c285 |
! int c UNUSED;
|
|
Karsten Hopp |
81c285 |
void *cookie;
|
|
Karsten Hopp |
81c285 |
! int indent UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
AutoPatCmd *acp = (AutoPatCmd *)cookie;
|
|
Karsten Hopp |
81c285 |
char_u *retval;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 9201,9210 ****
|
|
Karsten Hopp |
81c285 |
* Function given to ExpandGeneric() to obtain the list of autocommand group
|
|
Karsten Hopp |
81c285 |
* names.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
get_augroup_name(xp, idx)
|
|
Karsten Hopp |
81c285 |
! expand_T *xp;
|
|
Karsten Hopp |
81c285 |
int idx;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (idx == augroups.ga_len) /* add "END" add the end */
|
|
Karsten Hopp |
81c285 |
--- 9208,9216 ----
|
|
Karsten Hopp |
81c285 |
* Function given to ExpandGeneric() to obtain the list of autocommand group
|
|
Karsten Hopp |
81c285 |
* names.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
get_augroup_name(xp, idx)
|
|
Karsten Hopp |
81c285 |
! expand_T *xp UNUSED;
|
|
Karsten Hopp |
81c285 |
int idx;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (idx == augroups.ga_len) /* add "END" add the end */
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 9270,9279 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Function given to ExpandGeneric() to obtain the list of event names.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
get_event_name(xp, idx)
|
|
Karsten Hopp |
81c285 |
! expand_T *xp;
|
|
Karsten Hopp |
81c285 |
int idx;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (idx < augroups.ga_len) /* First list group names, if wanted */
|
|
Karsten Hopp |
81c285 |
--- 9276,9284 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Function given to ExpandGeneric() to obtain the list of event names.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
get_event_name(xp, idx)
|
|
Karsten Hopp |
81c285 |
! expand_T *xp UNUSED;
|
|
Karsten Hopp |
81c285 |
int idx;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (idx < augroups.ga_len) /* First list group names, if wanted */
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.176/src/hardcopy.c 2008-01-12 16:46:41.000000000 +0100
|
|
Karsten Hopp |
81c285 |
--- src/hardcopy.c 2009-05-16 17:18:27.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 442,453 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Print the page header.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
prt_header(psettings, pagenum, lnum)
|
|
Karsten Hopp |
81c285 |
prt_settings_T *psettings;
|
|
Karsten Hopp |
81c285 |
int pagenum;
|
|
Karsten Hopp |
81c285 |
! linenr_T lnum;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int width = psettings->chars_per_line;
|
|
Karsten Hopp |
81c285 |
int page_line;
|
|
Karsten Hopp |
81c285 |
--- 442,452 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Print the page header.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
prt_header(psettings, pagenum, lnum)
|
|
Karsten Hopp |
81c285 |
prt_settings_T *psettings;
|
|
Karsten Hopp |
81c285 |
int pagenum;
|
|
Karsten Hopp |
81c285 |
! linenr_T lnum UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int width = psettings->chars_per_line;
|
|
Karsten Hopp |
81c285 |
int page_line;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1881,1887 ****
|
|
Karsten Hopp |
81c285 |
return FALSE;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/* Find type of DSC comment */
|
|
Karsten Hopp |
81c285 |
! for (comment = 0; comment < NUM_ELEMENTS(prt_dsc_table); comment++)
|
|
Karsten Hopp |
81c285 |
if (prt_resfile_strncmp(0, prt_dsc_table[comment].string,
|
|
Karsten Hopp |
81c285 |
prt_dsc_table[comment].len) == 0)
|
|
Karsten Hopp |
81c285 |
break;
|
|
Karsten Hopp |
81c285 |
--- 1880,1886 ----
|
|
Karsten Hopp |
81c285 |
return FALSE;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/* Find type of DSC comment */
|
|
Karsten Hopp |
81c285 |
! for (comment = 0; comment < (int)NUM_ELEMENTS(prt_dsc_table); comment++)
|
|
Karsten Hopp |
81c285 |
if (prt_resfile_strncmp(0, prt_dsc_table[comment].string,
|
|
Karsten Hopp |
81c285 |
prt_dsc_table[comment].len) == 0)
|
|
Karsten Hopp |
81c285 |
break;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2454,2465 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
int
|
|
Karsten Hopp |
81c285 |
mch_print_init(psettings, jobname, forceit)
|
|
Karsten Hopp |
81c285 |
prt_settings_T *psettings;
|
|
Karsten Hopp |
81c285 |
char_u *jobname;
|
|
Karsten Hopp |
81c285 |
! int forceit;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int i;
|
|
Karsten Hopp |
81c285 |
char *paper_name;
|
|
Karsten Hopp |
81c285 |
--- 2453,2463 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
int
|
|
Karsten Hopp |
81c285 |
mch_print_init(psettings, jobname, forceit)
|
|
Karsten Hopp |
81c285 |
prt_settings_T *psettings;
|
|
Karsten Hopp |
81c285 |
char_u *jobname;
|
|
Karsten Hopp |
81c285 |
! int forceit UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int i;
|
|
Karsten Hopp |
81c285 |
char *paper_name;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2514,2520 ****
|
|
Karsten Hopp |
81c285 |
if (!(props & ENC_8BIT) && ((*p_pmcs != NUL) || !(props & ENC_UNICODE)))
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
p_mbenc_first = NULL;
|
|
Karsten Hopp |
81c285 |
! for (cmap = 0; cmap < NUM_ELEMENTS(prt_ps_mbfonts); cmap++)
|
|
Karsten Hopp |
81c285 |
if (prt_match_encoding((char *)p_encoding, &prt_ps_mbfonts[cmap],
|
|
Karsten Hopp |
81c285 |
&p_mbenc))
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
--- 2512,2518 ----
|
|
Karsten Hopp |
81c285 |
if (!(props & ENC_8BIT) && ((*p_pmcs != NUL) || !(props & ENC_UNICODE)))
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
p_mbenc_first = NULL;
|
|
Karsten Hopp |
81c285 |
! for (cmap = 0; cmap < (int)NUM_ELEMENTS(prt_ps_mbfonts); cmap++)
|
|
Karsten Hopp |
81c285 |
if (prt_match_encoding((char *)p_encoding, &prt_ps_mbfonts[cmap],
|
|
Karsten Hopp |
81c285 |
&p_mbenc))
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2642,2648 ****
|
|
Karsten Hopp |
81c285 |
paper_name = "A4";
|
|
Karsten Hopp |
81c285 |
paper_strlen = 2;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < PRT_MEDIASIZE_LEN; ++i)
|
|
Karsten Hopp |
81c285 |
if (STRLEN(prt_mediasize[i].name) == (unsigned)paper_strlen
|
|
Karsten Hopp |
81c285 |
&& STRNICMP(prt_mediasize[i].name, paper_name,
|
|
Karsten Hopp |
81c285 |
paper_strlen) == 0)
|
|
Karsten Hopp |
81c285 |
--- 2640,2646 ----
|
|
Karsten Hopp |
81c285 |
paper_name = "A4";
|
|
Karsten Hopp |
81c285 |
paper_strlen = 2;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < (int)PRT_MEDIASIZE_LEN; ++i)
|
|
Karsten Hopp |
81c285 |
if (STRLEN(prt_mediasize[i].name) == (unsigned)paper_strlen
|
|
Karsten Hopp |
81c285 |
&& STRNICMP(prt_mediasize[i].name, paper_name,
|
|
Karsten Hopp |
81c285 |
paper_strlen) == 0)
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 3308,3317 ****
|
|
Karsten Hopp |
81c285 |
return !prt_file_error;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
int
|
|
Karsten Hopp |
81c285 |
mch_print_begin_page(str)
|
|
Karsten Hopp |
81c285 |
! char_u *str;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int page_num[2];
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 3306,3314 ----
|
|
Karsten Hopp |
81c285 |
return !prt_file_error;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
int
|
|
Karsten Hopp |
81c285 |
mch_print_begin_page(str)
|
|
Karsten Hopp |
81c285 |
! char_u *str UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int page_num[2];
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 3379,3389 ****
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
int
|
|
Karsten Hopp |
81c285 |
mch_print_text_out(p, len)
|
|
Karsten Hopp |
81c285 |
char_u *p;
|
|
Karsten Hopp |
81c285 |
! int len;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int need_break;
|
|
Karsten Hopp |
81c285 |
char_u ch;
|
|
Karsten Hopp |
81c285 |
--- 3376,3385 ----
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
int
|
|
Karsten Hopp |
81c285 |
mch_print_text_out(p, len)
|
|
Karsten Hopp |
81c285 |
char_u *p;
|
|
Karsten Hopp |
81c285 |
! int len UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int need_break;
|
|
Karsten Hopp |
81c285 |
char_u ch;
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.176/src/if_cscope.c 2009-05-16 16:15:39.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/if_cscope.c 2009-05-16 17:19:30.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 83,89 ****
|
|
Karsten Hopp |
81c285 |
N_("Reinit all connections"), "reset", 0 },
|
|
Karsten Hopp |
81c285 |
{ "show", cs_show,
|
|
Karsten Hopp |
81c285 |
N_("Show connections"), "show", 0 },
|
|
Karsten Hopp |
81c285 |
! { NULL }
|
|
Karsten Hopp |
81c285 |
};
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
--- 83,89 ----
|
|
Karsten Hopp |
81c285 |
N_("Reinit all connections"), "reset", 0 },
|
|
Karsten Hopp |
81c285 |
{ "show", cs_show,
|
|
Karsten Hopp |
81c285 |
N_("Show connections"), "show", 0 },
|
|
Karsten Hopp |
81c285 |
! { NULL, NULL, NULL, NULL, 0 }
|
|
Karsten Hopp |
81c285 |
};
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 107,116 ****
|
|
Karsten Hopp |
81c285 |
* Function given to ExpandGeneric() to obtain the cscope command
|
|
Karsten Hopp |
81c285 |
* expansion.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
get_cscope_name(xp, idx)
|
|
Karsten Hopp |
81c285 |
! expand_T *xp;
|
|
Karsten Hopp |
81c285 |
int idx;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int current_idx;
|
|
Karsten Hopp |
81c285 |
--- 107,115 ----
|
|
Karsten Hopp |
81c285 |
* Function given to ExpandGeneric() to obtain the cscope command
|
|
Karsten Hopp |
81c285 |
* expansion.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
get_cscope_name(xp, idx)
|
|
Karsten Hopp |
81c285 |
! expand_T *xp UNUSED;
|
|
Karsten Hopp |
81c285 |
int idx;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int current_idx;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 496,505 ****
|
|
Karsten Hopp |
81c285 |
*
|
|
Karsten Hopp |
81c285 |
* MAXPATHL 256
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
cs_add(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char *fname, *ppath, *flags = NULL;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 495,503 ----
|
|
Karsten Hopp |
81c285 |
*
|
|
Karsten Hopp |
81c285 |
* MAXPATHL 256
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
cs_add(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char *fname, *ppath, *flags = NULL;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1292,1301 ****
|
|
Karsten Hopp |
81c285 |
*
|
|
Karsten Hopp |
81c285 |
* print help
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
cs_help(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
cscmd_T *cmdp = cs_cmds;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 1290,1298 ----
|
|
Karsten Hopp |
81c285 |
*
|
|
Karsten Hopp |
81c285 |
* print help
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
cs_help(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
cscmd_T *cmdp = cs_cmds;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1399,1411 ****
|
|
Karsten Hopp |
81c285 |
*
|
|
Karsten Hopp |
81c285 |
* insert a new cscope database filename into the filelist
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
cs_insert_filelist(fname, ppath, flags, sb)
|
|
Karsten Hopp |
81c285 |
char *fname;
|
|
Karsten Hopp |
81c285 |
char *ppath;
|
|
Karsten Hopp |
81c285 |
char *flags;
|
|
Karsten Hopp |
81c285 |
! struct stat *sb;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
short i, j;
|
|
Karsten Hopp |
81c285 |
#ifndef UNIX
|
|
Karsten Hopp |
81c285 |
--- 1396,1407 ----
|
|
Karsten Hopp |
81c285 |
*
|
|
Karsten Hopp |
81c285 |
* insert a new cscope database filename into the filelist
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
cs_insert_filelist(fname, ppath, flags, sb)
|
|
Karsten Hopp |
81c285 |
char *fname;
|
|
Karsten Hopp |
81c285 |
char *ppath;
|
|
Karsten Hopp |
81c285 |
char *flags;
|
|
Karsten Hopp |
81c285 |
! struct stat *sb UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
short i, j;
|
|
Karsten Hopp |
81c285 |
#ifndef UNIX
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1561,1570 ****
|
|
Karsten Hopp |
81c285 |
*
|
|
Karsten Hopp |
81c285 |
* nuke em
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
cs_kill(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char *stok;
|
|
Karsten Hopp |
81c285 |
short i;
|
|
Karsten Hopp |
81c285 |
--- 1557,1565 ----
|
|
Karsten Hopp |
81c285 |
*
|
|
Karsten Hopp |
81c285 |
* nuke em
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
cs_kill(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char *stok;
|
|
Karsten Hopp |
81c285 |
short i;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2241,2247 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Used to catch and ignore SIGALRM below.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static RETSIGTYPE
|
|
Karsten Hopp |
81c285 |
sig_handler SIGDEFARG(sigarg)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
--- 2236,2241 ----
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2381,2390 ****
|
|
Karsten Hopp |
81c285 |
*
|
|
Karsten Hopp |
81c285 |
* calls cs_kill on all cscope connections then reinits
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
cs_reset(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char **dblist = NULL, **pplist = NULL, **fllist = NULL;
|
|
Karsten Hopp |
81c285 |
int i;
|
|
Karsten Hopp |
81c285 |
--- 2375,2383 ----
|
|
Karsten Hopp |
81c285 |
*
|
|
Karsten Hopp |
81c285 |
* calls cs_kill on all cscope connections then reinits
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
cs_reset(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char **dblist = NULL, **pplist = NULL, **fllist = NULL;
|
|
Karsten Hopp |
81c285 |
int i;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2497,2506 ****
|
|
Karsten Hopp |
81c285 |
*
|
|
Karsten Hopp |
81c285 |
* show all cscope connections
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
cs_show(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
short i;
|
|
Karsten Hopp |
81c285 |
if (cs_cnt_connections() == 0)
|
|
Karsten Hopp |
81c285 |
--- 2490,2498 ----
|
|
Karsten Hopp |
81c285 |
*
|
|
Karsten Hopp |
81c285 |
* show all cscope connections
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
cs_show(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
short i;
|
|
Karsten Hopp |
81c285 |
if (cs_cnt_connections() == 0)
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.176/src/if_xcmdsrv.c 2008-11-12 14:52:11.000000000 +0100
|
|
Karsten Hopp |
81c285 |
--- src/if_xcmdsrv.c 2009-05-16 17:12:32.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 682,688 ****
|
|
Karsten Hopp |
81c285 |
* Scan all of the names out of the property.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
ga_init2(&ga, 1, 100);
|
|
Karsten Hopp |
81c285 |
! for (p = regProp; (p - regProp) < numItems; p++)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
entry = p;
|
|
Karsten Hopp |
81c285 |
while (*p != 0 && !isspace(*p))
|
|
Karsten Hopp |
81c285 |
--- 682,688 ----
|
|
Karsten Hopp |
81c285 |
* Scan all of the names out of the property.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
ga_init2(&ga, 1, 100);
|
|
Karsten Hopp |
81c285 |
! for (p = regProp; (long_u)(p - regProp) < numItems; p++)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
entry = p;
|
|
Karsten Hopp |
81c285 |
while (*p != 0 && !isspace(*p))
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 969,975 ****
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
returnValue = (int_u)None;
|
|
Karsten Hopp |
81c285 |
entry = NULL; /* Not needed, but eliminates compiler warning. */
|
|
Karsten Hopp |
81c285 |
! for (p = regProp; (p - regProp) < numItems; )
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
entry = p;
|
|
Karsten Hopp |
81c285 |
while (*p != 0 && !isspace(*p))
|
|
Karsten Hopp |
81c285 |
--- 969,975 ----
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
returnValue = (int_u)None;
|
|
Karsten Hopp |
81c285 |
entry = NULL; /* Not needed, but eliminates compiler warning. */
|
|
Karsten Hopp |
81c285 |
! for (p = regProp; (long_u)(p - regProp) < numItems; )
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
entry = p;
|
|
Karsten Hopp |
81c285 |
while (*p != 0 && !isspace(*p))
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 986,992 ****
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
if (loose != NULL && returnValue == (int_u)None && !IsSerialName(name))
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
! for (p = regProp; (p - regProp) < numItems; )
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
entry = p;
|
|
Karsten Hopp |
81c285 |
while (*p != 0 && !isspace(*p))
|
|
Karsten Hopp |
81c285 |
--- 986,992 ----
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
if (loose != NULL && returnValue == (int_u)None && !IsSerialName(name))
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
! for (p = regProp; (long_u)(p - regProp) < numItems; )
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
entry = p;
|
|
Karsten Hopp |
81c285 |
while (*p != 0 && !isspace(*p))
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1056,1062 ****
|
|
Karsten Hopp |
81c285 |
return;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/* Scan the property for the window id. */
|
|
Karsten Hopp |
81c285 |
! for (p = regProp; (p - regProp) < numItems; )
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (*p != 0)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
--- 1056,1062 ----
|
|
Karsten Hopp |
81c285 |
return;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/* Scan the property for the window id. */
|
|
Karsten Hopp |
81c285 |
! for (p = regProp; (long_u)(p - regProp) < numItems; )
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (*p != 0)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1196,1202 ****
|
|
Karsten Hopp |
81c285 |
* one time; each iteration through the outer loop handles a
|
|
Karsten Hopp |
81c285 |
* single command or result.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
! for (p = propInfo; (p - propInfo) < numItems; )
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Ignore leading NULs; each command or result starts with a
|
|
Karsten Hopp |
81c285 |
--- 1196,1202 ----
|
|
Karsten Hopp |
81c285 |
* one time; each iteration through the outer loop handles a
|
|
Karsten Hopp |
81c285 |
* single command or result.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
! for (p = propInfo; (long_u)(p - propInfo) < numItems; )
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Ignore leading NULs; each command or result starts with a
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1230,1236 ****
|
|
Karsten Hopp |
81c285 |
serial = (char_u *)"";
|
|
Karsten Hopp |
81c285 |
script = NULL;
|
|
Karsten Hopp |
81c285 |
enc = NULL;
|
|
Karsten Hopp |
81c285 |
! while (p - propInfo < numItems && *p == '-')
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
switch (p[1])
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
--- 1230,1236 ----
|
|
Karsten Hopp |
81c285 |
serial = (char_u *)"";
|
|
Karsten Hopp |
81c285 |
script = NULL;
|
|
Karsten Hopp |
81c285 |
enc = NULL;
|
|
Karsten Hopp |
81c285 |
! while ((long_u)(p - propInfo) < numItems && *p == '-')
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
switch (p[1])
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1333,1339 ****
|
|
Karsten Hopp |
81c285 |
res = (char_u *)"";
|
|
Karsten Hopp |
81c285 |
code = 0;
|
|
Karsten Hopp |
81c285 |
enc = NULL;
|
|
Karsten Hopp |
81c285 |
! while ((p-propInfo) < numItems && *p == '-')
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
switch (p[1])
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
--- 1333,1339 ----
|
|
Karsten Hopp |
81c285 |
res = (char_u *)"";
|
|
Karsten Hopp |
81c285 |
code = 0;
|
|
Karsten Hopp |
81c285 |
enc = NULL;
|
|
Karsten Hopp |
81c285 |
! while ((long_u)(p - propInfo) < numItems && *p == '-')
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
switch (p[1])
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1401,1407 ****
|
|
Karsten Hopp |
81c285 |
gotWindow = 0;
|
|
Karsten Hopp |
81c285 |
str = (char_u *)"";
|
|
Karsten Hopp |
81c285 |
enc = NULL;
|
|
Karsten Hopp |
81c285 |
! while ((p-propInfo) < numItems && *p == '-')
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
switch (p[1])
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
--- 1401,1407 ----
|
|
Karsten Hopp |
81c285 |
gotWindow = 0;
|
|
Karsten Hopp |
81c285 |
str = (char_u *)"";
|
|
Karsten Hopp |
81c285 |
enc = NULL;
|
|
Karsten Hopp |
81c285 |
! while ((long_u)(p - propInfo) < numItems && *p == '-')
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
switch (p[1])
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1489,1499 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Another X Error handler, just used to check for errors.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
x_error_check(dpy, error_event)
|
|
Karsten Hopp |
81c285 |
! Display *dpy;
|
|
Karsten Hopp |
81c285 |
! XErrorEvent *error_event;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
got_x_error = TRUE;
|
|
Karsten Hopp |
81c285 |
return 0;
|
|
Karsten Hopp |
81c285 |
--- 1489,1498 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Another X Error handler, just used to check for errors.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
x_error_check(dpy, error_event)
|
|
Karsten Hopp |
81c285 |
! Display *dpy UNUSED;
|
|
Karsten Hopp |
81c285 |
! XErrorEvent *error_event UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
got_x_error = TRUE;
|
|
Karsten Hopp |
81c285 |
return 0;
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.176/src/farsi.c 2008-06-25 00:25:17.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/farsi.c 2009-05-16 17:14:41.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 103,109 ****
|
|
Karsten Hopp |
81c285 |
case F_HE:
|
|
Karsten Hopp |
81c285 |
tempc = _HE;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
! if (p_ri && (curwin->w_cursor.col+1 < STRLEN(ml_get_curline())))
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
inc_cursor();
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 103,110 ----
|
|
Karsten Hopp |
81c285 |
case F_HE:
|
|
Karsten Hopp |
81c285 |
tempc = _HE;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
! if (p_ri && (curwin->w_cursor.col + 1
|
|
Karsten Hopp |
81c285 |
! < (colnr_T)STRLEN(ml_get_curline())))
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
inc_cursor();
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 344,350 ****
|
|
Karsten Hopp |
81c285 |
if (curwin->w_p_rl && p_ri)
|
|
Karsten Hopp |
81c285 |
return;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
! if ( (curwin->w_cursor.col < STRLEN(ml_get_curline())))
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if ((p_ri && curwin->w_cursor.col) || !p_ri)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
--- 345,351 ----
|
|
Karsten Hopp |
81c285 |
if (curwin->w_p_rl && p_ri)
|
|
Karsten Hopp |
81c285 |
return;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
! if ((curwin->w_cursor.col < (colnr_T)STRLEN(ml_get_curline())))
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if ((p_ri && curwin->w_cursor.col) || !p_ri)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 565,571 ****
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
tempc = gchar_cursor();
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
! if (curwin->w_cursor.col+1 < STRLEN(ml_get_curline()))
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
inc_cursor();
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 566,572 ----
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
tempc = gchar_cursor();
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
! if (curwin->w_cursor.col + 1 < (colnr_T)STRLEN(ml_get_curline()))
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
inc_cursor();
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 594,601 ****
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int tempc;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
! if (!curwin->w_cursor.col &&
|
|
Karsten Hopp |
81c285 |
! (curwin->w_cursor.col+1 == STRLEN(ml_get_curline())))
|
|
Karsten Hopp |
81c285 |
return;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
if (!curwin->w_cursor.col && p_ri)
|
|
Karsten Hopp |
81c285 |
--- 595,602 ----
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int tempc;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
! if (curwin->w_cursor.col != 0 &&
|
|
Karsten Hopp |
81c285 |
! (curwin->w_cursor.col + 1 == (colnr_T)STRLEN(ml_get_curline())))
|
|
Karsten Hopp |
81c285 |
return;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
if (!curwin->w_cursor.col && p_ri)
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 663,670 ****
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int tempc;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
! if (!curwin->w_cursor.col &&
|
|
Karsten Hopp |
81c285 |
! (curwin->w_cursor.col+1 == STRLEN(ml_get_curline())))
|
|
Karsten Hopp |
81c285 |
return;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
if (!curwin->w_cursor.col && p_ri)
|
|
Karsten Hopp |
81c285 |
--- 664,671 ----
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int tempc;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
! if (curwin->w_cursor.col != 0 &&
|
|
Karsten Hopp |
81c285 |
! (curwin->w_cursor.col + 1 == (colnr_T)STRLEN(ml_get_curline())))
|
|
Karsten Hopp |
81c285 |
return;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
if (!curwin->w_cursor.col && p_ri)
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.176/src/mark.c 2009-04-29 11:00:09.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/mark.c 2009-05-16 17:14:56.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 884,893 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* print the jumplist
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
ex_jumps(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int i;
|
|
Karsten Hopp |
81c285 |
char_u *name;
|
|
Karsten Hopp |
81c285 |
--- 884,892 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* print the jumplist
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
ex_jumps(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 |
*** 933,942 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* print the changelist
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
ex_changes(eap)
|
|
Karsten Hopp |
81c285 |
! exarg_T *eap;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int i;
|
|
Karsten Hopp |
81c285 |
char_u *name;
|
|
Karsten Hopp |
81c285 |
--- 932,940 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* print the changelist
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
ex_changes(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 |
*** ../vim-7.2.176/src/menu.c 2008-08-17 23:43:53.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/menu.c 2009-05-16 17:19:57.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 231,237 ****
|
|
Karsten Hopp |
81c285 |
if (skipdigits(menu_path + 7) == p)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
menuarg.iconidx = atoi((char *)menu_path + 7);
|
|
Karsten Hopp |
81c285 |
! if (menuarg.iconidx >= TOOLBAR_NAME_COUNT)
|
|
Karsten Hopp |
81c285 |
menuarg.iconidx = -1;
|
|
Karsten Hopp |
81c285 |
else
|
|
Karsten Hopp |
81c285 |
menuarg.icon_builtin = TRUE;
|
|
Karsten Hopp |
81c285 |
--- 231,237 ----
|
|
Karsten Hopp |
81c285 |
if (skipdigits(menu_path + 7) == p)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
menuarg.iconidx = atoi((char *)menu_path + 7);
|
|
Karsten Hopp |
81c285 |
! if (menuarg.iconidx >= (int)TOOLBAR_NAME_COUNT)
|
|
Karsten Hopp |
81c285 |
menuarg.iconidx = -1;
|
|
Karsten Hopp |
81c285 |
else
|
|
Karsten Hopp |
81c285 |
menuarg.icon_builtin = TRUE;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 239,245 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
else
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < TOOLBAR_NAME_COUNT; ++i)
|
|
Karsten Hopp |
81c285 |
if (STRNCMP(toolbar_names[i], menu_path, p - menu_path)
|
|
Karsten Hopp |
81c285 |
== 0)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
--- 239,245 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
else
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < (int)TOOLBAR_NAME_COUNT; ++i)
|
|
Karsten Hopp |
81c285 |
if (STRNCMP(toolbar_names[i], menu_path, p - menu_path)
|
|
Karsten Hopp |
81c285 |
== 0)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1341,1350 ****
|
|
Karsten Hopp |
81c285 |
* Function given to ExpandGeneric() to obtain the list of (sub)menus (not
|
|
Karsten Hopp |
81c285 |
* entries).
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
get_menu_name(xp, idx)
|
|
Karsten Hopp |
81c285 |
! expand_T *xp;
|
|
Karsten Hopp |
81c285 |
int idx;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
static vimmenu_T *menu = NULL;
|
|
Karsten Hopp |
81c285 |
--- 1341,1349 ----
|
|
Karsten Hopp |
81c285 |
* Function given to ExpandGeneric() to obtain the list of (sub)menus (not
|
|
Karsten Hopp |
81c285 |
* entries).
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
get_menu_name(xp, idx)
|
|
Karsten Hopp |
81c285 |
! expand_T *xp UNUSED;
|
|
Karsten Hopp |
81c285 |
int idx;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
static vimmenu_T *menu = NULL;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1378,1387 ****
|
|
Karsten Hopp |
81c285 |
* Function given to ExpandGeneric() to obtain the list of menus and menu
|
|
Karsten Hopp |
81c285 |
* entries.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
get_menu_names(xp, idx)
|
|
Karsten Hopp |
81c285 |
! expand_T *xp;
|
|
Karsten Hopp |
81c285 |
int idx;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
static vimmenu_T *menu = NULL;
|
|
Karsten Hopp |
81c285 |
--- 1377,1385 ----
|
|
Karsten Hopp |
81c285 |
* Function given to ExpandGeneric() to obtain the list of menus and menu
|
|
Karsten Hopp |
81c285 |
* entries.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
get_menu_names(xp, idx)
|
|
Karsten Hopp |
81c285 |
! expand_T *xp UNUSED;
|
|
Karsten Hopp |
81c285 |
int idx;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
static vimmenu_T *menu = NULL;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1739,1748 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Return TRUE if the menu is the tearoff menu.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
menu_is_tearoff(name)
|
|
Karsten Hopp |
81c285 |
! char_u *name;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_GUI
|
|
Karsten Hopp |
81c285 |
return (STRCMP(name, TEAR_STRING) == 0);
|
|
Karsten Hopp |
81c285 |
--- 1737,1745 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Return TRUE if the menu is the tearoff menu.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
menu_is_tearoff(name)
|
|
Karsten Hopp |
81c285 |
! char_u *name UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_GUI
|
|
Karsten Hopp |
81c285 |
return (STRCMP(name, TEAR_STRING) == 0);
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.176/src/version.c 2009-05-16 16:36:25.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/version.c 2009-05-16 17:22:08.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 |
+ 177,
|
|
Karsten Hopp |
81c285 |
/**/
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--
|
|
Karsten Hopp |
81c285 |
(letter from Mark to Mike, about the film's probable certificate)
|
|
Karsten Hopp |
81c285 |
For an 'A' we would have to: Lose as many shits as possible; Take Jesus
|
|
Karsten Hopp |
81c285 |
Christ out, if possible; Loose "I fart in your general direction"; Lose
|
|
Karsten Hopp |
81c285 |
"the oral sex"; Lose "oh, fuck off"; Lose "We make castanets out of your
|
|
Karsten Hopp |
81c285 |
testicles"
|
|
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 ///
|