diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-01-07 21:25:08 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-01-07 21:25:08 +0100 |
commit | 75bdf6aa30a5c99d67c42886cf7a4a000bbaa422 (patch) | |
tree | e3e1a3fea418f892524eeec3cb0c2eaa31f5ad61 /src/proto/misc2.pro | |
parent | 2b7db933b0418f3964da5399047ce8998007874c (diff) |
patch 7.4.1058v7.4.1058
Problem: It is not possible to test code that is only reached when memory
allocation fails.
Solution: Add the alloc_fail() function. Try it out with :vimgrep.
Diffstat (limited to 'src/proto/misc2.pro')
-rw-r--r-- | src/proto/misc2.pro | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/proto/misc2.pro b/src/proto/misc2.pro index 490b1aff8d..4a955e32fa 100644 --- a/src/proto/misc2.pro +++ b/src/proto/misc2.pro @@ -20,10 +20,12 @@ void adjust_cursor_col __ARGS((void)); int leftcol_changed __ARGS((void)); void vim_mem_profile_dump __ARGS((void)); char_u *alloc __ARGS((unsigned size)); +char_u *alloc_id __ARGS((unsigned size, int id)); char_u *alloc_clear __ARGS((unsigned size)); char_u *alloc_check __ARGS((unsigned size)); char_u *lalloc_clear __ARGS((long_u size, int message)); char_u *lalloc __ARGS((long_u size, int message)); +char_u *lalloc_id __ARGS((long_u size, int message, int id)); void *mem_realloc __ARGS((void *ptr, size_t size)); void do_outofmem_msg __ARGS((long_u size)); void free_all_mem __ARGS((void)); |