Mercurial > vim
comparison src/proto/misc2.pro @ 7545:4c922651fd78 v7.4.1073
commit https://github.com/vim/vim/commit/28fb79db6b52d1154e8dc63d227673648c2fce15
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 9 22:28:33 2016 +0100
patch 7.4.1073
Problem: Alloc_id depends on numbers, may use the same one twice. It's not
clear from the number what it's for.
Solution: Use an enum. Add a function to lookup the enum value from the
name.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 09 Jan 2016 22:30:04 +0100 |
parents | 98fede2c9574 |
children | 1fded31d9e04 |
comparison
equal
deleted
inserted
replaced
7544:25e3b1a99768 | 7545:4c922651fd78 |
---|---|
18 void check_cursor __ARGS((void)); | 18 void check_cursor __ARGS((void)); |
19 void adjust_cursor_col __ARGS((void)); | 19 void adjust_cursor_col __ARGS((void)); |
20 int leftcol_changed __ARGS((void)); | 20 int leftcol_changed __ARGS((void)); |
21 void vim_mem_profile_dump __ARGS((void)); | 21 void vim_mem_profile_dump __ARGS((void)); |
22 char_u *alloc __ARGS((unsigned size)); | 22 char_u *alloc __ARGS((unsigned size)); |
23 char_u *alloc_id __ARGS((unsigned size, int id)); | 23 char_u *alloc_id __ARGS((unsigned size, alloc_id_T id)); |
24 char_u *alloc_clear __ARGS((unsigned size)); | 24 char_u *alloc_clear __ARGS((unsigned size)); |
25 char_u *alloc_check __ARGS((unsigned size)); | 25 char_u *alloc_check __ARGS((unsigned size)); |
26 char_u *lalloc_clear __ARGS((long_u size, int message)); | 26 char_u *lalloc_clear __ARGS((long_u size, int message)); |
27 char_u *lalloc __ARGS((long_u size, int message)); | 27 char_u *lalloc __ARGS((long_u size, int message)); |
28 char_u *lalloc_id __ARGS((long_u size, int message, int id)); | 28 char_u *lalloc_id __ARGS((long_u size, int message, alloc_id_T id)); |
29 void *mem_realloc __ARGS((void *ptr, size_t size)); | 29 void *mem_realloc __ARGS((void *ptr, size_t size)); |
30 void do_outofmem_msg __ARGS((long_u size)); | 30 void do_outofmem_msg __ARGS((long_u size)); |
31 void free_all_mem __ARGS((void)); | 31 void free_all_mem __ARGS((void)); |
32 char_u *vim_strsave __ARGS((char_u *string)); | 32 char_u *vim_strsave __ARGS((char_u *string)); |
33 char_u *vim_strnsave __ARGS((char_u *string, int len)); | 33 char_u *vim_strnsave __ARGS((char_u *string, int len)); |