diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-09-12 11:24:01 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-09-12 13:50:07 -0300 |
commit | 545acf2024ea2653ae6937d570a37aa0340caa5e (patch) | |
tree | 7440aa48e60919082e235ea0ff1a550ba1904d5c /src/nvim/api/tabpage.c | |
parent | cd2e46c0785d40b9ea15f6d722a3fad54c007b9b (diff) | |
download | rneovim-545acf2024ea2653ae6937d570a37aa0340caa5e.tar.gz rneovim-545acf2024ea2653ae6937d570a37aa0340caa5e.tar.bz2 rneovim-545acf2024ea2653ae6937d570a37aa0340caa5e.zip |
api metadata: Allow typed container information in api functions
Adapt gendeclarations.lua/msgpack-gen.lua to allow the `ArrayOf(...)` and
`DictionaryOf(...)` types in function headers. These are simple macros that
expand to Array and Dictionary respectively, but the information is kept in the
metadata object, which is useful for building clients in statically typed
languages.
Diffstat (limited to 'src/nvim/api/tabpage.c')
-rw-r--r-- | src/nvim/api/tabpage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/api/tabpage.c b/src/nvim/api/tabpage.c index 901f9a6c1a..91020d6850 100644 --- a/src/nvim/api/tabpage.c +++ b/src/nvim/api/tabpage.c @@ -13,7 +13,7 @@ /// @param tabpage The tabpage /// @param[out] err Details of an error that may have occurred /// @return The number of windows in `tabpage` -Array tabpage_get_windows(Tabpage tabpage, Error *err) +ArrayOf(Window) tabpage_get_windows(Tabpage tabpage, Error *err) { Array rv = ARRAY_DICT_INIT; tabpage_T *tab = find_tab_by_handle(tabpage, err); |