Files
Bruno Haible 97a3e07028 set-c++: Avoid clang UBSAN runtime errors.
* modules/set-c++ (configure.ac): Define _GL_HAVE_SET_HH.
* lib/gl_set.h (_GL_SET_INVOKES_FN_PTR): New macro.
* lib/gl_array_set.c (gl_array_search, gl_array_remove_at,
gl_array_remove, gl_array_free): Mark as _GL_SET_INVOKES_FN_PTR.
* lib/gl_hash_set.c (gl_hash_search, gl_hash_nx_add, gl_hash_remove,
gl_hash_free): Likewise.
2026-08-12 18:59:53 +02:00

27 lines
329 B
Plaintext

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