Files
neovim/src/nvim/pos.h
Nicolas Hillegeer e288ddaee7 vim: move linenr_T and colnr_T to pos.h
Try to cut down vim.h's size. It's keeping us from testing more things.
2014-07-16 19:05:34 +02:00

30 lines
656 B
C

#ifndef NVIM_POS_H
#define NVIM_POS_H
typedef long linenr_T; // line number type
typedef int colnr_T; // column number type
#define MAXLNUM (0x7fffffffL) // maximum (invalid) line number
#define MAXCOL (0x7fffffffL) // maximum column number, 31 bits
/*
* 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 // NVIM_POS_H