Mercurial > vim
comparison src/eval.c @ 651:bc95c6c4bac1 v7.0191
updated for version 7.0191
author | vimboss |
---|---|
date | Wed, 01 Feb 2006 21:56:25 +0000 |
parents | 9032e4668296 |
children | d6a69271cb9a |
comparison
equal
deleted
inserted
replaced
650:662e40bd2be1 | 651:bc95c6c4bac1 |
---|---|
398 static int eval_index __ARGS((char_u **arg, typval_T *rettv, int evaluate, int verbose)); | 398 static int eval_index __ARGS((char_u **arg, typval_T *rettv, int evaluate, int verbose)); |
399 static int get_option_tv __ARGS((char_u **arg, typval_T *rettv, int evaluate)); | 399 static int get_option_tv __ARGS((char_u **arg, typval_T *rettv, int evaluate)); |
400 static int get_string_tv __ARGS((char_u **arg, typval_T *rettv, int evaluate)); | 400 static int get_string_tv __ARGS((char_u **arg, typval_T *rettv, int evaluate)); |
401 static int get_lit_string_tv __ARGS((char_u **arg, typval_T *rettv, int evaluate)); | 401 static int get_lit_string_tv __ARGS((char_u **arg, typval_T *rettv, int evaluate)); |
402 static int get_list_tv __ARGS((char_u **arg, typval_T *rettv, int evaluate)); | 402 static int get_list_tv __ARGS((char_u **arg, typval_T *rettv, int evaluate)); |
403 static list_T *list_alloc __ARGS((void)); | |
404 static void list_free __ARGS((list_T *l)); | |
405 static listitem_T *listitem_alloc __ARGS((void)); | 403 static listitem_T *listitem_alloc __ARGS((void)); |
406 static void listitem_free __ARGS((listitem_T *item)); | 404 static void listitem_free __ARGS((listitem_T *item)); |
407 static void listitem_remove __ARGS((list_T *l, listitem_T *item)); | 405 static void listitem_remove __ARGS((list_T *l, listitem_T *item)); |
408 static long list_len __ARGS((list_T *l)); | 406 static long list_len __ARGS((list_T *l)); |
409 static int list_equal __ARGS((list_T *l1, list_T *l2, int ic)); | 407 static int list_equal __ARGS((list_T *l1, list_T *l2, int ic)); |
5195 | 5193 |
5196 /* | 5194 /* |
5197 * Allocate an empty header for a list. | 5195 * Allocate an empty header for a list. |
5198 * Caller should take care of the reference count. | 5196 * Caller should take care of the reference count. |
5199 */ | 5197 */ |
5200 static list_T * | 5198 list_T * |
5201 list_alloc() | 5199 list_alloc() |
5202 { | 5200 { |
5203 list_T *l; | 5201 list_T *l; |
5204 | 5202 |
5205 l = (list_T *)alloc_clear(sizeof(list_T)); | 5203 l = (list_T *)alloc_clear(sizeof(list_T)); |
5229 | 5227 |
5230 /* | 5228 /* |
5231 * Free a list, including all items it points to. | 5229 * Free a list, including all items it points to. |
5232 * Ignores the reference count. | 5230 * Ignores the reference count. |
5233 */ | 5231 */ |
5234 static void | 5232 void |
5235 list_free(l) | 5233 list_free(l) |
5236 list_T *l; | 5234 list_T *l; |
5237 { | 5235 { |
5238 listitem_T *item; | 5236 listitem_T *item; |
5239 | 5237 |