aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-04-22 10:07:47 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-04-23 15:21:19 +0300
commit33b4a2d9974b187b59b2cc1883ba6723f1e52742 (patch)
treecbf7633e7b22750002a24a1bd6cc7278e44d1223 /src
parentf80da0ba6f06bc3ce66852cd69d1eec5e748b0ef (diff)
downloadlibmicrohttpd-33b4a2d9974b187b59b2cc1883ba6723f1e52742.tar.gz
libmicrohttpd-33b4a2d9974b187b59b2cc1883ba6723f1e52742.zip
autoinit_funcs.h: improved formatting
Diffstat (limited to 'src')
-rw-r--r--src/include/autoinit_funcs.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/include/autoinit_funcs.h b/src/include/autoinit_funcs.h
index f48c4f9c..7d03679c 100644
--- a/src/include/autoinit_funcs.h
+++ b/src/include/autoinit_funcs.h
@@ -1,6 +1,6 @@
1/* 1/*
2 * AutoinitFuncs: Automatic Initialization and Deinitialization Functions 2 * AutoinitFuncs: Automatic Initialization and Deinitialization Functions
3 * Copyright(C) 2014-2017 Karlson2k (Evgeny Grin) 3 * Copyright(C) 2014-2022 Karlson2k (Evgeny Grin)
4 * 4 *
5 * This header is free software; you can redistribute it and / or 5 * This header is free software; you can redistribute it and / or
6 * modify it under the terms of the GNU Lesser General Public 6 * modify it under the terms of the GNU Lesser General Public
@@ -139,8 +139,8 @@
139 139
140/* Internal variable prefix (can be any) */ 140/* Internal variable prefix (can be any) */
141#define W32_INITHELPERVARNAME(f) _initHelperDummy_ ## f 141#define W32_INITHELPERVARNAME(f) _initHelperDummy_ ## f
142#define W32_INITHELPERVARNAMEDECORSTR(f) W32_VARDECORPEFIXSTR _STRMACRO ( \ 142#define W32_INITHELPERVARNAMEDECORSTR(f) \
143 W32_INITHELPERVARNAME (f)) 143 W32_VARDECORPEFIXSTR _STRMACRO (W32_INITHELPERVARNAME (f))
144 144
145/* Declare section (segment), put variable pointing to init function to chosen segment, 145/* Declare section (segment), put variable pointing to init function to chosen segment,
146 force linker to include variable to avoid omitting by optimizer */ 146 force linker to include variable to avoid omitting by optimizer */
@@ -151,8 +151,8 @@
151#define W32_FPTR_IN_SEG(S,F) \ 151#define W32_FPTR_IN_SEG(S,F) \
152 __pragma (section (S,long,read)) \ 152 __pragma (section (S,long,read)) \
153 __pragma (comment (linker, "/INCLUDE:" W32_INITHELPERVARNAMEDECORSTR (F))) \ 153 __pragma (comment (linker, "/INCLUDE:" W32_INITHELPERVARNAMEDECORSTR (F))) \
154 W32_INITVARDECL __declspec(allocate (S))int (__cdecl * W32_INITHELPERVARNAME ( \ 154 W32_INITVARDECL __declspec(allocate (S))int \
155 F))(void) = &F 155 (__cdecl * W32_INITHELPERVARNAME (F))(void) = &F
156 156
157/* Section (segment) names for pointers to initializers */ 157/* Section (segment) names for pointers to initializers */
158#define W32_SEG_INIT_C_USER ".CRT$XCU" 158#define W32_SEG_INIT_C_USER ".CRT$XCU"