src/evalfunc.c
void
range_list_materialize(list_T *list)
{
    if (list->lv_first == &range_list_item)
    {
	varnumber_T start = list->lv_start;
	varnumber_T end = list->lv_end;
	int	    stride = list->lv_stride;
	varnumber_T i;

	list->lv_first = NULL;
	list->lv_last = NULL;
	list->lv_len = 0;
	list->lv_idx_item = NULL;
	for (i = start; stride > 0 ? i <= end : i >= end; i += stride)
	    if (list_append_number(list, (varnumber_T)i) == FAIL)
		break;
    }
}
/*
 * If "list" is a non-materialized list then materialize it now.
 */
If "list" is a non-materialized list then materialize it now.
If " list " is a non - materialized list then materialize it now .
void
range_list_materialize(list_T *list)
{
    if (list->lv_first == &range_list_item)
    {
	varnumber_T start = list->lv_start;
	varnumber_T end = list->lv_end;
	int	    stride = list->lv_stride;
	varnumber_T i;
	list->lv_first = NULL;
	list->lv_last = NULL;
	list->lv_len = 0;
	list->lv_idx_item = NULL;
	for (i = start; stride > 0 ? i <= end : i >= end; i += stride)
	    if (list_append_number(list, (varnumber_T)i) == FAIL)
		break;
    }
}
void range_list_materialize ( list_T * list ) { if ( list -> lv_first == & range_list_item ) { varnumber_T start = list -> lv_start ; varnumber_T end = list -> lv_end ; int stride = list -> lv_stride ; varnumber_T i ; list -> lv_first = NULL ; list -> lv_last = NULL ; list -> lv_len = 0 ; list -> lv_idx_item = NULL ; for ( i = start ; stride > 0 ? i <= end : i >= end ; i += stride ) if ( list_append_number ( list , ( varnumber_T ) i ) == FAIL ) break ; } }
If "list" is a non-materialized list then materialize it now.
If " list " is a non - materialized list then materialize it now .