diff options
author | dundargoc <gocdundar@gmail.com> | 2023-11-27 18:39:38 +0100 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-11-27 19:33:17 +0100 |
commit | f4aedbae4cb1f206f5b7c6142697b71dd473059b (patch) | |
tree | 6fbca7f5336b4438bfdee2eb2183492e85c7fca6 /src/nvim/pos.h | |
parent | 8b428ca8b79ebb7b36c3e403ff3bcb6924a635a6 (diff) | |
download | rneovim-f4aedbae4cb1f206f5b7c6142697b71dd473059b.tar.gz rneovim-f4aedbae4cb1f206f5b7c6142697b71dd473059b.tar.bz2 rneovim-f4aedbae4cb1f206f5b7c6142697b71dd473059b.zip |
build(IWYU): fix includes for undo_defs.h
Diffstat (limited to 'src/nvim/pos.h')
-rw-r--r-- | src/nvim/pos.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/nvim/pos.h b/src/nvim/pos.h deleted file mode 100644 index 98a1762a5c..0000000000 --- a/src/nvim/pos.h +++ /dev/null @@ -1,40 +0,0 @@ -#pragma once - -#include <inttypes.h> - -/// Line number type -typedef int32_t linenr_T; -/// Format used to print values which have linenr_T type -#define PRIdLINENR PRId32 - -/// Column number type -typedef int colnr_T; -/// Format used to print values which have colnr_T type -#define PRIdCOLNR "d" - -/// Maximal (invalid) line number -enum { MAXLNUM = 0x7fffffff, }; - -/// 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. -enum { MAXCOL = 0x7fffffff, }; - -/// Minimum line number -enum { MINLNUM = 1, }; - -/// Minimum column number -enum { MINCOL = 1, }; - -/// position in file or buffer -typedef struct { - linenr_T lnum; ///< line number - colnr_T col; ///< column number - colnr_T coladd; -} pos_T; - -/// position in file or buffer, but without coladd -typedef struct { - linenr_T lnum; ///< line number - colnr_T col; ///< column number -} lpos_T; |