diff options
author | Ariadne Conill <ariadne@dereferenced.org> | 2021-12-10 14:33:52 -0600 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2021-12-14 21:10:26 +0200 |
commit | 0fd415faf57bdf6e3e459b8315c3d9c8d69b0136 (patch) | |
tree | bff68e521ba540effc90868e99c40a972e2eaf05 /src/apk_defines.h | |
parent | eab6645cb8c03282fbe6b8484c3fd390cfd91a9c (diff) | |
download | apk-tools-0fd415faf57bdf6e3e459b8315c3d9c8d69b0136.tar.gz apk-tools-0fd415faf57bdf6e3e459b8315c3d9c8d69b0136.tar.bz2 apk-tools-0fd415faf57bdf6e3e459b8315c3d9c8d69b0136.tar.xz apk-tools-0fd415faf57bdf6e3e459b8315c3d9c8d69b0136.zip |
applet: rework APK_DEFINE_APPLET to use constructor attribute
this allows the applet registration to work in a portable way, without having to
weird things with the linker.
ref #10794
[TT: rebased for 2.12]
Diffstat (limited to 'src/apk_defines.h')
-rw-r--r-- | src/apk_defines.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/apk_defines.h b/src/apk_defines.h index 6e54076..dbb21bf 100644 --- a/src/apk_defines.h +++ b/src/apk_defines.h @@ -212,6 +212,7 @@ APK_ARRAY(apk_string_array, char *); #define foreach_array_item(iter, array) \ for (iter = &(array)->item[0]; iter < &(array)->item[(array)->num]; iter++) +#define LIST_HEAD(name) struct list_head name = { &name, &name } #define LIST_END (void *) 0xe01 #define LIST_POISON1 (void *) 0xdeadbeef #define LIST_POISON2 (void *) 0xabbaabba |