diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-04-29 21:04:15 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-04-29 21:04:15 +0200 |
commit | ed8ce057b7a2fcd89b5f55680ae8f85d62a992a5 (patch) | |
tree | fea5d30140297aa6888bf6d68a4c00b62f425622 /src/proto | |
parent | 939b5db4808770d3a2ec35e3902a9d5165adc0cf (diff) | |
download | vim-git-ed8ce057b7a2fcd89b5f55680ae8f85d62a992a5.tar.gz |
patch 8.2.0660: the search.c file is a bit bigv8.2.0660
Problem: The search.c file is a bit big.
Solution: Split off the text object code to a separate file. (Yegappan
Lakshmanan, closes #6007)
Diffstat (limited to 'src/proto')
-rw-r--r-- | src/proto/search.pro | 13 | ||||
-rw-r--r-- | src/proto/textobject.pro | 16 |
2 files changed, 16 insertions, 13 deletions
diff --git a/src/proto/search.pro b/src/proto/search.pro index 018c33a4f..1e15a8828 100644 --- a/src/proto/search.pro +++ b/src/proto/search.pro @@ -30,19 +30,6 @@ int searchc(cmdarg_T *cap, int t_cmd); pos_T *findmatch(oparg_T *oap, int initc); pos_T *findmatchlimit(oparg_T *oap, int initc, int flags, int maxtravel); void showmatch(int c); -int findsent(int dir, long count); -int findpar(int *pincl, int dir, long count, int what, int both); -int startPS(linenr_T lnum, int para, int both); -int fwd_word(long count, int bigword, int eol); -int bck_word(long count, int bigword, int stop); -int end_word(long count, int bigword, int stop, int empty); -int bckend_word(long count, int bigword, int eol); -int current_word(oparg_T *oap, long count, int include, int bigword); -int current_sent(oparg_T *oap, long count, int include); -int current_block(oparg_T *oap, long count, int include, int what, int other); -int current_tagblock(oparg_T *oap, long count_arg, int include); -int current_par(oparg_T *oap, long count, int include, int type); -int current_quote(oparg_T *oap, long count, int include, int quotechar); int current_search(long count, int forward); int linewhite(linenr_T lnum); void find_pattern_in_path(char_u *ptr, int dir, int len, int whole, int skip_comments, int type, long count, int action, linenr_T start_lnum, linenr_T end_lnum); diff --git a/src/proto/textobject.pro b/src/proto/textobject.pro new file mode 100644 index 000000000..793197914 --- /dev/null +++ b/src/proto/textobject.pro @@ -0,0 +1,16 @@ +/* textobject.c */ +int findsent(int dir, long count); +int findpar(int *pincl, int dir, long count, int what, int both); +int startPS(linenr_T lnum, int para, int both); +int fwd_word(long count, int bigword, int eol); +int bck_word(long count, int bigword, int stop); +int end_word(long count, int bigword, int stop, int empty); +int bckend_word(long count, int bigword, int eol); +int current_word(oparg_T *oap, long count, int include, int bigword); +int current_sent(oparg_T *oap, long count, int include); +int current_block(oparg_T *oap, long count, int include, int what, int other); +int current_tagblock(oparg_T *oap, long count_arg, int include); +int current_par(oparg_T *oap, long count, int include, int type); +int current_quote(oparg_T *oap, long count, int include, int quotechar); +/* vim: set ft=c : */ + |