updated for version 7.1-036
diff --git a/src/eval.c b/src/eval.c
index 6ce7bef..5dc6c01 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -1411,7 +1411,8 @@
}
-#if (defined(FEAT_USR_CMDS) && defined(FEAT_CMDL_COMPL)) || defined(PROTO)
+#if (defined(FEAT_USR_CMDS) && defined(FEAT_CMDL_COMPL)) \
+ || defined(FEAT_COMPL_FUNC) || defined(PROTO)
/*
* Call some vimL function and return the result in "*rettv".
* Uses argv[argc] for the function arguments.
@@ -1484,6 +1485,7 @@
return ret;
}
+# if (defined(FEAT_USR_CMDS) && defined(FEAT_CMDL_COMPL)) || defined(PROTO)
/*
* Call vimL function "func" and return the result as a string.
* Returns NULL when calling the function fails.
@@ -1506,8 +1508,9 @@
clear_tv(&rettv);
return retval;
}
+# endif
-#if defined(FEAT_COMPL_FUNC) || defined(PROTO)
+# if defined(FEAT_COMPL_FUNC) || defined(PROTO)
/*
* Call vimL function "func" and return the result as a number.
* Returns -1 when calling the function fails.
@@ -1530,7 +1533,7 @@
clear_tv(&rettv);
return retval;
}
-#endif
+# endif
/*
* Call vimL function "func" and return the result as a list
@@ -1556,9 +1559,9 @@
return rettv.vval.v_list;
}
-
#endif
+
/*
* Save the current function call pointer, and set it to NULL.
* Used when executing autocommands and for ":source".