|
Karsten Hopp |
8c5c38 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
8c5c38 |
Subject: Patch 7.3.311
|
|
Karsten Hopp |
8c5c38 |
Fcc: outbox
|
|
Karsten Hopp |
8c5c38 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
8c5c38 |
Mime-Version: 1.0
|
|
Karsten Hopp |
8c5c38 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
8c5c38 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
8c5c38 |
------------
|
|
Karsten Hopp |
8c5c38 |
|
|
Karsten Hopp |
8c5c38 |
Patch 7.3.311 (replaces 7.3.289)
|
|
Karsten Hopp |
8c5c38 |
Problem: Complete function isn't called when the leader changed.
|
|
Karsten Hopp |
8c5c38 |
Solution: Allow the complete function to return a dictionary with a flag
|
|
Karsten Hopp |
8c5c38 |
that indicates ins_compl_restart() is to be called when the leader
|
|
Karsten Hopp |
8c5c38 |
changes. (Taro Muraoka)
|
|
Karsten Hopp |
8c5c38 |
Files: runtime/insert.txt, src/edit.c, src/eval.c, src/proto/eval.pro
|
|
Karsten Hopp |
8c5c38 |
|
|
Karsten Hopp |
8c5c38 |
|
|
Karsten Hopp |
8c5c38 |
*** ../vim-7.3.310/src/edit.c 2011-09-05 20:13:37.000000000 +0200
|
|
Karsten Hopp |
8c5c38 |
--- src/edit.c 2011-09-14 16:43:14.000000000 +0200
|
|
Karsten Hopp |
8c5c38 |
***************
|
|
Karsten Hopp |
8c5c38 |
*** 135,140 ****
|
|
Karsten Hopp |
8c5c38 |
--- 135,142 ----
|
|
Karsten Hopp |
8c5c38 |
static int compl_cont_mode = 0;
|
|
Karsten Hopp |
8c5c38 |
static expand_T compl_xp;
|
|
Karsten Hopp |
8c5c38 |
|
|
Karsten Hopp |
8c5c38 |
+ static int compl_opt_refresh_always = FALSE;
|
|
Karsten Hopp |
8c5c38 |
+
|
|
Karsten Hopp |
8c5c38 |
static void ins_ctrl_x __ARGS((void));
|
|
Karsten Hopp |
8c5c38 |
static int has_compl_option __ARGS((int dict_opt));
|
|
Karsten Hopp |
8c5c38 |
static int ins_compl_accept_char __ARGS((int c));
|
|
Karsten Hopp |
8c5c38 |
***************
|
|
Karsten Hopp |
8c5c38 |
*** 153,161 ****
|
|
Karsten Hopp |
8c5c38 |
static void ins_compl_free __ARGS((void));
|
|
Karsten Hopp |
8c5c38 |
static void ins_compl_clear __ARGS((void));
|
|
Karsten Hopp |
8c5c38 |
static int ins_compl_bs __ARGS((void));
|
|
Karsten Hopp |
8c5c38 |
static void ins_compl_new_leader __ARGS((void));
|
|
Karsten Hopp |
8c5c38 |
static void ins_compl_addleader __ARGS((int c));
|
|
Karsten Hopp |
8c5c38 |
! static int ins_compl_len __ARGS((void));
|
|
Karsten Hopp |
8c5c38 |
static void ins_compl_restart __ARGS((void));
|
|
Karsten Hopp |
8c5c38 |
static void ins_compl_set_original_text __ARGS((char_u *str));
|
|
Karsten Hopp |
8c5c38 |
static void ins_compl_addfrommatch __ARGS((void));
|
|
Karsten Hopp |
8c5c38 |
--- 155,164 ----
|
|
Karsten Hopp |
8c5c38 |
static void ins_compl_free __ARGS((void));
|
|
Karsten Hopp |
8c5c38 |
static void ins_compl_clear __ARGS((void));
|
|
Karsten Hopp |
8c5c38 |
static int ins_compl_bs __ARGS((void));
|
|
Karsten Hopp |
8c5c38 |
+ static int ins_compl_need_restart __ARGS((void));
|
|
Karsten Hopp |
8c5c38 |
static void ins_compl_new_leader __ARGS((void));
|
|
Karsten Hopp |
8c5c38 |
static void ins_compl_addleader __ARGS((int c));
|
|
Karsten Hopp |
8c5c38 |
! static int ins_compl_len __ARGS((void));
|
|
Karsten Hopp |
8c5c38 |
static void ins_compl_restart __ARGS((void));
|
|
Karsten Hopp |
8c5c38 |
static void ins_compl_set_original_text __ARGS((char_u *str));
|
|
Karsten Hopp |
8c5c38 |
static void ins_compl_addfrommatch __ARGS((void));
|
|
Karsten Hopp |
8c5c38 |
***************
|
|
Karsten Hopp |
8c5c38 |
*** 163,168 ****
|
|
Karsten Hopp |
8c5c38 |
--- 166,172 ----
|
|
Karsten Hopp |
8c5c38 |
static buf_T *ins_compl_next_buf __ARGS((buf_T *buf, int flag));
|
|
Karsten Hopp |
8c5c38 |
#if defined(FEAT_COMPL_FUNC) || defined(FEAT_EVAL)
|
|
Karsten Hopp |
8c5c38 |
static void ins_compl_add_list __ARGS((list_T *list));
|
|
Karsten Hopp |
8c5c38 |
+ static void ins_compl_add_dict __ARGS((dict_T *dict));
|
|
Karsten Hopp |
8c5c38 |
#endif
|
|
Karsten Hopp |
8c5c38 |
static int ins_compl_get_exp __ARGS((pos_T *ini));
|
|
Karsten Hopp |
8c5c38 |
static void ins_compl_delete __ARGS((void));
|
|
Karsten Hopp |
8c5c38 |
***************
|
|
Karsten Hopp |
8c5c38 |
*** 3341,3347 ****
|
|
Karsten Hopp |
8c5c38 |
/* Deleted more than what was used to find matches or didn't finish
|
|
Karsten Hopp |
8c5c38 |
* finding all matches: need to look for matches all over again. */
|
|
Karsten Hopp |
8c5c38 |
if (curwin->w_cursor.col <= compl_col + compl_length
|
|
Karsten Hopp |
8c5c38 |
! || compl_was_interrupted)
|
|
Karsten Hopp |
8c5c38 |
ins_compl_restart();
|
|
Karsten Hopp |
8c5c38 |
|
|
Karsten Hopp |
8c5c38 |
vim_free(compl_leader);
|
|
Karsten Hopp |
8c5c38 |
--- 3345,3351 ----
|
|
Karsten Hopp |
8c5c38 |
/* Deleted more than what was used to find matches or didn't finish
|
|
Karsten Hopp |
8c5c38 |
* finding all matches: need to look for matches all over again. */
|
|
Karsten Hopp |
8c5c38 |
if (curwin->w_cursor.col <= compl_col + compl_length
|
|
Karsten Hopp |
8c5c38 |
! || ins_compl_need_restart())
|
|
Karsten Hopp |
8c5c38 |
ins_compl_restart();
|
|
Karsten Hopp |
8c5c38 |
|
|
Karsten Hopp |
8c5c38 |
vim_free(compl_leader);
|
|
Karsten Hopp |
8c5c38 |
***************
|
|
Karsten Hopp |
8c5c38 |
*** 3355,3360 ****
|
|
Karsten Hopp |
8c5c38 |
--- 3359,3378 ----
|
|
Karsten Hopp |
8c5c38 |
}
|
|
Karsten Hopp |
8c5c38 |
|
|
Karsten Hopp |
8c5c38 |
/*
|
|
Karsten Hopp |
8c5c38 |
+ * Return TRUE when we need to find matches again, ins_compl_restart() is to
|
|
Karsten Hopp |
8c5c38 |
+ * be called.
|
|
Karsten Hopp |
8c5c38 |
+ */
|
|
Karsten Hopp |
8c5c38 |
+ static int
|
|
Karsten Hopp |
8c5c38 |
+ ins_compl_need_restart()
|
|
Karsten Hopp |
8c5c38 |
+ {
|
|
Karsten Hopp |
8c5c38 |
+ /* Return TRUE if we didn't complete finding matches or when the
|
|
Karsten Hopp |
8c5c38 |
+ * 'completefunc' returned "always" in the "refresh" dictionary item. */
|
|
Karsten Hopp |
8c5c38 |
+ return compl_was_interrupted
|
|
Karsten Hopp |
8c5c38 |
+ || ((ctrl_x_mode == CTRL_X_FUNCTION || ctrl_x_mode == CTRL_X_OMNI)
|
|
Karsten Hopp |
8c5c38 |
+ && compl_opt_refresh_always);
|
|
Karsten Hopp |
8c5c38 |
+ }
|
|
Karsten Hopp |
8c5c38 |
+
|
|
Karsten Hopp |
8c5c38 |
+ /*
|
|
Karsten Hopp |
8c5c38 |
* Called after changing "compl_leader".
|
|
Karsten Hopp |
8c5c38 |
* Show the popup menu with a different set of matches.
|
|
Karsten Hopp |
8c5c38 |
* May also search for matches again if the previous search was interrupted.
|
|
Karsten Hopp |
8c5c38 |
***************
|
|
Karsten Hopp |
8c5c38 |
*** 3443,3449 ****
|
|
Karsten Hopp |
8c5c38 |
ins_char(c);
|
|
Karsten Hopp |
8c5c38 |
|
|
Karsten Hopp |
8c5c38 |
/* If we didn't complete finding matches we must search again. */
|
|
Karsten Hopp |
8c5c38 |
! if (compl_was_interrupted)
|
|
Karsten Hopp |
8c5c38 |
ins_compl_restart();
|
|
Karsten Hopp |
8c5c38 |
|
|
Karsten Hopp |
8c5c38 |
vim_free(compl_leader);
|
|
Karsten Hopp |
8c5c38 |
--- 3461,3467 ----
|
|
Karsten Hopp |
8c5c38 |
ins_char(c);
|
|
Karsten Hopp |
8c5c38 |
|
|
Karsten Hopp |
8c5c38 |
/* If we didn't complete finding matches we must search again. */
|
|
Karsten Hopp |
8c5c38 |
! if (ins_compl_need_restart())
|
|
Karsten Hopp |
8c5c38 |
ins_compl_restart();
|
|
Karsten Hopp |
8c5c38 |
|
|
Karsten Hopp |
8c5c38 |
vim_free(compl_leader);
|
|
Karsten Hopp |
8c5c38 |
***************
|
|
Karsten Hopp |
8c5c38 |
*** 3871,3882 ****
|
|
Karsten Hopp |
8c5c38 |
int type; /* CTRL_X_OMNI or CTRL_X_FUNCTION */
|
|
Karsten Hopp |
8c5c38 |
char_u *base;
|
|
Karsten Hopp |
8c5c38 |
{
|
|
Karsten Hopp |
8c5c38 |
! list_T *matchlist;
|
|
Karsten Hopp |
8c5c38 |
char_u *args[2];
|
|
Karsten Hopp |
8c5c38 |
char_u *funcname;
|
|
Karsten Hopp |
8c5c38 |
pos_T pos;
|
|
Karsten Hopp |
8c5c38 |
win_T *curwin_save;
|
|
Karsten Hopp |
8c5c38 |
buf_T *curbuf_save;
|
|
Karsten Hopp |
8c5c38 |
|
|
Karsten Hopp |
8c5c38 |
funcname = (type == CTRL_X_FUNCTION) ? curbuf->b_p_cfu : curbuf->b_p_ofu;
|
|
Karsten Hopp |
8c5c38 |
if (*funcname == NUL)
|
|
Karsten Hopp |
8c5c38 |
--- 3889,3902 ----
|
|
Karsten Hopp |
8c5c38 |
int type; /* CTRL_X_OMNI or CTRL_X_FUNCTION */
|
|
Karsten Hopp |
8c5c38 |
char_u *base;
|
|
Karsten Hopp |
8c5c38 |
{
|
|
Karsten Hopp |
8c5c38 |
! list_T *matchlist = NULL;
|
|
Karsten Hopp |
8c5c38 |
! dict_T *matchdict = NULL;
|
|
Karsten Hopp |
8c5c38 |
char_u *args[2];
|
|
Karsten Hopp |
8c5c38 |
char_u *funcname;
|
|
Karsten Hopp |
8c5c38 |
pos_T pos;
|
|
Karsten Hopp |
8c5c38 |
win_T *curwin_save;
|
|
Karsten Hopp |
8c5c38 |
buf_T *curbuf_save;
|
|
Karsten Hopp |
8c5c38 |
+ typval_T rettv;
|
|
Karsten Hopp |
8c5c38 |
|
|
Karsten Hopp |
8c5c38 |
funcname = (type == CTRL_X_FUNCTION) ? curbuf->b_p_cfu : curbuf->b_p_ofu;
|
|
Karsten Hopp |
8c5c38 |
if (*funcname == NUL)
|
|
Karsten Hopp |
8c5c38 |
***************
|
|
Karsten Hopp |
8c5c38 |
*** 3889,3895 ****
|
|
Karsten Hopp |
8c5c38 |
pos = curwin->w_cursor;
|
|
Karsten Hopp |
8c5c38 |
curwin_save = curwin;
|
|
Karsten Hopp |
8c5c38 |
curbuf_save = curbuf;
|
|
Karsten Hopp |
8c5c38 |
! matchlist = call_func_retlist(funcname, 2, args, FALSE);
|
|
Karsten Hopp |
8c5c38 |
if (curwin_save != curwin || curbuf_save != curbuf)
|
|
Karsten Hopp |
8c5c38 |
{
|
|
Karsten Hopp |
8c5c38 |
EMSG(_(e_complwin));
|
|
Karsten Hopp |
8c5c38 |
--- 3909,3933 ----
|
|
Karsten Hopp |
8c5c38 |
pos = curwin->w_cursor;
|
|
Karsten Hopp |
8c5c38 |
curwin_save = curwin;
|
|
Karsten Hopp |
8c5c38 |
curbuf_save = curbuf;
|
|
Karsten Hopp |
8c5c38 |
!
|
|
Karsten Hopp |
8c5c38 |
! /* Call a function, which returns a list or dict. */
|
|
Karsten Hopp |
8c5c38 |
! if (call_vim_function(funcname, 2, args, FALSE, &rettv) == OK)
|
|
Karsten Hopp |
8c5c38 |
! {
|
|
Karsten Hopp |
8c5c38 |
! switch (rettv.v_type)
|
|
Karsten Hopp |
8c5c38 |
! {
|
|
Karsten Hopp |
8c5c38 |
! case VAR_LIST:
|
|
Karsten Hopp |
8c5c38 |
! matchlist = rettv.vval.v_list;
|
|
Karsten Hopp |
8c5c38 |
! break;
|
|
Karsten Hopp |
8c5c38 |
! case VAR_DICT:
|
|
Karsten Hopp |
8c5c38 |
! matchdict = rettv.vval.v_dict;
|
|
Karsten Hopp |
8c5c38 |
! break;
|
|
Karsten Hopp |
8c5c38 |
! default:
|
|
Karsten Hopp |
8c5c38 |
! /* TODO: Give error message? */
|
|
Karsten Hopp |
8c5c38 |
! clear_tv(&rettv);
|
|
Karsten Hopp |
8c5c38 |
! break;
|
|
Karsten Hopp |
8c5c38 |
! }
|
|
Karsten Hopp |
8c5c38 |
! }
|
|
Karsten Hopp |
8c5c38 |
!
|
|
Karsten Hopp |
8c5c38 |
if (curwin_save != curwin || curbuf_save != curbuf)
|
|
Karsten Hopp |
8c5c38 |
{
|
|
Karsten Hopp |
8c5c38 |
EMSG(_(e_complwin));
|
|
Karsten Hopp |
8c5c38 |
***************
|
|
Karsten Hopp |
8c5c38 |
*** 3902,3911 ****
|
|
Karsten Hopp |
8c5c38 |
--- 3940,3954 ----
|
|
Karsten Hopp |
8c5c38 |
EMSG(_(e_compldel));
|
|
Karsten Hopp |
8c5c38 |
goto theend;
|
|
Karsten Hopp |
8c5c38 |
}
|
|
Karsten Hopp |
8c5c38 |
+
|
|
Karsten Hopp |
8c5c38 |
if (matchlist != NULL)
|
|
Karsten Hopp |
8c5c38 |
ins_compl_add_list(matchlist);
|
|
Karsten Hopp |
8c5c38 |
+ else if (matchdict != NULL)
|
|
Karsten Hopp |
8c5c38 |
+ ins_compl_add_dict(matchdict);
|
|
Karsten Hopp |
8c5c38 |
|
|
Karsten Hopp |
8c5c38 |
theend:
|
|
Karsten Hopp |
8c5c38 |
+ if (matchdict != NULL)
|
|
Karsten Hopp |
8c5c38 |
+ dict_unref(matchdict);
|
|
Karsten Hopp |
8c5c38 |
if (matchlist != NULL)
|
|
Karsten Hopp |
8c5c38 |
list_unref(matchlist);
|
|
Karsten Hopp |
8c5c38 |
}
|
|
Karsten Hopp |
8c5c38 |
***************
|
|
Karsten Hopp |
8c5c38 |
*** 3934,3939 ****
|
|
Karsten Hopp |
8c5c38 |
--- 3977,4009 ----
|
|
Karsten Hopp |
8c5c38 |
}
|
|
Karsten Hopp |
8c5c38 |
|
|
Karsten Hopp |
8c5c38 |
/*
|
|
Karsten Hopp |
8c5c38 |
+ * Add completions from a dict.
|
|
Karsten Hopp |
8c5c38 |
+ */
|
|
Karsten Hopp |
8c5c38 |
+ static void
|
|
Karsten Hopp |
8c5c38 |
+ ins_compl_add_dict(dict)
|
|
Karsten Hopp |
8c5c38 |
+ dict_T *dict;
|
|
Karsten Hopp |
8c5c38 |
+ {
|
|
Karsten Hopp |
8c5c38 |
+ dictitem_T *refresh;
|
|
Karsten Hopp |
8c5c38 |
+ dictitem_T *words;
|
|
Karsten Hopp |
8c5c38 |
+
|
|
Karsten Hopp |
8c5c38 |
+ /* Check for optional "refresh" item. */
|
|
Karsten Hopp |
8c5c38 |
+ compl_opt_refresh_always = FALSE;
|
|
Karsten Hopp |
8c5c38 |
+ refresh = dict_find(dict, (char_u *)"refresh", 7);
|
|
Karsten Hopp |
8c5c38 |
+ if (refresh != NULL && refresh->di_tv.v_type == VAR_STRING)
|
|
Karsten Hopp |
8c5c38 |
+ {
|
|
Karsten Hopp |
8c5c38 |
+ char_u *v = refresh->di_tv.vval.v_string;
|
|
Karsten Hopp |
8c5c38 |
+
|
|
Karsten Hopp |
8c5c38 |
+ if (v != NULL && STRCMP(v, (char_u *)"always") == 0)
|
|
Karsten Hopp |
8c5c38 |
+ compl_opt_refresh_always = TRUE;
|
|
Karsten Hopp |
8c5c38 |
+ }
|
|
Karsten Hopp |
8c5c38 |
+
|
|
Karsten Hopp |
8c5c38 |
+ /* Add completions from a "words" list. */
|
|
Karsten Hopp |
8c5c38 |
+ words = dict_find(dict, (char_u *)"words", 5);
|
|
Karsten Hopp |
8c5c38 |
+ if (words != NULL && words->di_tv.v_type == VAR_LIST)
|
|
Karsten Hopp |
8c5c38 |
+ ins_compl_add_list(words->di_tv.vval.v_list);
|
|
Karsten Hopp |
8c5c38 |
+ }
|
|
Karsten Hopp |
8c5c38 |
+
|
|
Karsten Hopp |
8c5c38 |
+ /*
|
|
Karsten Hopp |
8c5c38 |
* Add a match to the list of matches from a typeval_T.
|
|
Karsten Hopp |
8c5c38 |
* If the given string is already in the list of completions, then return
|
|
Karsten Hopp |
8c5c38 |
* NOTDONE, otherwise add it to the list and return OK. If there is an error,
|
|
Karsten Hopp |
8c5c38 |
***************
|
|
Karsten Hopp |
8c5c38 |
*** 5088,5093 ****
|
|
Karsten Hopp |
8c5c38 |
--- 5158,5169 ----
|
|
Karsten Hopp |
8c5c38 |
return FAIL;
|
|
Karsten Hopp |
8c5c38 |
}
|
|
Karsten Hopp |
8c5c38 |
|
|
Karsten Hopp |
8c5c38 |
+ /*
|
|
Karsten Hopp |
8c5c38 |
+ * Reset extended parameters of completion, when start new
|
|
Karsten Hopp |
8c5c38 |
+ * completion.
|
|
Karsten Hopp |
8c5c38 |
+ */
|
|
Karsten Hopp |
8c5c38 |
+ compl_opt_refresh_always = FALSE;
|
|
Karsten Hopp |
8c5c38 |
+
|
|
Karsten Hopp |
8c5c38 |
if (col < 0)
|
|
Karsten Hopp |
8c5c38 |
col = curs_col;
|
|
Karsten Hopp |
8c5c38 |
compl_col = col;
|
|
Karsten Hopp |
8c5c38 |
*** ../vim-7.3.310/src/eval.c 2011-09-14 14:33:47.000000000 +0200
|
|
Karsten Hopp |
8c5c38 |
--- src/eval.c 2011-09-14 16:16:47.000000000 +0200
|
|
Karsten Hopp |
8c5c38 |
***************
|
|
Karsten Hopp |
8c5c38 |
*** 380,388 ****
|
|
Karsten Hopp |
8c5c38 |
|
|
Karsten Hopp |
8c5c38 |
static void prepare_vimvar __ARGS((int idx, typval_T *save_tv));
|
|
Karsten Hopp |
8c5c38 |
static void restore_vimvar __ARGS((int idx, typval_T *save_tv));
|
|
Karsten Hopp |
8c5c38 |
- #if defined(FEAT_USR_CMDS) && defined(FEAT_CMDL_COMPL)
|
|
Karsten Hopp |
8c5c38 |
- static int call_vim_function __ARGS((char_u *func, int argc, char_u **argv, int safe, typval_T *rettv));
|
|
Karsten Hopp |
8c5c38 |
- #endif
|
|
Karsten Hopp |
8c5c38 |
static int ex_let_vars __ARGS((char_u *arg, typval_T *tv, int copy, int semicolon, int var_count, char_u *nextchars));
|
|
Karsten Hopp |
8c5c38 |
static char_u *skip_var_list __ARGS((char_u *arg, int *var_count, int *semicolon));
|
|
Karsten Hopp |
8c5c38 |
static char_u *skip_var_one __ARGS((char_u *arg));
|
|
Karsten Hopp |
8c5c38 |
--- 380,385 ----
|
|
Karsten Hopp |
8c5c38 |
***************
|
|
Karsten Hopp |
8c5c38 |
*** 451,457 ****
|
|
Karsten Hopp |
8c5c38 |
static void set_ref_in_list __ARGS((list_T *l, int copyID));
|
|
Karsten Hopp |
8c5c38 |
static void set_ref_in_item __ARGS((typval_T *tv, int copyID));
|
|
Karsten Hopp |
8c5c38 |
static int rettv_dict_alloc __ARGS((typval_T *rettv));
|
|
Karsten Hopp |
8c5c38 |
- static void dict_unref __ARGS((dict_T *d));
|
|
Karsten Hopp |
8c5c38 |
static void dict_free __ARGS((dict_T *d, int recurse));
|
|
Karsten Hopp |
8c5c38 |
static dictitem_T *dictitem_copy __ARGS((dictitem_T *org));
|
|
Karsten Hopp |
8c5c38 |
static void dictitem_remove __ARGS((dict_T *dict, dictitem_T *item));
|
|
Karsten Hopp |
8c5c38 |
--- 448,453 ----
|
|
Karsten Hopp |
8c5c38 |
***************
|
|
Karsten Hopp |
8c5c38 |
*** 1563,1569 ****
|
|
Karsten Hopp |
8c5c38 |
* arguments are currently supported.
|
|
Karsten Hopp |
8c5c38 |
* Returns OK or FAIL.
|
|
Karsten Hopp |
8c5c38 |
*/
|
|
Karsten Hopp |
8c5c38 |
! static int
|
|
Karsten Hopp |
8c5c38 |
call_vim_function(func, argc, argv, safe, rettv)
|
|
Karsten Hopp |
8c5c38 |
char_u *func;
|
|
Karsten Hopp |
8c5c38 |
int argc;
|
|
Karsten Hopp |
8c5c38 |
--- 1559,1565 ----
|
|
Karsten Hopp |
8c5c38 |
* arguments are currently supported.
|
|
Karsten Hopp |
8c5c38 |
* Returns OK or FAIL.
|
|
Karsten Hopp |
8c5c38 |
*/
|
|
Karsten Hopp |
8c5c38 |
! int
|
|
Karsten Hopp |
8c5c38 |
call_vim_function(func, argc, argv, safe, rettv)
|
|
Karsten Hopp |
8c5c38 |
char_u *func;
|
|
Karsten Hopp |
8c5c38 |
int argc;
|
|
Karsten Hopp |
8c5c38 |
***************
|
|
Karsten Hopp |
8c5c38 |
*** 6903,6909 ****
|
|
Karsten Hopp |
8c5c38 |
* Unreference a Dictionary: decrement the reference count and free it when it
|
|
Karsten Hopp |
8c5c38 |
* becomes zero.
|
|
Karsten Hopp |
8c5c38 |
*/
|
|
Karsten Hopp |
8c5c38 |
! static void
|
|
Karsten Hopp |
8c5c38 |
dict_unref(d)
|
|
Karsten Hopp |
8c5c38 |
dict_T *d;
|
|
Karsten Hopp |
8c5c38 |
{
|
|
Karsten Hopp |
8c5c38 |
--- 6899,6905 ----
|
|
Karsten Hopp |
8c5c38 |
* Unreference a Dictionary: decrement the reference count and free it when it
|
|
Karsten Hopp |
8c5c38 |
* becomes zero.
|
|
Karsten Hopp |
8c5c38 |
*/
|
|
Karsten Hopp |
8c5c38 |
! void
|
|
Karsten Hopp |
8c5c38 |
dict_unref(d)
|
|
Karsten Hopp |
8c5c38 |
dict_T *d;
|
|
Karsten Hopp |
8c5c38 |
{
|
|
Karsten Hopp |
8c5c38 |
*** ../vim-7.3.310/src/proto/eval.pro 2010-08-15 21:57:28.000000000 +0200
|
|
Karsten Hopp |
8c5c38 |
--- src/proto/eval.pro 2011-09-14 16:16:47.000000000 +0200
|
|
Karsten Hopp |
8c5c38 |
***************
|
|
Karsten Hopp |
8c5c38 |
*** 23,28 ****
|
|
Karsten Hopp |
8c5c38 |
--- 23,29 ----
|
|
Karsten Hopp |
8c5c38 |
list_T *eval_spell_expr __ARGS((char_u *badword, char_u *expr));
|
|
Karsten Hopp |
8c5c38 |
int get_spellword __ARGS((list_T *list, char_u **pp));
|
|
Karsten Hopp |
8c5c38 |
typval_T *eval_expr __ARGS((char_u *arg, char_u **nextcmd));
|
|
Karsten Hopp |
8c5c38 |
+ int call_vim_function __ARGS((char_u *func, int argc, char_u **argv, int safe, typval_T *rettv));
|
|
Karsten Hopp |
8c5c38 |
void *call_func_retstr __ARGS((char_u *func, int argc, char_u **argv, int safe));
|
|
Karsten Hopp |
8c5c38 |
long call_func_retnr __ARGS((char_u *func, int argc, char_u **argv, int safe));
|
|
Karsten Hopp |
8c5c38 |
void *call_func_retlist __ARGS((char_u *func, int argc, char_u **argv, int safe));
|
|
Karsten Hopp |
8c5c38 |
***************
|
|
Karsten Hopp |
8c5c38 |
*** 52,57 ****
|
|
Karsten Hopp |
8c5c38 |
--- 53,59 ----
|
|
Karsten Hopp |
8c5c38 |
int list_append_string __ARGS((list_T *l, char_u *str, int len));
|
|
Karsten Hopp |
8c5c38 |
int garbage_collect __ARGS((void));
|
|
Karsten Hopp |
8c5c38 |
dict_T *dict_alloc __ARGS((void));
|
|
Karsten Hopp |
8c5c38 |
+ void dict_unref __ARGS((dict_T *d));
|
|
Karsten Hopp |
8c5c38 |
dictitem_T *dictitem_alloc __ARGS((char_u *key));
|
|
Karsten Hopp |
8c5c38 |
void dictitem_free __ARGS((dictitem_T *item));
|
|
Karsten Hopp |
8c5c38 |
int dict_add __ARGS((dict_T *d, dictitem_T *item));
|
|
Karsten Hopp |
8c5c38 |
*** ../vim-7.3.310/src/version.c 2011-09-14 16:04:52.000000000 +0200
|
|
Karsten Hopp |
8c5c38 |
--- src/version.c 2011-09-14 16:25:08.000000000 +0200
|
|
Karsten Hopp |
8c5c38 |
***************
|
|
Karsten Hopp |
8c5c38 |
*** 711,712 ****
|
|
Karsten Hopp |
8c5c38 |
--- 711,714 ----
|
|
Karsten Hopp |
8c5c38 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
8c5c38 |
+ /**/
|
|
Karsten Hopp |
8c5c38 |
+ 311,
|
|
Karsten Hopp |
8c5c38 |
/**/
|
|
Karsten Hopp |
8c5c38 |
|
|
Karsten Hopp |
8c5c38 |
--
|
|
Karsten Hopp |
8c5c38 |
Contrary to popular belief, it's often your clothing that gets promoted, not
|
|
Karsten Hopp |
8c5c38 |
you.
|
|
Karsten Hopp |
8c5c38 |
(Scott Adams - The Dilbert principle)
|
|
Karsten Hopp |
8c5c38 |
|
|
Karsten Hopp |
8c5c38 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
8c5c38 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
8c5c38 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
8c5c38 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|