Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | /* misc2.c */ |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 2 | int virtual_active(void); |
| 3 | int getviscol(void); |
| 4 | int getviscol2(colnr_T col, colnr_T coladd); |
| 5 | int coladvance_force(colnr_T wcol); |
| 6 | int coladvance(colnr_T wcol); |
| 7 | int getvpos(pos_T *pos, colnr_T wcol); |
| 8 | int inc_cursor(void); |
| 9 | int inc(pos_T *lp); |
| 10 | int incl(pos_T *lp); |
| 11 | int dec_cursor(void); |
| 12 | int dec(pos_T *lp); |
| 13 | int decl(pos_T *lp); |
| 14 | linenr_T get_cursor_rel_lnum(win_T *wp, linenr_T lnum); |
Bram Moolenaar | d5824ce | 2016-09-04 20:35:01 +0200 | [diff] [blame] | 15 | void check_pos(buf_T *buf, pos_T *pos); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 16 | void check_cursor_lnum(void); |
| 17 | void check_cursor_col(void); |
| 18 | void check_cursor_col_win(win_T *win); |
| 19 | void check_cursor(void); |
| 20 | void adjust_cursor_col(void); |
| 21 | int leftcol_changed(void); |
| 22 | void vim_mem_profile_dump(void); |
| 23 | char_u *alloc(unsigned size); |
| 24 | char_u *alloc_id(unsigned size, alloc_id_T id); |
| 25 | char_u *alloc_clear(unsigned size); |
| 26 | char_u *alloc_check(unsigned size); |
| 27 | char_u *lalloc_clear(long_u size, int message); |
| 28 | char_u *lalloc(long_u size, int message); |
| 29 | char_u *lalloc_id(long_u size, int message, alloc_id_T id); |
| 30 | void *mem_realloc(void *ptr, size_t size); |
| 31 | void do_outofmem_msg(long_u size); |
| 32 | void free_all_mem(void); |
| 33 | char_u *vim_strsave(char_u *string); |
| 34 | char_u *vim_strnsave(char_u *string, int len); |
| 35 | char_u *vim_strsave_escaped(char_u *string, char_u *esc_chars); |
| 36 | char_u *vim_strsave_escaped_ext(char_u *string, char_u *esc_chars, int cc, int bsl); |
| 37 | int csh_like_shell(void); |
| 38 | char_u *vim_strsave_shellescape(char_u *string, int do_special, int do_newline); |
| 39 | char_u *vim_strsave_up(char_u *string); |
| 40 | char_u *vim_strnsave_up(char_u *string, int len); |
| 41 | void vim_strup(char_u *p); |
| 42 | char_u *strup_save(char_u *orig); |
Bram Moolenaar | cc5b22b | 2017-01-26 22:51:56 +0100 | [diff] [blame] | 43 | char_u *strlow_save(char_u *orig); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 44 | void del_trailing_spaces(char_u *ptr); |
| 45 | void vim_strncpy(char_u *to, char_u *from, size_t len); |
| 46 | void vim_strcat(char_u *to, char_u *from, size_t tosize); |
| 47 | int copy_option_part(char_u **option, char_u *buf, int maxlen, char *sep_chars); |
| 48 | void vim_free(void *x); |
| 49 | int vim_stricmp(char *s1, char *s2); |
| 50 | int vim_strnicmp(char *s1, char *s2, size_t len); |
| 51 | char_u *vim_strchr(char_u *string, int c); |
| 52 | char_u *vim_strbyte(char_u *string, int c); |
| 53 | char_u *vim_strrchr(char_u *string, int c); |
| 54 | int vim_isspace(int x); |
| 55 | void ga_clear(garray_T *gap); |
| 56 | void ga_clear_strings(garray_T *gap); |
| 57 | void ga_init(garray_T *gap); |
| 58 | void ga_init2(garray_T *gap, int itemsize, int growsize); |
| 59 | int ga_grow(garray_T *gap, int n); |
| 60 | char_u *ga_concat_strings(garray_T *gap, char *sep); |
| 61 | void ga_add_string(garray_T *gap, char_u *p); |
| 62 | void ga_concat(garray_T *gap, char_u *s); |
| 63 | void ga_append(garray_T *gap, int c); |
| 64 | void append_ga_line(garray_T *gap); |
| 65 | int name_to_mod_mask(int c); |
| 66 | int simplify_key(int key, int *modifiers); |
| 67 | int handle_x_keys(int key); |
| 68 | char_u *get_special_key_name(int c, int modifiers); |
Bram Moolenaar | 35a4cfa | 2016-08-14 16:07:48 +0200 | [diff] [blame] | 69 | int trans_special(char_u **srcp, char_u *dst, int keycode, int in_string); |
| 70 | int find_special_key(char_u **srcp, int *modp, int keycode, int keep_x_key, int in_string); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 71 | int extract_modifiers(int key, int *modp); |
| 72 | int find_special_key_in_table(int c); |
| 73 | int get_special_key_code(char_u *name); |
| 74 | char_u *get_key_name(int i); |
| 75 | int get_mouse_button(int code, int *is_click, int *is_drag); |
| 76 | int get_pseudo_mouse_code(int button, int is_click, int is_drag); |
| 77 | int get_fileformat(buf_T *buf); |
| 78 | int get_fileformat_force(buf_T *buf, exarg_T *eap); |
| 79 | void set_fileformat(int t, int opt_flags); |
| 80 | int default_fileformat(void); |
| 81 | int call_shell(char_u *cmd, int opt); |
| 82 | int get_real_state(void); |
| 83 | int after_pathsep(char_u *b, char_u *p); |
| 84 | int same_directory(char_u *f1, char_u *f2); |
| 85 | int vim_chdirfile(char_u *fname); |
Bram Moolenaar | 91acfff | 2017-03-12 19:22:36 +0100 | [diff] [blame] | 86 | int vim_stat(const char *name, stat_T *stp); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 87 | char_u *parse_shape_opt(int what); |
| 88 | int get_shape_idx(int mouse); |
| 89 | void update_mouseshape(int shape_idx); |
| 90 | void *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); |
| 91 | char_u *vim_findfile_stopdir(char_u *buf); |
| 92 | void vim_findfile_cleanup(void *ctx); |
| 93 | char_u *vim_findfile(void *search_ctx_arg); |
| 94 | void vim_findfile_free_visited(void *search_ctx_arg); |
| 95 | char_u *find_file_in_path(char_u *ptr, int len, int options, int first, char_u *rel_fname); |
| 96 | char_u *find_directory_in_path(char_u *ptr, int len, int options, char_u *rel_fname); |
| 97 | char_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); |
| 98 | int vim_chdir(char_u *new_dir); |
| 99 | int get_user_name(char_u *buf, int len); |
| 100 | void sort_strings(char_u **files, int count); |
| 101 | int pathcmp(const char *p, const char *q, int maxlen); |
| 102 | int filewritable(char_u *fname); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 103 | int get2c(FILE *fd); |
| 104 | int get3c(FILE *fd); |
| 105 | int get4c(FILE *fd); |
Bram Moolenaar | f4fba6d | 2016-06-26 16:44:24 +0200 | [diff] [blame] | 106 | time_T get8ctime(FILE *fd); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 107 | char_u *read_string(FILE *fd, int cnt); |
| 108 | int put_bytes(FILE *fd, long_u nr, int len); |
Bram Moolenaar | f4fba6d | 2016-06-26 16:44:24 +0200 | [diff] [blame] | 109 | int put_time(FILE *fd, time_T the_time); |
| 110 | void time_to_bytes(time_T the_time, char_u *buf); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 111 | int has_non_ascii(char_u *s); |
| 112 | void parse_queued_messages(void); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 113 | /* vim: set ft=c : */ |