ObjFW  Check-in [e549c515e0]

Overview
Comment:RTLD_LAZY makes more sense, as we only need a few symbols looked up.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: e549c515e052da849be90846d9b8187098963e036041cb6dfdd6d6be3b53daa5
User & Date: js on 2009-07-24 22:44:28
Other Links: manifest | tags
Context
2009-08-10
18:25
Correctly handle lastObject / lastItem if the array is empty. check-in: bc012259a9 user: js tags: trunk
2009-07-24
22:44
RTLD_LAZY makes more sense, as we only need a few symbols looked up. check-in: e549c515e0 user: js tags: trunk
2009-07-23
15:39
Include stdint.h in OFMacros.h. check-in: 15a5433649 user: js tags: trunk
Changes

Modified src/OFPlugin.m from [59ef9c4044] to [773d6d11cf].

35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
						       size: pathlen +
							     suffixlen + 1];
	}
	memcpy(file, [path cString], pathlen);
	memcpy(file + pathlen, PLUGIN_SUFFIX, suffixlen);
	file[pathlen + suffixlen] = 0;

	if ((handle = dlopen(file, RTLD_NOW)) == NULL) {
		free(file);
		@throw [OFInitializationFailedException newWithClass: self];
	}
	free(file);

	if ((init_plugin = dlsym(handle, "init_plugin")) == NULL ||
	    (plugin = init_plugin()) == nil) {







|







35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
						       size: pathlen +
							     suffixlen + 1];
	}
	memcpy(file, [path cString], pathlen);
	memcpy(file + pathlen, PLUGIN_SUFFIX, suffixlen);
	file[pathlen + suffixlen] = 0;

	if ((handle = dlopen(file, RTLD_LAZY)) == NULL) {
		free(file);
		@throw [OFInitializationFailedException newWithClass: self];
	}
	free(file);

	if ((init_plugin = dlsym(handle, "init_plugin")) == NULL ||
	    (plugin = init_plugin()) == nil) {