aboutsummaryrefslogtreecommitdiff
path: root/src/structs.h
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-03-08 17:32:02 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-09 09:37:00 -0300
commitbd9cd693e765eebe243a91185a5aaf26e41e98f3 (patch)
treea1eaf8bad5418251d6b372f003431fd000cf42ae /src/structs.h
parentb33096127c6293fc43d1e60f55a74c10d1d0889f (diff)
downloadrneovim-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/structs.h')
-rw-r--r--src/structs.h23
1 files changed, 3 insertions, 20 deletions
diff --git a/src/structs.h b/src/structs.h
index 4aba076502..e52eb1c4aa 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -8,30 +8,13 @@
// for garray_T
#include "garray.h"
+// for pos_T and lpos_T
+#include "pos.h"
/*
* This file contains various definitions of structures that are used by Vim
*/
-/*
- * 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;
-
typedef struct window_S win_T;
typedef struct wininfo_S wininfo_T;
typedef struct frame_S frame_T;
@@ -39,7 +22,7 @@ typedef int scid_T; /* script ID */
typedef struct file_buffer buf_T; /* forward declaration */
/*
- * This is here because regexp_defs.h needs pos_T and below regprog_T is used.
+ * This is here because regexp_defs.h needs win_T and regprog_T is used below.
*/
#include "regexp_defs.h"