diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-16 10:21:30 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-17 08:05:44 -0300 |
commit | 76a2fb5667461a8b7fa1abfb5a2c7381ced3f519 (patch) | |
tree | c5f06f37b7019107b9f70f24b5eb9951a5619e17 /src/nvim/api/window.h | |
parent | a8b0c9e576e9c0155546b03944314449d3f1a5c3 (diff) | |
download | rneovim-76a2fb5667461a8b7fa1abfb5a2c7381ced3f519.tar.gz rneovim-76a2fb5667461a8b7fa1abfb5a2c7381ced3f519.tar.bz2 rneovim-76a2fb5667461a8b7fa1abfb5a2c7381ced3f519.zip |
Use more descriptive names for API primitive types
Instead of exposing native C types to a public API that can be consumed by other
platforms, we are now using the following translation:
int64_t -> Integer
double -> Float
bool -> Boolean
Diffstat (limited to 'src/nvim/api/window.h')
-rw-r--r-- | src/nvim/api/window.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/api/window.h b/src/nvim/api/window.h index f0e485884a..525b7f86c7 100644 --- a/src/nvim/api/window.h +++ b/src/nvim/api/window.h @@ -32,7 +32,7 @@ void window_set_cursor(Window window, Position pos, Error *err); /// @param window The window handle /// @param[out] err Details of an error that may have occurred /// @return the height in rows -int64_t window_get_height(Window window, Error *err); +Integer window_get_height(Window window, Error *err); /// Sets the window height. This will only succeed if the screen is split /// horizontally. @@ -40,14 +40,14 @@ int64_t window_get_height(Window window, Error *err); /// @param window The window handle /// @param height the new height in rows /// @param[out] err Details of an error that may have occurred -void window_set_height(Window window, int64_t height, Error *err); +void window_set_height(Window window, Integer height, Error *err); /// Gets the window width /// /// @param window The window handle /// @param[out] err Details of an error that may have occurred /// @return the width in columns -int64_t window_get_width(Window window, Error *err); +Integer window_get_width(Window window, Error *err); /// Sets the window width. This will only succeed if the screen is split /// vertically. @@ -55,7 +55,7 @@ int64_t window_get_width(Window window, Error *err); /// @param window The window handle /// @param width the new width in columns /// @param[out] err Details of an error that may have occurred -void window_set_width(Window window, int64_t width, Error *err); +void window_set_width(Window window, Integer width, Error *err); /// Gets a window variable /// @@ -109,7 +109,7 @@ Tabpage window_get_tabpage(Window window, Error *err); /// /// @param window The window handle /// @return true if the window is valid, false otherwise -bool window_is_valid(Window window); +Boolean window_is_valid(Window window); #endif // NVIM_API_WINDOW_H |