comparison src/eval.c @ 8889:8755d57debaa v7.4.1731

commit https://github.com/vim/vim/commit/8110a091bc749d8748a20807a724a3af3ca6d509 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 14 15:56:09 2016 +0200 patch 7.4.1731 Problem: Python: turns partial into simple funcref. Solution: Use partials like partials. (Nikolai Pavlov, closes https://github.com/vim/vim/issues/734)
author Christian Brabandt <cb@256bit.org>
date Thu, 14 Apr 2016 16:00:06 +0200
parents 8bf855dea79e
children 460c8cc144f0
comparison
equal deleted inserted replaced
8888:a63c61b66a49 8889:8755d57debaa
451 static dict_T *dict_copy(dict_T *orig, int deep, int copyID); 451 static dict_T *dict_copy(dict_T *orig, int deep, int copyID);
452 static long dict_len(dict_T *d); 452 static long dict_len(dict_T *d);
453 static char_u *dict2string(typval_T *tv, int copyID); 453 static char_u *dict2string(typval_T *tv, int copyID);
454 static int get_dict_tv(char_u **arg, typval_T *rettv, int evaluate); 454 static int get_dict_tv(char_u **arg, typval_T *rettv, int evaluate);
455 static char_u *echo_string(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID); 455 static char_u *echo_string(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID);
456 static char_u *tv2string(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID);
457 static char_u *string_quote(char_u *str, int function); 456 static char_u *string_quote(char_u *str, int function);
458 static int get_env_tv(char_u **arg, typval_T *rettv, int evaluate); 457 static int get_env_tv(char_u **arg, typval_T *rettv, int evaluate);
459 static int find_internal_func(char_u *name); 458 static int find_internal_func(char_u *name);
460 static char_u *deref_func_name(char_u *name, int *lenp, partial_T **partial, int no_autoload); 459 static char_u *deref_func_name(char_u *name, int *lenp, partial_T **partial, int no_autoload);
461 static int get_func_tv(char_u *name, int len, typval_T *rettv, char_u **arg, linenr_T firstline, linenr_T lastline, int *doesrange, int evaluate, partial_T *partial, dict_T *selfdict); 460 static int get_func_tv(char_u *name, int len, typval_T *rettv, char_u **arg, linenr_T firstline, linenr_T lastline, int *doesrange, int evaluate, partial_T *partial, dict_T *selfdict);
8151 * If the memory is allocated "tofree" is set to it, otherwise NULL. 8150 * If the memory is allocated "tofree" is set to it, otherwise NULL.
8152 * "numbuf" is used for a number. 8151 * "numbuf" is used for a number.
8153 * Puts quotes around strings, so that they can be parsed back by eval(). 8152 * Puts quotes around strings, so that they can be parsed back by eval().
8154 * May return NULL. 8153 * May return NULL.
8155 */ 8154 */
8156 static char_u * 8155 char_u *
8157 tv2string( 8156 tv2string(
8158 typval_T *tv, 8157 typval_T *tv,
8159 char_u **tofree, 8158 char_u **tofree,
8160 char_u *numbuf, 8159 char_u *numbuf,
8161 int copyID) 8160 int copyID)