]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 8.1.1414: alloc() returning "char_u *" causes a lot of type casts v8.1.1414
authorBram Moolenaar <Bram@vim.org>
Tue, 28 May 2019 21:08:19 +0000 (23:08 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 28 May 2019 21:08:19 +0000 (23:08 +0200)
commitc799fe206e61f2e2c1231bc46cbe4bb354f3da69
tree68b3d2a8bb82519e29fc95f317d2ee02b07f95fa
parentb58a4b938c4bc7e0499700859bd7abba9acc5b11
patch 8.1.1414: alloc() returning "char_u *" causes a lot of type casts

Problem:    Alloc() returning "char_u *" causes a lot of type casts.
Solution:   Have it return "void *". (Mike Williams)  Define ALLOC_ONE() to
            check the simple allocations.
77 files changed:
src/autocmd.c
src/blob.c
src/blowfish.c
src/buffer.c
src/change.c
src/channel.c
src/crypt.c
src/crypt_zip.c
src/dict.c
src/diff.c
src/eval.c
src/evalfunc.c
src/ex_cmds.c
src/ex_cmds2.c
src/ex_docmd.c
src/ex_eval.c
src/ex_getln.c
src/fileio.c
src/findfile.c
src/getchar.c
src/gui_gtk.c
src/gui_gtk_x11.c
src/gui_mac.c
src/gui_motif.c
src/gui_photon.c
src/gui_w32.c
src/gui_x11.c
src/hardcopy.c
src/hashtab.c
src/if_cscope.c
src/if_mzsch.c
src/if_perlsfio.c
src/if_py_both.h
src/if_python3.c
src/if_xcmdsrv.c
src/insexpand.c
src/list.c
src/mark.c
src/mbyte.c
src/memfile.c
src/memfile_test.c
src/memline.c
src/message.c
src/misc2.c
src/netbeans.c
src/normal.c
src/ops.c
src/option.c
src/os_amiga.c
src/os_mac_conv.c
src/os_mswin.c
src/os_unix.c
src/os_vms.c
src/os_win32.c
src/popupmnu.c
src/proto/misc2.pro
src/quickfix.c
src/regexp.c
src/regexp_nfa.c
src/screen.c
src/search.c
src/sign.c
src/spell.c
src/spellfile.c
src/syntax.c
src/tag.c
src/term.c
src/terminal.c
src/testdir/test_cscope.vim
src/textprop.c
src/ui.c
src/undo.c
src/userfunc.c
src/version.c
src/vim.h
src/winclip.c
src/window.c