aboutsummaryrefslogtreecommitdiff
path: root/src/structs.h
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-03-06 16:03:04 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-07 08:02:38 -0300
commit3005681a02ca0478231329b5deae83a308687b21 (patch)
treea7313818d8c1851b0092574f1fbfc98289f7fc25 /src/structs.h
parentcab5c25c70b884fe5428c4bfbd043316ff642518 (diff)
downloadrneovim-3005681a02ca0478231329b5deae83a308687b21.tar.gz
rneovim-3005681a02ca0478231329b5deae83a308687b21.tar.bz2
rneovim-3005681a02ca0478231329b5deae83a308687b21.zip
Move garray_T from structs.h to garray.h
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 3c0232e4f3..8fd1a64bf2 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -6,13 +6,11 @@
* Do ":help credits" in Vim to see a list of people who contributed.
*/
-/*
- * This file contains various definitions of structures that are used by Vim
- */
+// for garray_T
+#include "garray.h"
/*
- * There is something wrong in the SAS compiler that makes typedefs not
- * valid in include files. Has been fixed in version 6.58.
+ * This file contains various definitions of structures that are used by Vim
*/
/*
@@ -34,21 +32,6 @@ typedef struct {
colnr_T col; /* column number */
} lpos_T;
-/*
- * Structure used for growing arrays.
- * This is used to store information that only grows, is deleted all at
- * once, and needs to be accessed by index. See ga_clear() and ga_grow().
- */
-typedef struct growarray {
- int ga_len; /* current number of items used */
- int ga_maxlen; /* maximum number of items possible */
- int ga_itemsize; /* sizeof(item) */
- int ga_growsize; /* number of items to grow each time */
- void *ga_data; /* pointer to the first item */
-} garray_T;
-
-#define GA_EMPTY {0, 0, 0, 0, NULL}
-
typedef struct window_S win_T;
typedef struct wininfo_S wininfo_T;
typedef struct frame_S frame_T;