mirror of
https://https.git.savannah.gnu.org/git/gnulib.git
synced 2026-04-28 06:33:36 +00:00
at-init: Move private Gnulib functions to _gl_* namespace.
* lib/at-init.h (_gl_at_init_dummy): Renamed from gl_at_init_dummy. * lib/at-init.c: Update.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2026-03-15 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
at-init: Move private Gnulib functions to _gl_* namespace.
|
||||
* lib/at-init.h (_gl_at_init_dummy): Renamed from gl_at_init_dummy.
|
||||
* lib/at-init.c: Update.
|
||||
|
||||
2026-03-15 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
stdc_memreverse8: Add tests.
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#if defined _MSC_VER
|
||||
|
||||
void
|
||||
gl_at_init_dummy (_GL_UNUSED const void *p)
|
||||
_gl_at_init_dummy (_GL_UNUSED const void *p)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
static void function(void); \
|
||||
extern int (* _array ## function)(void); \
|
||||
int function ## _wrapper(void); \
|
||||
int function ## _wrapper(void) { function(); gl_at_init_dummy (_array ## function); return 0; } \
|
||||
int function ## _wrapper(void) { function(); _gl_at_init_dummy (_array ## function); return 0; } \
|
||||
__pragma(comment(linker,"/include:" _sym_prefix # function "_wrapper")) \
|
||||
__pragma(section(".CRT$XCU",read)) \
|
||||
__declspec(allocate(".CRT$XCU")) int (* _array ## function)(void) = function ## _wrapper
|
||||
@@ -94,12 +94,12 @@
|
||||
static void function(void); \
|
||||
extern int (* _array ## function)(void); \
|
||||
int function ## _constructor(void); \
|
||||
int function ## _constructor(void) { atexit (function); gl_at_init_dummy (_array ## function); return 0; } \
|
||||
int function ## _constructor(void) { atexit (function); _gl_at_init_dummy (_array ## function); return 0; } \
|
||||
__pragma(comment(linker,"/include:" _sym_prefix # function "_constructor")) \
|
||||
__pragma(section(".CRT$XCU",read)) \
|
||||
__declspec(allocate(".CRT$XCU")) int (* _array ## function)(void) = function ## _constructor
|
||||
|
||||
extern void gl_at_init_dummy (const void *);
|
||||
extern void _gl_at_init_dummy (const void *);
|
||||
|
||||
#elif defined __SUNPRO_C
|
||||
/* Sun C */
|
||||
|
||||
Reference in New Issue
Block a user