API: Move vim_to_object to helpers.c

This commit is contained in:
Thiago de Arruda
2014-05-08 18:25:59 -03:00
parent 57df213b86
commit 5f5e39323e
3 changed files with 137 additions and 135 deletions

View File

@@ -4,6 +4,7 @@
#include <stdbool.h>
#include "api/defs.h"
#include "../vim.h"
#define set_api_error(message, err) \
do { \
@@ -21,5 +22,12 @@ void try_start(void);
/// @return true if an error occurred
bool try_end(Error *err);
/// Convert a vim object to an `Object` instance, recursively expanding
/// Arrays/Dictionaries.
///
/// @param obj The source object
/// @return The converted value
Object vim_to_object(typval_T *obj);
#endif /* NEOVIM_API_HELPERS_H */