0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

updated for version 7.1a

This commit is contained in:
Bram Moolenaar 2007-05-06 13:04:32 +00:00
parent 24b231793e
commit e9400a45da
2 changed files with 65 additions and 65 deletions

View File

@ -1,66 +1,66 @@
/* getchar.c */ /* getchar.c */
extern void free_buff __ARGS((struct buffheader *buf)); void free_buff __ARGS((struct buffheader *buf));
extern char_u *get_recorded __ARGS((void)); char_u *get_recorded __ARGS((void));
extern char_u *get_inserted __ARGS((void)); char_u *get_inserted __ARGS((void));
extern int stuff_empty __ARGS((void)); int stuff_empty __ARGS((void));
extern void typeahead_noflush __ARGS((int c)); void typeahead_noflush __ARGS((int c));
extern void flush_buffers __ARGS((int typeahead)); void flush_buffers __ARGS((int typeahead));
extern void ResetRedobuff __ARGS((void)); void ResetRedobuff __ARGS((void));
extern void saveRedobuff __ARGS((void)); void saveRedobuff __ARGS((void));
extern void restoreRedobuff __ARGS((void)); void restoreRedobuff __ARGS((void));
extern void AppendToRedobuff __ARGS((char_u *s)); void AppendToRedobuff __ARGS((char_u *s));
extern void AppendToRedobuffLit __ARGS((char_u *str, int len)); void AppendToRedobuffLit __ARGS((char_u *str, int len));
extern void AppendCharToRedobuff __ARGS((int c)); void AppendCharToRedobuff __ARGS((int c));
extern void AppendNumberToRedobuff __ARGS((long n)); void AppendNumberToRedobuff __ARGS((long n));
extern void stuffReadbuff __ARGS((char_u *s)); void stuffReadbuff __ARGS((char_u *s));
extern void stuffReadbuffLen __ARGS((char_u *s, long len)); void stuffReadbuffLen __ARGS((char_u *s, long len));
extern void stuffReadbuffSpec __ARGS((char_u *s)); void stuffReadbuffSpec __ARGS((char_u *s));
extern void stuffcharReadbuff __ARGS((int c)); void stuffcharReadbuff __ARGS((int c));
extern void stuffnumReadbuff __ARGS((long n)); void stuffnumReadbuff __ARGS((long n));
extern int start_redo __ARGS((long count, int old_redo)); int start_redo __ARGS((long count, int old_redo));
extern int start_redo_ins __ARGS((void)); int start_redo_ins __ARGS((void));
extern void stop_redo_ins __ARGS((void)); void stop_redo_ins __ARGS((void));
extern int ins_typebuf __ARGS((char_u *str, int noremap, int offset, int nottyped, int silent)); int ins_typebuf __ARGS((char_u *str, int noremap, int offset, int nottyped, int silent));
extern void ins_char_typebuf __ARGS((int c)); void ins_char_typebuf __ARGS((int c));
extern int typebuf_changed __ARGS((int tb_change_cnt)); int typebuf_changed __ARGS((int tb_change_cnt));
extern int typebuf_typed __ARGS((void)); int typebuf_typed __ARGS((void));
extern int typebuf_maplen __ARGS((void)); int typebuf_maplen __ARGS((void));
extern void del_typebuf __ARGS((int len, int offset)); void del_typebuf __ARGS((int len, int offset));
extern int alloc_typebuf __ARGS((void)); int alloc_typebuf __ARGS((void));
extern void free_typebuf __ARGS((void)); void free_typebuf __ARGS((void));
extern int save_typebuf __ARGS((void)); int save_typebuf __ARGS((void));
extern void save_typeahead __ARGS((tasave_T *tp)); void save_typeahead __ARGS((tasave_T *tp));
extern void restore_typeahead __ARGS((tasave_T *tp)); void restore_typeahead __ARGS((tasave_T *tp));
extern void openscript __ARGS((char_u *name, int directly)); void openscript __ARGS((char_u *name, int directly));
extern void close_all_scripts __ARGS((void)); void close_all_scripts __ARGS((void));
extern int using_script __ARGS((void)); int using_script __ARGS((void));
extern void before_blocking __ARGS((void)); void before_blocking __ARGS((void));
extern void updatescript __ARGS((int c)); void updatescript __ARGS((int c));
extern int vgetc __ARGS((void)); int vgetc __ARGS((void));
extern int safe_vgetc __ARGS((void)); int safe_vgetc __ARGS((void));
extern int vpeekc __ARGS((void)); int vpeekc __ARGS((void));
extern int vpeekc_nomap __ARGS((void)); int vpeekc_nomap __ARGS((void));
extern int vpeekc_any __ARGS((void)); int vpeekc_any __ARGS((void));
extern int char_avail __ARGS((void)); int char_avail __ARGS((void));
extern void vungetc __ARGS((int c)); void vungetc __ARGS((int c));
extern int inchar __ARGS((char_u *buf, int maxlen, long wait_time, int tb_change_cnt)); int inchar __ARGS((char_u *buf, int maxlen, long wait_time, int tb_change_cnt));
extern int fix_input_buffer __ARGS((char_u *buf, int len, int script)); int fix_input_buffer __ARGS((char_u *buf, int len, int script));
extern int input_available __ARGS((void)); int input_available __ARGS((void));
extern int do_map __ARGS((int maptype, char_u *arg, int mode, int abbrev)); int do_map __ARGS((int maptype, char_u *arg, int mode, int abbrev));
extern int get_map_mode __ARGS((char_u **cmdp, int forceit)); int get_map_mode __ARGS((char_u **cmdp, int forceit));
extern void map_clear __ARGS((char_u *cmdp, char_u *arg, int forceit, int abbr)); void map_clear __ARGS((char_u *cmdp, char_u *arg, int forceit, int abbr));
extern void map_clear_int __ARGS((buf_T *buf, int mode, int local, int abbr)); void map_clear_int __ARGS((buf_T *buf, int mode, int local, int abbr));
extern int map_to_exists __ARGS((char_u *str, char_u *modechars, int abbr)); int map_to_exists __ARGS((char_u *str, char_u *modechars, int abbr));
extern int map_to_exists_mode __ARGS((char_u *rhs, int mode, int abbr)); int map_to_exists_mode __ARGS((char_u *rhs, int mode, int abbr));
extern char_u *set_context_in_map_cmd __ARGS((expand_T *xp, char_u *cmd, char_u *arg, int forceit, int isabbrev, int isunmap, cmdidx_T cmdidx)); char_u *set_context_in_map_cmd __ARGS((expand_T *xp, char_u *cmd, char_u *arg, int forceit, int isabbrev, int isunmap, cmdidx_T cmdidx));
extern int ExpandMappings __ARGS((regmatch_T *regmatch, int *num_file, char_u ***file)); int ExpandMappings __ARGS((regmatch_T *regmatch, int *num_file, char_u ***file));
extern int check_abbr __ARGS((int c, char_u *ptr, int col, int mincol)); int check_abbr __ARGS((int c, char_u *ptr, int col, int mincol));
extern char_u *vim_strsave_escape_csi __ARGS((char_u *p)); char_u *vim_strsave_escape_csi __ARGS((char_u *p));
extern void vim_unescape_csi __ARGS((char_u *p)); void vim_unescape_csi __ARGS((char_u *p));
extern int makemap __ARGS((FILE *fd, buf_T *buf)); int makemap __ARGS((FILE *fd, buf_T *buf));
extern int put_escstr __ARGS((FILE *fd, char_u *strstart, int what)); int put_escstr __ARGS((FILE *fd, char_u *strstart, int what));
extern void check_map_keycodes __ARGS((void)); void check_map_keycodes __ARGS((void));
extern char_u *check_map __ARGS((char_u *keys, int mode, int exact, int ign_mod, int abbr)); char_u *check_map __ARGS((char_u *keys, int mode, int exact, int ign_mod, int abbr));
extern void init_mappings __ARGS((void)); void init_mappings __ARGS((void));
extern void add_map __ARGS((char_u *map, int mode)); void add_map __ARGS((char_u *map, int mode));
/* vim: set ft=c : */ /* vim: set ft=c : */

View File

@ -3840,7 +3840,7 @@ regmatch(scan)
pos_T *pos; pos_T *pos;
pos = getmark(mark, FALSE); pos = getmark(mark, FALSE);
if (pos == NULL /* mark doesn't exist) */ if (pos == NULL /* mark doesn't exist */
|| pos->lnum <= 0 /* mark isn't set (in curbuf) */ || pos->lnum <= 0 /* mark isn't set (in curbuf) */
|| (pos->lnum == reglnum + reg_firstlnum || (pos->lnum == reglnum + reg_firstlnum
? (pos->col == (colnr_T)(reginput - regline) ? (pos->col == (colnr_T)(reginput - regline)