stdbool, stdbool-c99 tests: Fix compilation error with clang/MSVC

2022-09-19 Thread Bruno Haible
On native Windows, with clang compiler and MSVC header files, I get this compilation errors: source='../../gltests/test-stdbool-c99.c' object='test-stdbool-c99.obj' libtool=no \ DEPDIR=.deps depmode=msvc7 /bin/sh ../../build-aux/depcomp \ /home/bruno/msvc/compile clang-cl -ferror-limit=0 -DHAVE_C

Re: gl_omap.h: why does the dispose function expect a CONST void*?

2022-09-19 Thread Bruno Haible
Hi Vivien, > In gl_omap.h, the function to delete a key or a value from an omap is > declared as: > > typedef void (*gl_mapkey_dispose_fn) (const void *key); > typedef void (*gl_mapvalue_dispose_fn) (const void *value); > > They are always called on a value marked as const void *. > > Why is it

gl_omap.h: why does the dispose function expect a CONST void*?

2022-09-19 Thread Vivien Kraus
Hello, In gl_omap.h, the function to delete a key or a value from an omap is declared as: typedef void (*gl_mapkey_dispose_fn) (const void *key); typedef void (*gl_mapvalue_dispose_fn) (const void *value); They are always called on a value marked as const void *. Why is it the case? I will have