diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2018-10-15 23:54:57 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2018-10-15 23:54:57 +0300 |
commit | 85e3083ffcfce99717cd3a786dcab7c7911f6f43 (patch) | |
tree | 0e66dff6937efa40551553c45356df71939ec58d /specific.c | |
parent | dfa08303514788d084584d481c5d3d254b1693cb (diff) | |
download | bdwgc-85e3083ffcfce99717cd3a786dcab7c7911f6f43.tar.gz |
New API function to get size of object debug header
GC_get_debug_header_size() is exported in addition to
GC_debug_header_size variable. The usage of the latter is deprecated.
* dbg_mlc.c [CPPCHECK] (GC_start_debugging_inner): Call
GC_noop1(GC_debug_header_size) to suppress a cppcheck warning about
unused symbol.
* dbg_mlc.c (GC_debug_header_size): Add const.
* dbg_mlc.c (GC_get_debug_header_size): New API function definition.
* include/gc_config_macros.h (GC_ATTR_CONST): New macro.
* include/gc_mark.h (GC_debug_header_size): Add GC_ATTR_DEPRECATED and
const; update comment.
* include/gc_mark.h (GC_get_debug_header_size): New API public const
function declaration; move the comment from GC_debug_header_size.
* include/gc_mark.h (GC_USR_PTR_FROM_BASE): Use
GC_get_debug_header_size() instead of GC_debug_header_size.
Diffstat (limited to 'specific.c')
0 files changed, 0 insertions, 0 deletions