diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2014-05-22 09:40:35 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2014-05-22 09:40:35 -0700 |
commit | 74fde0f44f68a14d920db4d24626984e2964368d (patch) | |
tree | ce487b5a0080a9a9abbef810f93bb19069defe95 /lisp/emacs-lisp | |
parent | bbd03f131a88ab1ff993bb6bba1bea93e7ee17ea (diff) | |
download | emacs-74fde0f44f68a14d920db4d24626984e2964368d.tar.gz emacs-74fde0f44f68a14d920db4d24626984e2964368d.tar.bz2 emacs-74fde0f44f68a14d920db4d24626984e2964368d.zip |
Supply malloc and alloc_size attributes for extern allocators.
This documents the C API, and helps GCC generate a bit better code.
* conf_post.h (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE)
(ATTRIBUTE_MALLOC_SIZE): New macros.
* gmalloc.c (malloc, realloc, calloc):
* gtkutil.h (malloc_widget_value):
* lisp.h (ralloc, r_re_alloc, xmalloc, xzalloc, xrealloc, xnmalloc)
(xnrealloc, xstrdup, xlispstrdup, record_xmalloc):
Use them.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions