Overview
Comment: | objfw-embed: Make it work without GNU coreutils |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
2d2b1616f2854c80e605e015c58cd194 |
User & Date: | js on 2022-08-02 00:09:20 |
Other Links: | manifest | tags |
Context
2022-08-02
| ||
00:39 | OFEmbeddedFileURLHandler: Fix wrong #endif check-in: d05c370a94 user: js tags: trunk | |
00:09 | objfw-embed: Make it work without GNU coreutils check-in: 2d2b1616f2 user: js tags: trunk | |
2022-08-01
| ||
23:44 | tests: Make BSD make happy again check-in: 849bdd8662 user: js tags: trunk | |
Changes
Modified utils/objfw-embed from [e04090f696] to [a4ff5f4233].
︙ | ︙ | |||
10 11 12 13 14 15 16 | #include <stddef.h> #include <stdint.h> extern void OFRegisterEmbeddedFile(const char *, const uint8_t *, size_t); static const uint8_t bytes[] = { EOF | | | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | #include <stddef.h> #include <stdint.h> extern void OFRegisterEmbeddedFile(const char *, const uint8_t *, size_t); static const uint8_t bytes[] = { EOF od -vtx1 $1 | sed '/^[^ ][^ ]*$/d;s/ */ /g;s/ $//g;s/^[^ ][^ ]* //;s/ /, 0x/g;s/^/ 0x/;s/$/,/' cat <<EOF }; static void __attribute__((__constructor__)) ctor(void) { OFRegisterEmbeddedFile("$2", bytes, sizeof(bytes)); } EOF |