]> git.eshelyaron.com Git - emacs.git/commit
Add ATTRIBUTE_DEALLOC to extern functions
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 27 May 2022 18:27:08 +0000 (11:27 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 27 May 2022 18:45:01 +0000 (11:45 -0700)
commitcb57db513b3b5e2c5e09d197e63d6a921188d599
tree53f3a3cecb91c876ab7454b3af582ed4042f49be
parent7f3d781dab9a7a153badb62fd538908cb6595105
Add ATTRIBUTE_DEALLOC to extern functions

This can help static checking.  It’s not as important for static
functions, where GCC can figure this stuff out own its own.
* src/sysstdio.h (emacs_fopen): Add ATTRIBUTE_DEALLOC (fclose, 1).
* src/tparam.h (tparam): Add ATTRIBUTE_DEALLOC_FREE.
Include stdlib.h so that ‘free’ is declared.
* src/xterm.h (x_get_atom_name): Add ATTRIBUTE_DEALLOC_FREE.
src/sysstdio.h
src/tparam.h
src/xterm.h