aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/dl.c
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2019-12-16 07:32:58 -0500
committerGitHub <noreply@github.com>2019-12-16 07:32:58 -0500
commit473aea92cb0e987bdd89b4bd27fdc1ed22705bd6 (patch)
tree980fd0c7287e295c8ac72858b0794f72224415e0 /src/nvim/os/dl.c
parent9f3d483c79f03c48239fdc82cc02e8685a03d22a (diff)
parent6566251d144d2c9c9e08e05c8c3a3fe9915a19b8 (diff)
downloadrneovim-473aea92cb0e987bdd89b4bd27fdc1ed22705bd6.tar.gz
rneovim-473aea92cb0e987bdd89b4bd27fdc1ed22705bd6.tar.bz2
rneovim-473aea92cb0e987bdd89b4bd27fdc1ed22705bd6.zip
Merge pull request #11564 from jamessan/libcall
libcallnr: Use int, not int64_t, as the return type for Vim compat
Diffstat (limited to 'src/nvim/os/dl.c')
-rw-r--r--src/nvim/os/dl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/os/dl.c b/src/nvim/os/dl.c
index f0fadb16f2..2783411574 100644
--- a/src/nvim/os/dl.c
+++ b/src/nvim/os/dl.c
@@ -19,15 +19,15 @@
/// string -> int
typedef void (*gen_fn)(void);
typedef const char *(*str_str_fn)(const char *str);
-typedef int64_t (*str_int_fn)(const char *str);
+typedef int (*str_int_fn)(const char *str);
typedef const char *(*int_str_fn)(int64_t i);
-typedef int64_t (*int_int_fn)(int64_t i);
+typedef int (*int_int_fn)(int64_t i);
/// os_libcall - call a function in a dynamic loadable library
///
/// an example of calling a function that takes a string and returns an int:
///
-/// int64_t int_out = 0;
+/// int int_out = 0;
/// os_libcall("mylib.so", "somefn", "string-argument", 0, NULL, &int_out);
///
/// @param libname the name of the library to load (e.g.: libsomething.so)
@@ -43,7 +43,7 @@ bool os_libcall(const char *libname,
const char *argv,
int64_t argi,
char **str_out,
- int64_t *int_out)
+ int *int_out)
{
if (!libname || !funcname) {
return false;