Mercurial > vim
comparison src/proto/typval.pro @ 20587:f502455965c0 v8.2.0847
patch 8.2.0847: typval related code is spread out
Commit: https://github.com/vim/vim/commit/367d59e6ba65cf554d167933775fa17e40dcc6a7
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 30 17:06:14 2020 +0200
patch 8.2.0847: typval related code is spread out
Problem: Typval related code is spread out.
Solution: Move code to new typval.c file. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/6093)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 May 2020 17:15:03 +0200 |
parents | |
children | 4d844a65183d |
comparison
equal
deleted
inserted
replaced
20586:fed0050be1a1 | 20587:f502455965c0 |
---|---|
1 /* typval.c */ | |
2 typval_T *alloc_tv(void); | |
3 typval_T *alloc_string_tv(char_u *s); | |
4 void free_tv(typval_T *varp); | |
5 void clear_tv(typval_T *varp); | |
6 void init_tv(typval_T *varp); | |
7 int tv_check_lock(typval_T *tv, char_u *name, int use_gettext); | |
8 void copy_tv(typval_T *from, typval_T *to); | |
9 int typval_compare(typval_T *typ1, typval_T *typ2, exptype_T type, int ic); | |
10 char_u *typval_tostring(typval_T *arg); | |
11 int tv_islocked(typval_T *tv); | |
12 int tv_equal(typval_T *tv1, typval_T *tv2, int ic, int recursive); | |
13 int get_option_tv(char_u **arg, typval_T *rettv, int evaluate); | |
14 int get_number_tv(char_u **arg, typval_T *rettv, int evaluate, int want_string); | |
15 int get_string_tv(char_u **arg, typval_T *rettv, int evaluate); | |
16 int get_lit_string_tv(char_u **arg, typval_T *rettv, int evaluate); | |
17 char_u *tv2string(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID); | |
18 int get_env_tv(char_u **arg, typval_T *rettv, int evaluate); | |
19 varnumber_T tv_get_number(typval_T *varp); | |
20 varnumber_T tv_get_number_chk(typval_T *varp, int *denote); | |
21 float_T tv_get_float(typval_T *varp); | |
22 char_u *tv_get_string(typval_T *varp); | |
23 char_u *tv_get_string_buf(typval_T *varp, char_u *buf); | |
24 char_u *tv_get_string_chk(typval_T *varp); | |
25 char_u *tv_get_string_buf_chk(typval_T *varp, char_u *buf); | |
26 linenr_T tv_get_lnum(typval_T *argvars); | |
27 linenr_T tv_get_lnum_buf(typval_T *argvars, buf_T *buf); | |
28 buf_T *tv_get_buf(typval_T *tv, int curtab_only); | |
29 char_u *tv_stringify(typval_T *varp, char_u *buf); | |
30 /* vim: set ft=c : */ |