aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/defs.h
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-05-16 08:25:47 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-05-17 08:05:44 -0300
commita8b0c9e576e9c0155546b03944314449d3f1a5c3 (patch)
treef81e15b8d2280c3035ef474b065ea4d6f88b0b3d /src/nvim/api/defs.h
parentb7108002bb7ac910bf9c88596d1075ce9bc9f0a7 (diff)
downloadrneovim-a8b0c9e576e9c0155546b03944314449d3f1a5c3.tar.gz
rneovim-a8b0c9e576e9c0155546b03944314449d3f1a5c3.tar.bz2
rneovim-a8b0c9e576e9c0155546b03944314449d3f1a5c3.zip
Refactor API to use one integer type: int64_t
This should make the API simpler, and int64_t is enough to represent any integer value we might need. Range checks should be done inside the API functions, that way we can modify the types of the actual fields/variables modified by the API without changes to the API prototypes.
Diffstat (limited to 'src/nvim/api/defs.h')
-rw-r--r--src/nvim/api/defs.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/api/defs.h b/src/nvim/api/defs.h
index d451667a6c..914ff3c5d5 100644
--- a/src/nvim/api/defs.h
+++ b/src/nvim/api/defs.h
@@ -15,9 +15,9 @@ typedef struct {
size_t size;
} String;
-typedef uint16_t Buffer;
-typedef uint16_t Window;
-typedef uint16_t Tabpage;
+typedef int64_t Buffer;
+typedef int64_t Window;
+typedef int64_t Tabpage;
typedef struct object Object;
@@ -27,7 +27,7 @@ typedef struct {
} StringArray;
typedef struct {
- uint16_t row, col;
+ int64_t row, col;
} Position;
typedef struct {