xref: /vim-8.2.3635/src/proto/misc2.pro (revision 4c295027)
1/* misc2.c */
2int virtual_active(void);
3int getviscol(void);
4int coladvance_force(colnr_T wcol);
5int getviscol2(colnr_T col, colnr_T coladd);
6int coladvance(colnr_T wcol);
7int getvpos(pos_T *pos, colnr_T wcol);
8int inc_cursor(void);
9int inc(pos_T *lp);
10int incl(pos_T *lp);
11int dec_cursor(void);
12int dec(pos_T *lp);
13int decl(pos_T *lp);
14linenr_T get_cursor_rel_lnum(win_T *wp, linenr_T lnum);
15void check_pos(buf_T *buf, pos_T *pos);
16void check_cursor_lnum(void);
17void check_cursor_col(void);
18void check_cursor_col_win(win_T *win);
19void check_cursor(void);
20void adjust_cursor_col(void);
21int leftcol_changed(void);
22void vim_mem_profile_dump(void);
23int alloc_does_fail(size_t size);
24void *alloc(size_t size);
25void *alloc_id(size_t size, alloc_id_T id);
26void *alloc_clear(size_t size);
27void *alloc_clear_id(size_t size, alloc_id_T id);
28void *lalloc_clear(size_t size, int message);
29void *lalloc(size_t size, int message);
30void *lalloc_id(size_t size, int message, alloc_id_T id);
31void *mem_realloc(void *ptr, size_t size);
32void do_outofmem_msg(size_t size);
33void free_all_mem(void);
34char_u *vim_strsave(char_u *string);
35char_u *vim_strnsave(char_u *string, size_t len);
36char_u *vim_memsave(char_u *p, size_t len);
37char_u *vim_strsave_escaped(char_u *string, char_u *esc_chars);
38char_u *vim_strsave_escaped_ext(char_u *string, char_u *esc_chars, int cc, int bsl);
39int csh_like_shell(void);
40char_u *vim_strsave_shellescape(char_u *string, int do_special, int do_newline);
41char_u *vim_strsave_up(char_u *string);
42char_u *vim_strnsave_up(char_u *string, size_t len);
43void vim_strup(char_u *p);
44char_u *strup_save(char_u *orig);
45char_u *strlow_save(char_u *orig);
46void del_trailing_spaces(char_u *ptr);
47void vim_strncpy(char_u *to, char_u *from, size_t len);
48void vim_strcat(char_u *to, char_u *from, size_t tosize);
49int copy_option_part(char_u **option, char_u *buf, int maxlen, char *sep_chars);
50void vim_free(void *x);
51int vim_stricmp(char *s1, char *s2);
52int vim_strnicmp(char *s1, char *s2, size_t len);
53char_u *vim_strchr(char_u *string, int c);
54char_u *vim_strbyte(char_u *string, int c);
55char_u *vim_strrchr(char_u *string, int c);
56int vim_isspace(int x);
57void ga_clear(garray_T *gap);
58void ga_clear_strings(garray_T *gap);
59int ga_copy_strings(garray_T *from, garray_T *to);
60void ga_init(garray_T *gap);
61void ga_init2(garray_T *gap, int itemsize, int growsize);
62int ga_grow(garray_T *gap, int n);
63int ga_grow_inner(garray_T *gap, int n);
64char_u *ga_concat_strings(garray_T *gap, char *sep);
65void ga_add_string(garray_T *gap, char_u *p);
66void ga_concat(garray_T *gap, char_u *s);
67void ga_append(garray_T *gap, int c);
68void append_ga_line(garray_T *gap);
69int simplify_key(int key, int *modifiers);
70int handle_x_keys(int key);
71char_u *get_special_key_name(int c, int modifiers);
72int trans_special(char_u **srcp, char_u *dst, int flags, int *did_simplify);
73int special_to_buf(int key, int modifiers, int keycode, char_u *dst);
74int find_special_key(char_u **srcp, int *modp, int flags, int *did_simplify);
75int may_adjust_key_for_ctrl(int modifiers, int key);
76int may_remove_shift_modifier(int modifiers, int key);
77int extract_modifiers(int key, int *modp, int simplify, int *did_simplify);
78int find_special_key_in_table(int c);
79int get_special_key_code(char_u *name);
80char_u *get_key_name(int i);
81int get_fileformat(buf_T *buf);
82int get_fileformat_force(buf_T *buf, exarg_T *eap);
83void set_fileformat(int t, int opt_flags);
84int default_fileformat(void);
85int call_shell(char_u *cmd, int opt);
86int get_real_state(void);
87int after_pathsep(char_u *b, char_u *p);
88int same_directory(char_u *f1, char_u *f2);
89int vim_chdirfile(char_u *fname, char *trigger_autocmd);
90int vim_stat(const char *name, stat_T *stp);
91char *parse_shape_opt(int what);
92int get_shape_idx(int mouse);
93void update_mouseshape(int shape_idx);
94int vim_chdir(char_u *new_dir);
95int get_user_name(char_u *buf, int len);
96void sort_strings(char_u **files, int count);
97int filewritable(char_u *fname);
98int get2c(FILE *fd);
99int get3c(FILE *fd);
100int get4c(FILE *fd);
101char_u *read_string(FILE *fd, int cnt);
102int put_bytes(FILE *fd, long_u nr, int len);
103int has_non_ascii(char_u *s);
104int mch_parse_cmd(char_u *cmd, int use_shcf, char ***argv, int *argc);
105int build_argv_from_string(char_u *cmd, char ***argv, int *argc);
106int build_argv_from_list(list_T *l, char ***argv, int *argc);
107int get_special_pty_type(void);
108/* vim: set ft=c : */
109