ObjFW  Check-in [5fb890f145]

Overview
Comment:OFEmbeddedIRIHandler: Fix missing static
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | 1.1
Files: files | file ages | folders
SHA3-256: 5fb890f145926442690445f9675df8ef2a57e99945564c456b786a49fad3b142
User & Date: js on 2024-04-29 03:31:28
Other Links: branch diff | manifest | tags
Context
2024-04-29
23:12
Properly hide private symbols check-in: efb77e8878 user: js tags: 1.1
03:31
OFEmbeddedIRIHandler: Fix missing static check-in: 5fb890f145 user: js tags: 1.1
03:31
OFEmbeddedIRIHandler: Fix missing static check-in: cce464b94e user: js tags: trunk
2024-04-28
12:47
Skip (sym)link tests if unavailable check-in: 2ea81cb7c3 user: js tags: 1.1
Changes

Modified src/OFEmbeddedIRIHandler.m from [0aa22bc193] to [275cbe280f].

31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#import "OFOpenItemFailedException.h"

#ifdef OF_HAVE_THREADS
# import "OFOnce.h"
# import "OFPlainMutex.h"
#endif

struct EmbeddedFile {
	OFString *path;
	const uint8_t *bytes;
	size_t size;
} *embeddedFiles = NULL;
size_t numEmbeddedFiles = 0;
#ifdef OF_HAVE_THREADS
static OFPlainMutex mutex;
static OFOnceControl mutexOnceControl = OFOnceControlInitValue;

static void
initMutex(void)
{







|




|







31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#import "OFOpenItemFailedException.h"

#ifdef OF_HAVE_THREADS
# import "OFOnce.h"
# import "OFPlainMutex.h"
#endif

static struct EmbeddedFile {
	OFString *path;
	const uint8_t *bytes;
	size_t size;
} *embeddedFiles = NULL;
static size_t numEmbeddedFiles = 0;
#ifdef OF_HAVE_THREADS
static OFPlainMutex mutex;
static OFOnceControl mutexOnceControl = OFOnceControlInitValue;

static void
initMutex(void)
{