comparison src/eval.c @ 10942:e05695e59f6d v8.0.0360

patch 8.0.0360: sometimes VimL is used instead of "Vim script" commit https://github.com/vim/vim/commit/b544f3c81f1e6a50322855681ac266ffaa8e313c Author: Bram Moolenaar <Bram@vim.org> Date: Thu Feb 23 19:03:28 2017 +0100 patch 8.0.0360: sometimes VimL is used instead of "Vim script" Problem: Sometimes VimL is used, which is confusing. Solution: Consistently use "Vim script". (Hirohito Higashi)
author Christian Brabandt <cb@256bit.org>
date Thu, 23 Feb 2017 19:15:05 +0100
parents 7dab3a9cb933
children bcbda8ae5549
comparison
equal deleted inserted replaced
10941:56b3c9414c82 10942:e05695e59f6d
948 return tv; 948 return tv;
949 } 949 }
950 950
951 951
952 /* 952 /*
953 * Call some vimL function and return the result in "*rettv". 953 * Call some Vim script function and return the result in "*rettv".
954 * Uses argv[argc] for the function arguments. Only Number and String 954 * Uses argv[argc] for the function arguments. Only Number and String
955 * arguments are currently supported. 955 * arguments are currently supported.
956 * Returns OK or FAIL. 956 * Returns OK or FAIL.
957 */ 957 */
958 int 958 int
1025 1025
1026 return ret; 1026 return ret;
1027 } 1027 }
1028 1028
1029 /* 1029 /*
1030 * Call vimL function "func" and return the result as a number. 1030 * Call Vim script function "func" and return the result as a number.
1031 * Returns -1 when calling the function fails. 1031 * Returns -1 when calling the function fails.
1032 * Uses argv[argc] for the function arguments. 1032 * Uses argv[argc] for the function arguments.
1033 */ 1033 */
1034 varnumber_T 1034 varnumber_T
1035 call_func_retnr( 1035 call_func_retnr(
1053 #if (defined(FEAT_USR_CMDS) && defined(FEAT_CMDL_COMPL)) \ 1053 #if (defined(FEAT_USR_CMDS) && defined(FEAT_CMDL_COMPL)) \
1054 || defined(FEAT_COMPL_FUNC) || defined(PROTO) 1054 || defined(FEAT_COMPL_FUNC) || defined(PROTO)
1055 1055
1056 # if (defined(FEAT_USR_CMDS) && defined(FEAT_CMDL_COMPL)) || defined(PROTO) 1056 # if (defined(FEAT_USR_CMDS) && defined(FEAT_CMDL_COMPL)) || defined(PROTO)
1057 /* 1057 /*
1058 * Call vimL function "func" and return the result as a string. 1058 * Call Vim script function "func" and return the result as a string.
1059 * Returns NULL when calling the function fails. 1059 * Returns NULL when calling the function fails.
1060 * Uses argv[argc] for the function arguments. 1060 * Uses argv[argc] for the function arguments.
1061 */ 1061 */
1062 void * 1062 void *
1063 call_func_retstr( 1063 call_func_retstr(
1078 return retval; 1078 return retval;
1079 } 1079 }
1080 # endif 1080 # endif
1081 1081
1082 /* 1082 /*
1083 * Call vimL function "func" and return the result as a List. 1083 * Call Vim script function "func" and return the result as a List.
1084 * Uses argv[argc] for the function arguments. 1084 * Uses argv[argc] for the function arguments.
1085 * Returns NULL when there is something wrong. 1085 * Returns NULL when there is something wrong.
1086 */ 1086 */
1087 void * 1087 void *
1088 call_func_retlist( 1088 call_func_retlist(