blob: 70c7dae5b6bb259dfae24cab905ff3ff9736da46 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001/* misc2.c */
Bram Moolenaaref269542016-01-19 13:22:12 +01002int virtual_active(void);
3int getviscol(void);
4int getviscol2(colnr_T col, colnr_T coladd);
5int coladvance_force(colnr_T wcol);
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_cursor_lnum(void);
16void check_cursor_col(void);
17void check_cursor_col_win(win_T *win);
18void check_cursor(void);
19void adjust_cursor_col(void);
20int leftcol_changed(void);
21void vim_mem_profile_dump(void);
22char_u *alloc(unsigned size);
23char_u *alloc_id(unsigned size, alloc_id_T id);
24char_u *alloc_clear(unsigned size);
25char_u *alloc_check(unsigned size);
26char_u *lalloc_clear(long_u size, int message);
27char_u *lalloc(long_u size, int message);
28char_u *lalloc_id(long_u size, int message, alloc_id_T id);
29void *mem_realloc(void *ptr, size_t size);
30void do_outofmem_msg(long_u size);
31void free_all_mem(void);
32char_u *vim_strsave(char_u *string);
33char_u *vim_strnsave(char_u *string, int len);
34char_u *vim_strsave_escaped(char_u *string, char_u *esc_chars);
35char_u *vim_strsave_escaped_ext(char_u *string, char_u *esc_chars, int cc, int bsl);
36int csh_like_shell(void);
37char_u *vim_strsave_shellescape(char_u *string, int do_special, int do_newline);
38char_u *vim_strsave_up(char_u *string);
39char_u *vim_strnsave_up(char_u *string, int len);
40void vim_strup(char_u *p);
41char_u *strup_save(char_u *orig);
42void del_trailing_spaces(char_u *ptr);
43void vim_strncpy(char_u *to, char_u *from, size_t len);
44void vim_strcat(char_u *to, char_u *from, size_t tosize);
45int copy_option_part(char_u **option, char_u *buf, int maxlen, char *sep_chars);
46void vim_free(void *x);
47int vim_stricmp(char *s1, char *s2);
48int vim_strnicmp(char *s1, char *s2, size_t len);
49char_u *vim_strchr(char_u *string, int c);
50char_u *vim_strbyte(char_u *string, int c);
51char_u *vim_strrchr(char_u *string, int c);
52int vim_isspace(int x);
53void ga_clear(garray_T *gap);
54void ga_clear_strings(garray_T *gap);
55void ga_init(garray_T *gap);
56void ga_init2(garray_T *gap, int itemsize, int growsize);
57int ga_grow(garray_T *gap, int n);
58char_u *ga_concat_strings(garray_T *gap, char *sep);
59void ga_add_string(garray_T *gap, char_u *p);
60void ga_concat(garray_T *gap, char_u *s);
61void ga_append(garray_T *gap, int c);
62void append_ga_line(garray_T *gap);
63int name_to_mod_mask(int c);
64int simplify_key(int key, int *modifiers);
65int handle_x_keys(int key);
66char_u *get_special_key_name(int c, int modifiers);
Bram Moolenaar35a4cfa2016-08-14 16:07:48 +020067int trans_special(char_u **srcp, char_u *dst, int keycode, int in_string);
68int find_special_key(char_u **srcp, int *modp, int keycode, int keep_x_key, int in_string);
Bram Moolenaaref269542016-01-19 13:22:12 +010069int extract_modifiers(int key, int *modp);
70int find_special_key_in_table(int c);
71int get_special_key_code(char_u *name);
72char_u *get_key_name(int i);
73int get_mouse_button(int code, int *is_click, int *is_drag);
74int get_pseudo_mouse_code(int button, int is_click, int is_drag);
75int get_fileformat(buf_T *buf);
76int get_fileformat_force(buf_T *buf, exarg_T *eap);
77void set_fileformat(int t, int opt_flags);
78int default_fileformat(void);
79int call_shell(char_u *cmd, int opt);
80int get_real_state(void);
81int after_pathsep(char_u *b, char_u *p);
82int same_directory(char_u *f1, char_u *f2);
83int vim_chdirfile(char_u *fname);
84int illegal_slash(char *name);
85char_u *parse_shape_opt(int what);
86int get_shape_idx(int mouse);
87void update_mouseshape(int shape_idx);
88void *vim_findfile_init(char_u *path, char_u *filename, char_u *stopdirs, int level, int free_visited, int find_what, void *search_ctx_arg, int tagfile, char_u *rel_fname);
89char_u *vim_findfile_stopdir(char_u *buf);
90void vim_findfile_cleanup(void *ctx);
91char_u *vim_findfile(void *search_ctx_arg);
92void vim_findfile_free_visited(void *search_ctx_arg);
93char_u *find_file_in_path(char_u *ptr, int len, int options, int first, char_u *rel_fname);
94char_u *find_directory_in_path(char_u *ptr, int len, int options, char_u *rel_fname);
95char_u *find_file_in_path_option(char_u *ptr, int len, int options, int first, char_u *path_option, int find_what, char_u *rel_fname, char_u *suffixes);
96int vim_chdir(char_u *new_dir);
97int get_user_name(char_u *buf, int len);
98void sort_strings(char_u **files, int count);
99int pathcmp(const char *p, const char *q, int maxlen);
100int filewritable(char_u *fname);
101int emsg3(char_u *s, char_u *a1, char_u *a2);
102int emsgn(char_u *s, long n);
103int get2c(FILE *fd);
104int get3c(FILE *fd);
105int get4c(FILE *fd);
Bram Moolenaarf4fba6d2016-06-26 16:44:24 +0200106time_T get8ctime(FILE *fd);
Bram Moolenaaref269542016-01-19 13:22:12 +0100107char_u *read_string(FILE *fd, int cnt);
108int put_bytes(FILE *fd, long_u nr, int len);
Bram Moolenaarf4fba6d2016-06-26 16:44:24 +0200109int put_time(FILE *fd, time_T the_time);
110void time_to_bytes(time_T the_time, char_u *buf);
Bram Moolenaaref269542016-01-19 13:22:12 +0100111int has_non_ascii(char_u *s);
112void parse_queued_messages(void);
Bram Moolenaar071d4272004-06-13 20:20:40 +0000113/* vim: set ft=c : */