Mercurial > vim
comparison src/proto/misc2.pro @ 16764:ef00b6bc186b v8.1.1384
patch 8.1.1384: using "int" for alloc() often results in compiler warnings
commit https://github.com/vim/vim/commit/964b3746b9c81e65887e2ac9a335f181db2bb592
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri May 24 18:54:09 2019 +0200
patch 8.1.1384: using "int" for alloc() often results in compiler warnings
Problem: Using "int" for alloc() often results in compiler warnings.
Solution: Use "size_t" and remove type casts. Remove alloc_check(), Vim
only works with 32 bit ints anyway.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 24 May 2019 19:00:07 +0200 |
parents | 7ae2396cef62 |
children | ce04ebdf26b8 |
comparison
equal
deleted
inserted
replaced
16763:fccf84413b53 | 16764:ef00b6bc186b |
---|---|
18 void check_cursor_col_win(win_T *win); | 18 void check_cursor_col_win(win_T *win); |
19 void check_cursor(void); | 19 void check_cursor(void); |
20 void adjust_cursor_col(void); | 20 void adjust_cursor_col(void); |
21 int leftcol_changed(void); | 21 int leftcol_changed(void); |
22 void vim_mem_profile_dump(void); | 22 void vim_mem_profile_dump(void); |
23 int alloc_does_fail(long_u size); | 23 int alloc_does_fail(size_t size); |
24 char_u *alloc(unsigned size); | 24 char_u *alloc(size_t size); |
25 char_u *alloc_id(unsigned size, alloc_id_T id); | 25 char_u *alloc_id(size_t size, alloc_id_T id); |
26 char_u *alloc_clear(unsigned size); | 26 char_u *alloc_clear(size_t size); |
27 char_u *alloc_clear_id(unsigned size, alloc_id_T id); | 27 char_u *alloc_clear_id(size_t size, alloc_id_T id); |
28 char_u *alloc_check(unsigned size); | 28 char_u *lalloc_clear(size_t size, int message); |
29 char_u *lalloc_clear(long_u size, int message); | 29 char_u *lalloc(size_t size, int message); |
30 char_u *lalloc(long_u size, int message); | 30 char_u *lalloc_id(size_t size, int message, alloc_id_T id); |
31 char_u *lalloc_id(long_u size, int message, alloc_id_T id); | |
32 void *mem_realloc(void *ptr, size_t size); | 31 void *mem_realloc(void *ptr, size_t size); |
33 void do_outofmem_msg(long_u size); | 32 void do_outofmem_msg(size_t size); |
34 void free_all_mem(void); | 33 void free_all_mem(void); |
35 char_u *vim_strsave(char_u *string); | 34 char_u *vim_strsave(char_u *string); |
36 char_u *vim_strnsave(char_u *string, int len); | 35 char_u *vim_strnsave(char_u *string, int len); |
37 char_u *vim_memsave(char_u *p, int len); | 36 char_u *vim_memsave(char_u *p, size_t len); |
38 char_u *vim_strsave_escaped(char_u *string, char_u *esc_chars); | 37 char_u *vim_strsave_escaped(char_u *string, char_u *esc_chars); |
39 char_u *vim_strsave_escaped_ext(char_u *string, char_u *esc_chars, int cc, int bsl); | 38 char_u *vim_strsave_escaped_ext(char_u *string, char_u *esc_chars, int cc, int bsl); |
40 int csh_like_shell(void); | 39 int csh_like_shell(void); |
41 char_u *vim_strsave_shellescape(char_u *string, int do_special, int do_newline); | 40 char_u *vim_strsave_shellescape(char_u *string, int do_special, int do_newline); |
42 char_u *vim_strsave_up(char_u *string); | 41 char_u *vim_strsave_up(char_u *string); |