]> granicus.if.org Git - gc/commit
Add two-argument alloc_size attribute to calloc_explicitly_typed (GCC)
authorIvan Maidanski <ivmai@mail.ru>
Fri, 20 Oct 2017 18:54:06 +0000 (21:54 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 20 Oct 2017 18:54:06 +0000 (21:54 +0300)
commit38facd4a1d5add23d6860aa728b1489a8384a985
tree5ef3702b4829d7e099df5f2935ed0304db1d65b6
parent9f22ef2c3d710027722331c43c751fe6cd41ee8c
Add two-argument alloc_size attribute to calloc_explicitly_typed (GCC)

* include/gc_config_macros.h [!GC_ATTR_CALLOC_SIZE]
(GC_ATTR_CALLOC_SIZE): New macro (which uses alloc_size attribute
if GCC or Clang).
* include/gc_typed.h (GC_calloc_explicitly_typed): Add
GC_ATTR_CALLOC_SIZE(1,2) attribute.
include/gc_config_macros.h
include/gc_typed.h