@@ -27,11 +27,11 @@ #import "OFString.h" #import "OFLocalization.h" #import "OFInitializationFailedException.h" -typedef OFPlugin* (*init_plugin_t)(void); +typedef OFPlugin *(*init_plugin_t)(void); of_plugin_handle_t of_dlopen(OFString *path, int flags) { #ifndef OF_WINDOWS @@ -43,17 +43,17 @@ return LoadLibraryW([path UTF16String]); #endif } -void* +void * of_dlsym(of_plugin_handle_t handle, const char *symbol) { #ifndef OF_WINDOWS return dlsym(handle, symbol); #else - return (void*)(uintptr_t)GetProcAddress(handle, symbol); + return (void *)(uintptr_t)GetProcAddress(handle, symbol); #endif } void of_dlclose(of_plugin_handle_t handle) @@ -64,11 +64,11 @@ FreeLibrary(handle); #endif } @implementation OFPlugin -+ (id)pluginFromFile: (OFString*)path ++ (id)pluginFromFile: (OFString *)path { void *pool = objc_autoreleasePoolPush(); of_plugin_handle_t handle; init_plugin_t initPlugin; OFPlugin *plugin;