@@ -57,6 +57,7 @@ static int eval7_leader(typval_T *rettv, int numeric_only, char_u *start_leader,
5757
5858static int free_unref_items (int copyID );
5959static char_u * make_expanded_name (char_u * in_start , char_u * expr_start , char_u * expr_end , char_u * in_end );
60+ static char_u * eval_next_line (evalarg_T * evalarg );
6061
6162/*
6263 * Return "n1" divided by "n2", taking care of dividing by zero.
@@ -2113,7 +2114,7 @@ getline_peek_skip_comments(evalarg_T *evalarg)
21132114 * FALSE.
21142115 * "arg" must point somewhere inside a line, not at the start.
21152116 */
2116- char_u *
2117+ static char_u *
21172118eval_next_non_blank (char_u * arg , evalarg_T * evalarg , int * getnext )
21182119{
21192120 char_u * p = skipwhite (arg );
@@ -2144,7 +2145,7 @@ eval_next_non_blank(char_u *arg, evalarg_T *evalarg, int *getnext)
21442145 * To be called after eval_next_non_blank() sets "getnext" to TRUE.
21452146 * Only called for Vim9 script.
21462147 */
2147- char_u *
2148+ static char_u *
21482149eval_next_line (evalarg_T * evalarg )
21492150{
21502151 garray_T * gap = & evalarg -> eval_ga ;
@@ -5171,50 +5172,6 @@ echo_string(
51715172 return echo_string_core (tv , tofree , numbuf , copyID , TRUE, FALSE, FALSE);
51725173}
51735174
5174- /*
5175- * Return string "str" in ' quotes, doubling ' characters.
5176- * If "str" is NULL an empty string is assumed.
5177- * If "function" is TRUE make it function('string').
5178- */
5179- char_u *
5180- string_quote (char_u * str , int function )
5181- {
5182- unsigned len ;
5183- char_u * p , * r , * s ;
5184-
5185- len = (function ? 13 : 3 );
5186- if (str != NULL )
5187- {
5188- len += (unsigned )STRLEN (str );
5189- for (p = str ; * p != NUL ; MB_PTR_ADV (p ))
5190- if (* p == '\'' )
5191- ++ len ;
5192- }
5193- s = r = alloc (len );
5194- if (r != NULL )
5195- {
5196- if (function )
5197- {
5198- STRCPY (r , "function('" );
5199- r += 10 ;
5200- }
5201- else
5202- * r ++ = '\'' ;
5203- if (str != NULL )
5204- for (p = str ; * p != NUL ; )
5205- {
5206- if (* p == '\'' )
5207- * r ++ = '\'' ;
5208- MB_COPY_CHAR (p , r );
5209- }
5210- * r ++ = '\'' ;
5211- if (function )
5212- * r ++ = ')' ;
5213- * r ++ = NUL ;
5214- }
5215- return s ;
5216- }
5217-
52185175/*
52195176 * Convert the specified byte index of line 'lnum' in buffer 'buf' to a
52205177 * character index. Works only for loaded buffers. Returns -1 on failure.
0 commit comments