diff options
| author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-03-08 17:32:02 -0300 | 
|---|---|---|
| committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-09 09:37:00 -0300 | 
| commit | bd9cd693e765eebe243a91185a5aaf26e41e98f3 (patch) | |
| tree | a1eaf8bad5418251d6b372f003431fd000cf42ae /src/pos.h | |
| parent | b33096127c6293fc43d1e60f55a74c10d1d0889f (diff) | |
| download | rneovim-bd9cd693e765eebe243a91185a5aaf26e41e98f3.tar.gz rneovim-bd9cd693e765eebe243a91185a5aaf26e41e98f3.tar.bz2 rneovim-bd9cd693e765eebe243a91185a5aaf26e41e98f3.zip | |
Extract pos.h from structs.h
This will make it much simpler to move the other types in structs.h
which depend on `pos_T` and `lpos_T`.
Diffstat (limited to 'src/pos.h')
| -rw-r--r-- | src/pos.h | 23 | 
1 files changed, 23 insertions, 0 deletions
| diff --git a/src/pos.h b/src/pos.h new file mode 100644 index 0000000000..df6e0e5c39 --- /dev/null +++ b/src/pos.h @@ -0,0 +1,23 @@ +#ifndef NEOVIM_POS_H +#define NEOVIM_POS_H + +/* + * position in file or buffer + */ +typedef struct { +  linenr_T lnum;        /* line number */ +  colnr_T col;          /* column number */ +  colnr_T coladd; +} pos_T; + +# define INIT_POS_T(l, c, ca) {l, c, ca} + +/* + * Same, but without coladd. + */ +typedef struct { +  linenr_T lnum;        /* line number */ +  colnr_T col;          /* column number */ +} lpos_T; + +#endif /* NEOVIM_POS_H */ | 
