1/* misc2.c */ 2int 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_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); 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); 43char_u *strlow_save(char_u *orig); 44void del_trailing_spaces(char_u *ptr); 45void vim_strncpy(char_u *to, char_u *from, size_t len); 46void vim_strcat(char_u *to, char_u *from, size_t tosize); 47int copy_option_part(char_u **option, char_u *buf, int maxlen, char *sep_chars); 48void vim_free(void *x); 49int vim_stricmp(char *s1, char *s2); 50int vim_strnicmp(char *s1, char *s2, size_t len); 51char_u *vim_strchr(char_u *string, int c); 52char_u *vim_strbyte(char_u *string, int c); 53char_u *vim_strrchr(char_u *string, int c); 54int vim_isspace(int x); 55void ga_clear(garray_T *gap); 56void ga_clear_strings(garray_T *gap); 57void ga_init(garray_T *gap); 58void ga_init2(garray_T *gap, int itemsize, int growsize); 59int ga_grow(garray_T *gap, int n); 60char_u *ga_concat_strings(garray_T *gap, char *sep); 61void ga_add_string(garray_T *gap, char_u *p); 62void ga_concat(garray_T *gap, char_u *s); 63void ga_append(garray_T *gap, int c); 64void append_ga_line(garray_T *gap); 65int name_to_mod_mask(int c); 66int simplify_key(int key, int *modifiers); 67int handle_x_keys(int key); 68char_u *get_special_key_name(int c, int modifiers); 69int trans_special(char_u **srcp, char_u *dst, int keycode, int in_string); 70int find_special_key(char_u **srcp, int *modp, int keycode, int keep_x_key, int in_string); 71int extract_modifiers(int key, int *modp); 72int find_special_key_in_table(int c); 73int get_special_key_code(char_u *name); 74char_u *get_key_name(int i); 75int get_mouse_button(int code, int *is_click, int *is_drag); 76int get_pseudo_mouse_code(int button, int is_click, int is_drag); 77int get_fileformat(buf_T *buf); 78int get_fileformat_force(buf_T *buf, exarg_T *eap); 79void set_fileformat(int t, int opt_flags); 80int default_fileformat(void); 81int call_shell(char_u *cmd, int opt); 82int get_real_state(void); 83int after_pathsep(char_u *b, char_u *p); 84int same_directory(char_u *f1, char_u *f2); 85int vim_chdirfile(char_u *fname); 86int vim_stat(const char *name, stat_T *stp); 87char_u *parse_shape_opt(int what); 88int get_shape_idx(int mouse); 89void update_mouseshape(int shape_idx); 90void *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); 91char_u *vim_findfile_stopdir(char_u *buf); 92void vim_findfile_cleanup(void *ctx); 93char_u *vim_findfile(void *search_ctx_arg); 94void vim_findfile_free_visited(void *search_ctx_arg); 95char_u *find_file_in_path(char_u *ptr, int len, int options, int first, char_u *rel_fname); 96char_u *find_directory_in_path(char_u *ptr, int len, int options, char_u *rel_fname); 97char_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); 98int vim_chdir(char_u *new_dir); 99int get_user_name(char_u *buf, int len); 100void sort_strings(char_u **files, int count); 101int pathcmp(const char *p, const char *q, int maxlen); 102int filewritable(char_u *fname); 103int get2c(FILE *fd); 104int get3c(FILE *fd); 105int get4c(FILE *fd); 106time_T get8ctime(FILE *fd); 107char_u *read_string(FILE *fd, int cnt); 108int put_bytes(FILE *fd, long_u nr, int len); 109int put_time(FILE *fd, time_T the_time); 110void time_to_bytes(time_T the_time, char_u *buf); 111int has_non_ascii(char_u *s); 112void parse_queued_messages(void); 113/* vim: set ft=c : */ 114