Overview
Comment: | Make it more clear that +[pluginFromFile:] does not return OFPlugin*. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | 0.6 |
Files: | files | file ages | folders |
SHA3-256: |
acd6d2ff6788d478f1991d7355180b56 |
User & Date: | js on 2012-02-28 14:28:44 |
Other Links: | branch diff | manifest | tags |
Context
2012-02-28
| ||
14:29 | Don't use alloca, as it could be unsafe. check-in: 92412c8453 user: js tags: 0.6 | |
14:28 | Make it more clear that +[pluginFromFile:] does not return OFPlugin*. check-in: acd6d2ff67 user: js tags: 0.6 | |
2012-02-27
| ||
23:16 | Fix a missing $ in objfw-compile. check-in: 9e9b1c1f96 user: js tags: 0.6 | |
Changes
Modified src/OFPlugin.h from [fdcaea100c] to [5291cd6c54].
︙ | ︙ | |||
30 31 32 33 34 35 36 | */ @interface OFPlugin: OFObject { of_plugin_handle_t handle; } /** | | | | | | 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | */ @interface OFPlugin: OFObject { of_plugin_handle_t handle; } /** * \brief Loads a plugin from a file. * * \param path Path to the plugin file. The suffix is appended automatically. * \return The loaded plugin */ + (id)pluginFromFile: (OFString*)path; @end |
Modified src/OFPlugin.m from [c9d1104dc0] to [77231c2582].
︙ | ︙ | |||
33 34 35 36 37 38 39 | #ifdef _WIN32 # define dlopen(file, mode) LoadLibrary(file) # define dlsym(handle, symbol) GetProcAddress(handle, symbol) # define dlclose(handle) FreeLibrary(handle) #endif @implementation OFPlugin | | | 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | #ifdef _WIN32 # define dlopen(file, mode) LoadLibrary(file) # define dlsym(handle, symbol) GetProcAddress(handle, symbol) # define dlclose(handle) FreeLibrary(handle) #endif @implementation OFPlugin + (id)pluginFromFile: (OFString*)path { OFAutoreleasePool *pool; OFMutableString *file; of_plugin_handle_t handle; OFPlugin *(*initPlugin)(); OFPlugin *plugin; |
︙ | ︙ |