Data Structures | Macros | Typedefs | Enumerations
pos.h File Reference

Go to the source code of this file.

Data Structures

struct  pos_T
 position in file or buffer More...
 
struct  lpos_T
 position in file or buffer, but without coladd More...
 

Macros

#define PRIdLINENR   "ld"
 Format used to print values which have linenr_T type. More...
 
#define PRIdCOLNR   "d"
 Format used to print values which have colnr_T type. More...
 

Typedefs

typedef long linenr_T
 Line number type. More...
 
typedef int colnr_T
 Column number type. More...
 

Enumerations

enum  { MAXLNUM = 0x7fffffff }
 Maximal (invalid) line number. More...
 
enum  { MAXCOL = 0x7fffffff }
 
enum  { MINLNUM = 1 }
 Minimum line number. More...
 
enum  { MINCOL = 1 }
 Minimum column number. More...
 

Macro Definition Documentation

◆ PRIdCOLNR

#define PRIdCOLNR   "d"

Format used to print values which have colnr_T type.

◆ PRIdLINENR

#define PRIdLINENR   "ld"

Format used to print values which have linenr_T type.

Typedef Documentation

◆ colnr_T

typedef int colnr_T

Column number type.

◆ linenr_T

typedef long linenr_T

Line number type.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Maximal (invalid) line number.

Enumerator
MAXLNUM 

◆ anonymous enum

anonymous enum

Maximal column number MAXCOL used to be INT_MAX, but with 64 bit ints that results in running out of memory when trying to allocate a very long line.

Enumerator
MAXCOL 

◆ anonymous enum

anonymous enum

Minimum line number.

Enumerator
MINLNUM 

◆ anonymous enum

anonymous enum

Minimum column number.

Enumerator
MINCOL