blob: 144324f6ed6d2d3c66941d58ed8eb31eddac118f [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);
Bram Moolenaard5824ce2016-09-04 20:35:01 +020015void check_pos(buf_T *buf, pos_T *pos);
Bram Moolenaaref269542016-01-19 13:22:12 +010016void 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);
23char_u *alloc(unsigned size);
24char_u *alloc_id(unsigned size, alloc_id_T id);
25char_u *alloc_clear(unsigned size);
26char_u *alloc_check(unsigned size);
27char_u *lalloc_clear(long_u size, int message);
28char_u *lalloc(long_u size, int message);
29char_u *lalloc_id(long_u size, int message, alloc_id_T id);
30void *mem_realloc(void *ptr, size_t size);
31void do_outofmem_msg(long_u size);
32void free_all_mem(void);
33char_u *vim_strsave(char_u *string);
34char_u *vim_strnsave(char_u *string, int len);
35char_u *vim_strsave_escaped(char_u *string, char_u *esc_chars);
36char_u *vim_strsave_escaped_ext(char_u *string, char_u *esc_chars, int cc, int bsl);
37int csh_like_shell(void);
38char_u *vim_strsave_shellescape(char_u *string, int do_special, int do_newline);
39char_u *vim_strsave_up(char_u *string);
40char_u *vim_strnsave_up(char_u *string, int len);
41void vim_strup(char_u *p);
42char_u *strup_save(char_u *orig);
43void del_trailing_spaces(char_u *ptr);
44void vim_strncpy(char_u *to, char_u *from, size_t len);
45void vim_strcat(char_u *to, char_u *from, size_t tosize);
46int copy_option_part(char_u **option, char_u *buf, int maxlen, char *sep_chars);
47void vim_free(void *x);
48int vim_stricmp(char *s1, char *s2);
49int vim_strnicmp(char *s1, char *s2, size_t len);
50char_u *vim_strchr(char_u *string, int c);
51char_u *vim_strbyte(char_u *string, int c);
52char_u *vim_strrchr(char_u *string, int c);
53int vim_isspace(int x);
54void ga_clear(garray_T *gap);
55void ga_clear_strings(garray_T *gap);
56void ga_init(garray_T *gap);
57void ga_init2(garray_T *gap, int itemsize, int growsize);
58int ga_grow(garray_T *gap, int n);
59char_u *ga_concat_strings(garray_T *gap, char *sep);
60void ga_add_string(garray_T *gap, char_u *p);
61void ga_concat(garray_T *gap, char_u *s);
62void ga_append(garray_T *gap, int c);
63void append_ga_line(garray_T *gap);
64int name_to_mod_mask(int c);
65int simplify_key(int key, int *modifiers);
66int handle_x_keys(int key);
67char_u *get_special_key_name(int c, int modifiers);
Bram Moolenaar35a4cfa2016-08-14 16:07:48 +020068int trans_special(char_u **srcp, char_u *dst, int keycode, int in_string);
69int find_special_key(char_u **srcp, int *modp, int keycode, int keep_x_key, int in_string);
Bram Moolenaaref269542016-01-19 13:22:12 +010070int extract_modifiers(int key, int *modp);
71int find_special_key_in_table(int c);
72int get_special_key_code(char_u *name);
73char_u *get_key_name(int i);
74int get_mouse_button(int code, int *is_click, int *is_drag);
75int get_pseudo_mouse_code(int button, int is_click, int is_drag);
76int get_fileformat(buf_T *buf);
77int get_fileformat_force(buf_T *buf, exarg_T *eap);
78void set_fileformat(int t, int opt_flags);
79int default_fileformat(void);
80int call_shell(char_u *cmd, int opt);
81int get_real_state(void);
82int after_pathsep(char_u *b, char_u *p);
83int same_directory(char_u *f1, char_u *f2);
84int vim_chdirfile(char_u *fname);
85int illegal_slash(char *name);
86char_u *parse_shape_opt(int what);
87int get_shape_idx(int mouse);
88void update_mouseshape(int shape_idx);
89void *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);
90char_u *vim_findfile_stopdir(char_u *buf);
91void vim_findfile_cleanup(void *ctx);
92char_u *vim_findfile(void *search_ctx_arg);
93void vim_findfile_free_visited(void *search_ctx_arg);
94char_u *find_file_in_path(char_u *ptr, int len, int options, int first, char_u *rel_fname);
95char_u *find_directory_in_path(char_u *ptr, int len, int options, char_u *rel_fname);
96char_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);
97int vim_chdir(char_u *new_dir);
98int get_user_name(char_u *buf, int len);
99void sort_strings(char_u **files, int count);
100int pathcmp(const char *p, const char *q, int maxlen);
101int filewritable(char_u *fname);
Bram Moolenaaref269542016-01-19 13:22:12 +0100102int get2c(FILE *fd);
103int get3c(FILE *fd);
104int get4c(FILE *fd);
Bram Moolenaarf4fba6d2016-06-26 16:44:24 +0200105time_T get8ctime(FILE *fd);
Bram Moolenaaref269542016-01-19 13:22:12 +0100106char_u *read_string(FILE *fd, int cnt);
107int put_bytes(FILE *fd, long_u nr, int len);
Bram Moolenaarf4fba6d2016-06-26 16:44:24 +0200108int put_time(FILE *fd, time_T the_time);
109void time_to_bytes(time_T the_time, char_u *buf);
Bram Moolenaaref269542016-01-19 13:22:12 +0100110int has_non_ascii(char_u *s);
111void parse_queued_messages(void);
Bram Moolenaar071d4272004-06-13 20:20:40 +0000112/* vim: set ft=c : */