diff options
author | Eliseo Martínez <eliseomarmol@gmail.com> | 2014-05-12 02:25:17 +0200 |
---|---|---|
committer | Eliseo Martínez <eliseomarmol@gmail.com> | 2014-05-15 20:46:01 +0200 |
commit | da51dc9cf202772f60bd2da975dbef257bd9237c (patch) | |
tree | 5c16b93238a153f55634e9323077f30c8133970c /src/api/defs.h | |
parent | ffe61e5ba1721340ca51d56bae3ddaca415fb5bc (diff) | |
download | rneovim-da51dc9cf202772f60bd2da975dbef257bd9237c.tar.gz rneovim-da51dc9cf202772f60bd2da975dbef257bd9237c.tar.bz2 rneovim-da51dc9cf202772f60bd2da975dbef257bd9237c.zip |
Introduce nvim namespace: Move files.
Move files from src/ to src/nvim/.
- src/nvim/ becomes the new root dir for nvim executable sources.
- src/libnvim/ is planned to become root dir of the neovim library.
Diffstat (limited to 'src/api/defs.h')
-rw-r--r-- | src/api/defs.h | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/src/api/defs.h b/src/api/defs.h deleted file mode 100644 index 0ac2e790d2..0000000000 --- a/src/api/defs.h +++ /dev/null @@ -1,74 +0,0 @@ -#ifndef NEOVIM_API_DEFS_H -#define NEOVIM_API_DEFS_H - -#include <stdint.h> -#include <string.h> - -// Basic types -typedef struct { - char msg[256]; - bool set; -} Error; - -typedef struct { - char *data; - size_t size; -} String; - -typedef uint16_t Buffer; -typedef uint16_t Window; -typedef uint16_t Tabpage; - -typedef struct object Object; - -typedef struct { - String *items; - size_t size; -} StringArray; - -typedef struct { - uint16_t row, col; -} Position; - -typedef struct { - Object *items; - size_t size; -} Array; - -typedef struct key_value_pair KeyValuePair; - -typedef struct { - KeyValuePair *items; - size_t size; -} Dictionary; - -typedef enum { - kObjectTypeNil, - kObjectTypeBool, - kObjectTypeInt, - kObjectTypeFloat, - kObjectTypeString, - kObjectTypeArray, - kObjectTypeDictionary -} ObjectType; - -struct object { - ObjectType type; - union { - bool boolean; - int64_t integer; - double floating_point; - String string; - Array array; - Dictionary dictionary; - } data; -}; - -struct key_value_pair { - String key; - Object value; -}; - - -#endif // NEOVIM_API_DEFS_H - |