blob: aac522f1529e440fc44bdd736257ea12d20f0d90 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001/* getchar.c */
Bram Moolenaaref269542016-01-19 13:22:12 +01002void free_buff(buffheader_T *buf);
3char_u *get_recorded(void);
4char_u *get_inserted(void);
5int stuff_empty(void);
6int readbuf1_empty(void);
7void typeahead_noflush(int c);
8void flush_buffers(int flush_typeahead);
9void ResetRedobuff(void);
10void CancelRedo(void);
Bram Moolenaard4863aa2017-04-07 19:50:12 +020011void saveRedobuff(save_redo_T *save_redo);
12void restoreRedobuff(save_redo_T *save_redo);
Bram Moolenaaref269542016-01-19 13:22:12 +010013void AppendToRedobuff(char_u *s);
14void AppendToRedobuffLit(char_u *str, int len);
15void AppendCharToRedobuff(int c);
16void AppendNumberToRedobuff(long n);
17void stuffReadbuff(char_u *s);
18void stuffRedoReadbuff(char_u *s);
19void stuffReadbuffLen(char_u *s, long len);
20void stuffReadbuffSpec(char_u *s);
21void stuffcharReadbuff(int c);
22void stuffnumReadbuff(long n);
23int start_redo(long count, int old_redo);
24int start_redo_ins(void);
25void stop_redo_ins(void);
26int ins_typebuf(char_u *str, int noremap, int offset, int nottyped, int silent);
27void ins_char_typebuf(int c);
28int typebuf_changed(int tb_change_cnt);
29int typebuf_typed(void);
30int typebuf_maplen(void);
31void del_typebuf(int len, int offset);
32int alloc_typebuf(void);
33void free_typebuf(void);
34int save_typebuf(void);
35void save_typeahead(tasave_T *tp);
36void restore_typeahead(tasave_T *tp);
37void openscript(char_u *name, int directly);
38void close_all_scripts(void);
39int using_script(void);
40void before_blocking(void);
41void updatescript(int c);
42int vgetc(void);
43int safe_vgetc(void);
44int plain_vgetc(void);
45int vpeekc(void);
46int vpeekc_nomap(void);
47int vpeekc_any(void);
48int char_avail(void);
49void vungetc(int c);
Bram Moolenaar6bff02e2016-08-16 22:50:55 +020050int fix_input_buffer(char_u *buf, int len);
Bram Moolenaaref269542016-01-19 13:22:12 +010051int input_available(void);
52int do_map(int maptype, char_u *arg, int mode, int abbrev);
53int get_map_mode(char_u **cmdp, int forceit);
54void map_clear(char_u *cmdp, char_u *arg, int forceit, int abbr);
55void map_clear_int(buf_T *buf, int mode, int local, int abbr);
56char_u *map_mode_to_chars(int mode);
57int map_to_exists(char_u *str, char_u *modechars, int abbr);
58int map_to_exists_mode(char_u *rhs, int mode, int abbr);
59char_u *set_context_in_map_cmd(expand_T *xp, char_u *cmd, char_u *arg, int forceit, int isabbrev, int isunmap, cmdidx_T cmdidx);
60int ExpandMappings(regmatch_T *regmatch, int *num_file, char_u ***file);
61int check_abbr(int c, char_u *ptr, int col, int mincol);
62char_u *vim_strsave_escape_csi(char_u *p);
63void vim_unescape_csi(char_u *p);
64int makemap(FILE *fd, buf_T *buf);
65int put_escstr(FILE *fd, char_u *strstart, int what);
66void check_map_keycodes(void);
67char_u *check_map(char_u *keys, int mode, int exact, int ign_mod, int abbr, mapblock_T **mp_ptr, int *local_ptr);
68void init_mappings(void);
69void add_map(char_u *map, int mode);
Bram Moolenaar071d4272004-06-13 20:20:40 +000070/* vim: set ft=c : */