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, int 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, int 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); 59void ga_init(garray_T *gap); 60void ga_init2(garray_T *gap, int itemsize, int growsize); 61int ga_grow(garray_T *gap, int n); 62int ga_grow_inner(garray_T *gap, int n); 63char_u *ga_concat_strings(garray_T *gap, char *sep); 64void ga_add_string(garray_T *gap, char_u *p); 65void ga_concat(garray_T *gap, char_u *s); 66void ga_append(garray_T *gap, int c); 67void append_ga_line(garray_T *gap); 68int simplify_key(int key, int *modifiers); 69int handle_x_keys(int key); 70char_u *get_special_key_name(int c, int modifiers); 71int trans_special(char_u **srcp, char_u *dst, int keycode, int in_string, int simplify, int *did_simplify); 72int special_to_buf(int key, int modifiers, int keycode, char_u *dst); 73int find_special_key(char_u **srcp, int *modp, int keycode, int keep_x_key, int in_string, int simplify, int *did_simplify); 74int extract_modifiers(int key, int *modp, int simplify, int *did_simplify); 75int find_special_key_in_table(int c); 76int get_special_key_code(char_u *name); 77char_u *get_key_name(int i); 78int get_fileformat(buf_T *buf); 79int get_fileformat_force(buf_T *buf, exarg_T *eap); 80void set_fileformat(int t, int opt_flags); 81int default_fileformat(void); 82int call_shell(char_u *cmd, int opt); 83int get_real_state(void); 84int after_pathsep(char_u *b, char_u *p); 85int same_directory(char_u *f1, char_u *f2); 86int vim_chdirfile(char_u *fname, char *trigger_autocmd); 87int vim_stat(const char *name, stat_T *stp); 88char *parse_shape_opt(int what); 89int get_shape_idx(int mouse); 90void update_mouseshape(int shape_idx); 91int vim_chdir(char_u *new_dir); 92int get_user_name(char_u *buf, int len); 93void sort_strings(char_u **files, int count); 94int filewritable(char_u *fname); 95int get2c(FILE *fd); 96int get3c(FILE *fd); 97int get4c(FILE *fd); 98char_u *read_string(FILE *fd, int cnt); 99int put_bytes(FILE *fd, long_u nr, int len); 100int has_non_ascii(char_u *s); 101int mch_parse_cmd(char_u *cmd, int use_shcf, char ***argv, int *argc); 102int build_argv_from_string(char_u *cmd, char ***argv, int *argc); 103int build_argv_from_list(list_T *l, char ***argv, int *argc); 104int get_special_pty_type(void); 105/* vim: set ft=c : */ 106