comparison src/proto/vim9type.pro @ 30576:72e6073a2822 v9.0.0623

patch 9.0.0623: error for modifying a const is not detected at compile time Commit: https://github.com/vim/vim/commit/fa1039760e8c1a0c7a2a722160bd3d71a4736e61 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 29 19:14:42 2022 +0100 patch 9.0.0623: error for modifying a const is not detected at compile time Problem: Error for modifying a const is not detected at compile time. Solution: Add TTFLAG_CONST and check for it in add() and extend().
author Bram Moolenaar <Bram@vim.org>
date Thu, 29 Sep 2022 20:15:05 +0200
parents 5bf2fca4f967
children ec54b510e5ee
comparison
equal deleted inserted replaced
30575:3b314751334b 30576:72e6073a2822
1 /* vim9type.c */ 1 /* vim9type.c */
2 type_T *copy_type(type_T *type, garray_T *type_gap);
2 void clear_type_list(garray_T *gap); 3 void clear_type_list(garray_T *gap);
3 type_T *alloc_type(type_T *type); 4 type_T *alloc_type(type_T *type);
4 void free_type(type_T *type); 5 void free_type(type_T *type);
5 void set_tv_type(typval_T *tv, type_T *type); 6 void set_tv_type(typval_T *tv, type_T *type);
6 type_T *get_list_type(type_T *member_type, garray_T *type_gap); 7 type_T *get_list_type(type_T *member_type, garray_T *type_gap);