pos.h
Go to the documentation of this file.
1 #ifndef NVIM_POS_H
2 #define NVIM_POS_H
3 
5 typedef long linenr_T;
7 #define PRIdLINENR "ld"
8 
10 typedef int colnr_T;
12 #define PRIdCOLNR "d"
13 
15 enum { MAXLNUM = 0x7fffffff, };
16 
20 enum { MAXCOL = 0x7fffffff, };
21 
23 enum { MINLNUM = 1, };
24 
26 enum { MINCOL = 1, };
27 
29 typedef struct {
33 } pos_T;
34 
36 typedef struct {
39 } lpos_T;
40 
41 #endif // NVIM_POS_H
lpos_T
position in file or buffer, but without coladd
Definition: pos.h:36
lpos_T::lnum
linenr_T lnum
line number
Definition: pos.h:37
MAXLNUM
@ MAXLNUM
Definition: pos.h:15
pos_T::lnum
linenr_T lnum
line number
Definition: pos.h:30
pos_T::col
colnr_T col
column number
Definition: pos.h:31
colnr_T
int colnr_T
Column number type.
Definition: pos.h:10
pos_T
position in file or buffer
Definition: pos.h:29
pos_T::coladd
colnr_T coladd
Definition: pos.h:32
MAXCOL
@ MAXCOL
Definition: pos.h:20
MINLNUM
@ MINLNUM
Definition: pos.h:23
lpos_T::col
colnr_T col
column number
Definition: pos.h:38
MINCOL
@ MINCOL
Definition: pos.h:26
linenr_T
long linenr_T
Line number type.
Definition: pos.h:5