@@ -20,9 +20,9 @@ static int ex_pressedreturn = FALSE;
2020#endif
2121
2222#ifdef FEAT_EVAL
23- static char_u * do_one_cmd (char_u * * , int , cstack_T * , char_u * (* fgetline )(int , void * , int , int ), void * cookie );
23+ static char_u * do_one_cmd (char_u * * , int , cstack_T * , char_u * (* fgetline )(int , void * , int , getline_opt_T ), void * cookie );
2424#else
25- static char_u * do_one_cmd (char_u * * , int , char_u * (* fgetline )(int , void * , int , int ), void * cookie );
25+ static char_u * do_one_cmd (char_u * * , int , char_u * (* fgetline )(int , void * , int , getline_opt_T ), void * cookie );
2626static int if_level = 0 ; // depth in :if
2727#endif
2828static void append_command (char_u * cmd );
@@ -403,11 +403,11 @@ struct loop_cookie
403403 int current_line ; // last read line from growarray
404404 int repeating ; // TRUE when looping a second time
405405 // When "repeating" is FALSE use "getline" and "cookie" to get lines
406- char_u * (* getline )(int , void * , int , int );
406+ char_u * (* getline )(int , void * , int , getline_opt_T );
407407 void * cookie ;
408408};
409409
410- static char_u * get_loop_line (int c , void * cookie , int indent , int do_concat );
410+ static char_u * get_loop_line (int c , void * cookie , int indent , getline_opt_T options );
411411static int store_loop_line (garray_T * gap , char_u * line );
412412static void free_cmdlines (garray_T * gap );
413413
@@ -1419,7 +1419,7 @@ do_cmdline(
14191419 * Obtain a line when inside a ":while" or ":for" loop.
14201420 */
14211421 static char_u *
1422- get_loop_line (int c , void * cookie , int indent , int do_concat )
1422+ get_loop_line (int c , void * cookie , int indent , getline_opt_T options )
14231423{
14241424 struct loop_cookie * cp = (struct loop_cookie * )cookie ;
14251425 wcmd_T * wp ;
@@ -1432,9 +1432,9 @@ get_loop_line(int c, void *cookie, int indent, int do_concat)
14321432
14331433 // First time inside the ":while"/":for": get line normally.
14341434 if (cp -> getline == NULL )
1435- line = getcmdline (c , 0L , indent , do_concat );
1435+ line = getcmdline (c , 0L , indent , options );
14361436 else
1437- line = cp -> getline (c , cp -> cookie , indent , do_concat );
1437+ line = cp -> getline (c , cp -> cookie , indent , options );
14381438 if (line != NULL && store_loop_line (cp -> lines_gap , line ) == OK )
14391439 ++ cp -> current_line ;
14401440
@@ -1487,7 +1487,7 @@ getline_equal(
14871487 char_u * (* func )(int , void * , int , getline_opt_T ))
14881488{
14891489#ifdef FEAT_EVAL
1490- char_u * (* gp )(int , void * , int , int );
1490+ char_u * (* gp )(int , void * , int , getline_opt_T );
14911491 struct loop_cookie * cp ;
14921492
14931493 // When "fgetline" is "get_loop_line()" use the "cookie" to find the
@@ -1516,7 +1516,7 @@ getline_cookie(
15161516 void * cookie ) // argument for fgetline()
15171517{
15181518#ifdef FEAT_EVAL
1519- char_u * (* gp )(int , void * , int , int );
1519+ char_u * (* gp )(int , void * , int , getline_opt_T );
15201520 struct loop_cookie * cp ;
15211521
15221522 // When "fgetline" is "get_loop_line()" use the "cookie" to find the
@@ -1544,7 +1544,7 @@ getline_peek(
15441544 char_u * (* fgetline )(int , void * , int , getline_opt_T ) UNUSED ,
15451545 void * cookie ) // argument for fgetline()
15461546{
1547- char_u * (* gp )(int , void * , int , int );
1547+ char_u * (* gp )(int , void * , int , getline_opt_T );
15481548 struct loop_cookie * cp ;
15491549 wcmd_T * wp ;
15501550
@@ -1694,7 +1694,7 @@ do_one_cmd(
16941694#ifdef FEAT_EVAL
16951695 cstack_T * cstack ,
16961696#endif
1697- char_u * (* fgetline )(int , void * , int , int ),
1697+ char_u * (* fgetline )(int , void * , int , getline_opt_T ),
16981698 void * cookie ) // argument for fgetline()
16991699{
17001700 char_u * p ;
0 commit comments