1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-01 05:10:54 -08:00
emacs/admin/coccinelle/alloc_cast.cocci
Stefan Kangas 1a2fa8f413 Remove redundant casts from void* with malloc functions
* src/msdos.c (IT_menu_make_room):
* src/pgtkterm.c (pgtk_define_fringe_bitmap):
* src/w16select.c (set_clipboard_data):
* src/w32term.c (w32_define_fringe_bitmap):
* src/w32uniscribe.c (uniscribe_shape): Remove redundant cast from
void* with xrealloc.
* admin/coccinelle/alloc_cast.cocci: New semantic patch.
2024-01-10 14:48:00 +01:00

6 lines
138 B
Text

// Remove redundant casts from memory allocation functions.
@@
type T;
@@
-(T *)
\(xmalloc\|xzalloc\|xrealloc\|xpalloc\|xnrealloc\)(...)