mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Move garray_T from structs.h to garray.h
This commit is contained in:
parent
cab5c25c70
commit
3005681a02
15
src/garray.h
15
src/garray.h
@ -1,6 +1,21 @@
|
|||||||
#ifndef NEOVIM_GARRAY_H
|
#ifndef NEOVIM_GARRAY_H
|
||||||
#define NEOVIM_GARRAY_H
|
#define NEOVIM_GARRAY_H
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 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}
|
||||||
|
|
||||||
void ga_clear(garray_T *gap);
|
void ga_clear(garray_T *gap);
|
||||||
void ga_clear_strings(garray_T *gap);
|
void ga_clear_strings(garray_T *gap);
|
||||||
void ga_init(garray_T *gap);
|
void ga_init(garray_T *gap);
|
||||||
|
@ -6,13 +6,11 @@
|
|||||||
* Do ":help credits" in Vim to see a list of people who contributed.
|
* Do ":help credits" in Vim to see a list of people who contributed.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
// for garray_T
|
||||||
* This file contains various definitions of structures that are used by Vim
|
#include "garray.h"
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* There is something wrong in the SAS compiler that makes typedefs not
|
* This file contains various definitions of structures that are used by Vim
|
||||||
* valid in include files. Has been fixed in version 6.58.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -34,21 +32,6 @@ typedef struct {
|
|||||||
colnr_T col; /* column number */
|
colnr_T col; /* column number */
|
||||||
} lpos_T;
|
} 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 window_S win_T;
|
||||||
typedef struct wininfo_S wininfo_T;
|
typedef struct wininfo_S wininfo_T;
|
||||||
typedef struct frame_S frame_T;
|
typedef struct frame_S frame_T;
|
||||||
|
Loading…
Reference in New Issue
Block a user