comparison src/eval.c @ 1574:f1d121474467 v7.1.287

updated for version 7.1-287
author vimboss
date Tue, 01 Apr 2008 11:12:09 +0000
parents 26d879bcab3a
children fe7db192c7cc
comparison
equal deleted inserted replaced
1573:0e3bd80a3f74 1574:f1d121474467
13952 li = ni; 13952 li = ni;
13953 } 13953 }
13954 rettv->vval.v_list = l; 13954 rettv->vval.v_list = l;
13955 rettv->v_type = VAR_LIST; 13955 rettv->v_type = VAR_LIST;
13956 ++l->lv_refcount; 13956 ++l->lv_refcount;
13957 l->lv_idx = l->lv_len - l->lv_idx - 1;
13957 } 13958 }
13958 } 13959 }
13959 13960
13960 #define SP_NOMOVE 0x01 /* don't move cursor */ 13961 #define SP_NOMOVE 0x01 /* don't move cursor */
13961 #define SP_REPEAT 0x02 /* repeat to find outer pair */ 13962 #define SP_REPEAT 0x02 /* repeat to find outer pair */
15200 item_compare_func == NULL ? item_compare : item_compare2); 15201 item_compare_func == NULL ? item_compare : item_compare2);
15201 15202
15202 if (!item_compare_func_err) 15203 if (!item_compare_func_err)
15203 { 15204 {
15204 /* Clear the List and append the items in the sorted order. */ 15205 /* Clear the List and append the items in the sorted order. */
15205 l->lv_first = l->lv_last = NULL; 15206 l->lv_first = l->lv_last = l->lv_idx_item = NULL;
15206 l->lv_len = 0; 15207 l->lv_len = 0;
15207 for (i = 0; i < len; ++i) 15208 for (i = 0; i < len; ++i)
15208 list_append(l, ptrs[i]); 15209 list_append(l, ptrs[i]);
15209 } 15210 }
15210 } 15211 }