Files
Bruno Haible c1abdadc38 map-c++: Avoid clang UBSAN runtime errors.
* modules/map-c++ (configure.ac): Define _GL_HAVE_MAP_HH.
* lib/gl_map.h (_GL_MAP_INVOKES_FN_PTR): New macro.
(gl_map_nx_put, gl_map_remove): Mark as _GL_MAP_INVOKES_FN_PTR.
* lib/gl_array_map.c (gl_array_indexof, gl_array_remove_at,
gl_array_free): Likewise.
* lib/gl_hash_map.c (gl_hash_search, gl_hash_nx_getput,
gl_hash_getremove, gl_hash_free): Likewise.
* lib/gl_linkedhash_map.c (gl_linkedhash_search,
gl_linkedhash_nx_getput, gl_linkedhash_getremove, gl_linkedhash_free):
Likewise.
2026-08-12 19:10:50 +02:00

27 lines
329 B
Plaintext

Description:
Abstract map data type as a C++ class.
Files:
lib/gl_map.hh
Depends-on:
xmap
configure.ac:
AC_DEFINE([_GL_HAVE_MAP_HH], [1],
[Define if the gnulib module map-c++ is present.])
Makefile.am:
Include:
"gl_map.hh"
Link:
$(LTLIBINTL) when linking with libtool, $(LIBINTL) otherwise
License:
GPL
Maintainer:
all