diff options
author | Dundar Goc <gocdundar@gmail.com> | 2022-05-04 13:00:18 +0200 |
---|---|---|
committer | Dundar Goc <gocdundar@gmail.com> | 2022-05-04 17:49:37 +0200 |
commit | f08477789fe241c3868d3856643c78da0760cd19 (patch) | |
tree | a44e1d1715323e43e1a6440fe95d2268778e69b8 /src/nvim/autocmd.h | |
parent | 4f17e7e1c38e53eb214fd85cde1cbbe332e86498 (diff) | |
download | rneovim-f08477789fe241c3868d3856643c78da0760cd19.tar.gz rneovim-f08477789fe241c3868d3856643c78da0760cd19.tar.bz2 rneovim-f08477789fe241c3868d3856643c78da0760cd19.zip |
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/autocmd.h')
-rw-r--r-- | src/nvim/autocmd.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/nvim/autocmd.h b/src/nvim/autocmd.h index 53ec7f2bb7..d3503672fd 100644 --- a/src/nvim/autocmd.h +++ b/src/nvim/autocmd.h @@ -18,7 +18,7 @@ typedef struct { handle_T new_curwin_handle; ///< ID of new curwin handle_T save_prevwin_handle; ///< ID of saved prevwin bufref_T new_curbuf; ///< new curbuf - char_u *globaldir; ///< saved value of globaldir + char *globaldir; ///< saved value of globaldir bool save_VIsual_active; ///< saved VIsual_active } aco_save_T; @@ -36,7 +36,7 @@ typedef struct AutoCmd { typedef struct AutoPat { struct AutoPat *next; // next AutoPat in AutoPat list; MUST // be the first entry - char_u *pat; // pattern as typed (NULL when pattern + char *pat; // pattern as typed (NULL when pattern // has been removed) regprog_T *reg_prog; // compiled regprog for pattern AutoCmd *cmds; // list of commands to do @@ -51,14 +51,13 @@ typedef struct AutoPat { typedef struct AutoPatCmd { AutoPat *curpat; // next AutoPat to examine AutoCmd *nextcmd; // next AutoCmd to execute - int group; // group being used - char_u *fname; // fname to match with - char_u *sfname; // sfname to match with - char_u *tail; // tail of fname - event_T event; // current event - int arg_bufnr; // initially equal to <abuf>, set to zero when - // buf is deleted - struct AutoPatCmd *next; // chain of active apc-s for auto-invalidation + int group; // group being used + char *fname; // fname to match with + char *sfname; // sfname to match with + char *tail; // tail of fname + event_T event; // current event + int arg_bufnr; // initially equal to <abuf>, set to zero when buf is deleted + struct AutoPatCmd *next; // chain of active apc-s for auto-invalidation } AutoPatCmd; |