comparison src/structs.h @ 17476:d4b2a212fa2f v8.1.1736

patch 8.1.1736: viminfo support is spread out commit https://github.com/vim/vim/commit/c3328169d5566b97a6a6921067017e4369dd7cd6 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jul 23 22:15:25 2019 +0200 patch 8.1.1736: viminfo support is spread out Problem: Viminfo support is spread out. Solution: Move more viminfo code to viminfo.c. (Yegappan Lakshmanan, closes #4717) Reorder code to make most functions static.
author Bram Moolenaar <Bram@vim.org>
date Tue, 23 Jul 2019 22:30:07 +0200
parents 3e708b5c0509
children 8bcece78339b
comparison
equal deleted inserted replaced
17475:8584e1c0e426 17476:d4b2a212fa2f
3749 typedef enum { 3749 typedef enum {
3750 IGNORE_POPUP, // only check non-popup windows 3750 IGNORE_POPUP, // only check non-popup windows
3751 FIND_POPUP, // also find popup windows 3751 FIND_POPUP, // also find popup windows
3752 FAIL_POPUP // return NULL if mouse on popup window 3752 FAIL_POPUP // return NULL if mouse on popup window
3753 } mouse_find_T; 3753 } mouse_find_T;
3754
3755 // Symbolic names for some registers.
3756 #define DELETION_REGISTER 36
3757 #ifdef FEAT_CLIPBOARD
3758 # define STAR_REGISTER 37
3759 # ifdef FEAT_X11
3760 # define PLUS_REGISTER 38
3761 # else
3762 # define PLUS_REGISTER STAR_REGISTER // there is only one
3763 # endif
3764 #endif
3765 #ifdef FEAT_DND
3766 # define TILDE_REGISTER (PLUS_REGISTER + 1)
3767 #endif
3768
3769 #ifdef FEAT_CLIPBOARD
3770 # ifdef FEAT_DND
3771 # define NUM_REGISTERS (TILDE_REGISTER + 1)
3772 # else
3773 # define NUM_REGISTERS (PLUS_REGISTER + 1)
3774 # endif
3775 #else
3776 # define NUM_REGISTERS 37
3777 #endif
3778
3779 // Each yank register has an array of pointers to lines.
3780 typedef struct
3781 {
3782 char_u **y_array; // pointer to array of line pointers
3783 linenr_T y_size; // number of lines in y_array
3784 char_u y_type; // MLINE, MCHAR or MBLOCK
3785 colnr_T y_width; // only set if y_type == MBLOCK
3786 #ifdef FEAT_VIMINFO
3787 time_t y_time_set;
3788 #endif
3789 } yankreg_T;
3790
3791 // The offset for a search command is store in a soff struct
3792 // Note: only spats[0].off is really used
3793 typedef struct soffset
3794 {
3795 int dir; // search direction, '/' or '?'
3796 int line; // search has line offset
3797 int end; // search set cursor at end
3798 long off; // line or char offset
3799 } soffset_T;
3800
3801 // A search pattern and its attributes are stored in a spat struct
3802 typedef struct spat
3803 {
3804 char_u *pat; // the pattern (in allocated memory) or NULL
3805 int magic; // magicness of the pattern
3806 int no_scs; // no smartcase for this pattern
3807 soffset_T off;
3808 } spat_T;