ObjFW  Check-in [5e128fd25e]

Overview
Comment:Fix objfw-embed on QNX
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 5e128fd25ee2c3f7655f15a15f49ece5b3553ecc02ea1cf57498b6fc65993ca6
User & Date: js on 2024-04-01 21:07:29
Other Links: manifest | tags
Context
2024-04-02
01:33
OFTarArchive: Fix a memory leak check-in: ea9079b62b user: js tags: trunk
2024-04-01
21:07
Fix objfw-embed on QNX check-in: 5e128fd25e user: js tags: trunk
16:01
Define _LARGEFILE64_SOURCE to 1 check-in: fba60b6967 user: js tags: trunk
Changes

Modified utils/objfw-embed from [0311eeeecc] to [57048a3625].

29
30
31
32
33
34
35
36

37
38
39
40
41
42
43
44
45
# import "OFEmbeddedIRIHandler.h"
#else
# import <ObjFW/OFEmbeddedIRIHandler.h>
#endif

static const uint8_t bytes[] = {
EOF
od -vtx1 $1 | sed -e '/^[^ ][^ ]*$/d;s/  */ /g' -e 's/ $//g;s/^[^ ][^ ]* //' -e 's/ /, 0x/g' -e 's/^/	0x/' -e 's/$/,/'

cat <<EOF
};

static void __attribute__((__constructor__))
ctor(void)
{
	OFRegisterEmbeddedFile(@"$2", bytes, sizeof(bytes));
}
EOF







|
>









29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# import "OFEmbeddedIRIHandler.h"
#else
# import <ObjFW/OFEmbeddedIRIHandler.h>
#endif

static const uint8_t bytes[] = {
EOF
od -vtx1 "$1" | cut -d' ' -sf2- | \
    sed '/^ *$/d;s/^ *//;s/ *$//;s/  */ /g;s/^/0x/;s/ /, 0x/g;s/$/,/'
cat <<EOF
};

static void __attribute__((__constructor__))
ctor(void)
{
	OFRegisterEmbeddedFile(@"$2", bytes, sizeof(bytes));
}
EOF