Changeset 1380:3d4feefdfb45
- Timestamp:
- 10/17/09 01:10:13 (2 years ago)
- Branch:
- default
- Location:
- trunk
- Files:
-
- 3 edited
-
include/libdodo/xexec.h (modified) (2 diffs)
-
src/exceptionBasic.cc (modified) (1 diff)
-
src/xexec.cc (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/libdodo/xexec.h
r1373 r1380 66 66 /** 67 67 * @struct __module__ 68 * @brief is returned from moduleInitin the library68 * @brief is returned from initModule in the library 69 69 */ 70 70 struct __module__ { … … 76 76 77 77 /** 78 * @typedef moduleInit78 * @typedef initModule 79 79 * @brief defines type of init function for library 80 80 * @param data defines user data 81 81 * @note name in the library must be initXexecModule 82 82 */ 83 typedef __module__ (* moduleInit)(void *data);84 85 /** 86 * @typedef moduleDeinit83 typedef __module__ (*initModule)(void *data); 84 85 /** 86 * @typedef deinitModule 87 87 * @brief defines type of deinit function for library 88 88 * @note name in the library must be deinitXexecModule 89 89 */ 90 typedef void (* moduleDeinit)();90 typedef void (*deinitModule)(); 91 91 #endif 92 92 -
trunk/src/exceptionBasic.cc
r1374 r1380 1068 1068 __module__ mod = init(toInit); 1069 1069 1070 deinitModule deinit = (deinitModule)dlsym(handle, "deinitExceptionBasicModule"); 1071 if (deinit != NULL) 1072 deinit(); 1073 1070 1074 #ifndef DL_FAST 1071 1075 if (dlclose(handle) != 0) -
trunk/src/xexec.cc
r1373 r1380 74 74 { 75 75 #ifdef DL_EXT 76 moduleDeinitdeinit;76 deinitModule deinit; 77 77 78 78 dodoList<__item__>::iterator i(preExec.begin()), j(preExec.end()); … … 81 81 continue; 82 82 83 deinit = ( moduleDeinit)dlsym(i->handle, "deinitXexecModule");83 deinit = (deinitModule)dlsym(i->handle, "deinitXexecModule"); 84 84 if (deinit != NULL) 85 85 deinit(); … … 96 96 continue; 97 97 98 deinit = ( moduleDeinit)dlsym(i->handle, "deinitXexecModule");98 deinit = (deinitModule)dlsym(i->handle, "deinitXexecModule"); 99 99 if (deinit != NULL) 100 100 deinit(); … … 143 143 #ifdef DL_EXT 144 144 if (current->handle != NULL) { 145 moduleDeinitdeinit;146 147 deinit = ( moduleDeinit)dlsym(current->handle, "deinitXexecModule");145 deinitModule deinit; 146 147 deinit = (deinitModule)dlsym(current->handle, "deinitXexecModule"); 148 148 if (deinit != NULL) 149 149 deinit(); … … 225 225 throw exception::basic(exception::MODULE_XEXEC, XEXECEX_MODULE, exception::ERRNO_DYNLOAD, 0, dlerror(), __LINE__, __FILE__); 226 226 227 moduleInit init = (moduleInit)dlsym(handle, "initXexecModule");227 initModule init = (initModule)dlsym(handle, "initXexecModule"); 228 228 if (init == NULL) 229 229 throw exception::basic(exception::MODULE_XEXEC, XEXECEX_MODULE, exception::ERRNO_DYNLOAD, 0, dlerror(), __LINE__, __FILE__); … … 261 261 throw exception::basic(exception::MODULE_XEXEC, XEXECEX_ADDXEXEC, exception::ERRNO_DYNLOAD, 0, dlerror(), __LINE__, __FILE__); 262 262 263 moduleInit init = (moduleInit)dlsym(e.handle, "initXexecModule");263 initModule init = (initModule)dlsym(e.handle, "initXexecModule"); 264 264 if (init == NULL) 265 265 throw exception::basic(exception::MODULE_XEXEC, XEXECEX_ADDXEXEC, exception::ERRNO_DYNLOAD, 0, dlerror(), __LINE__, __FILE__); … … 284 284 postExecId = e.id; 285 285 } 286 287 deinitModule deinit = (deinitModule)dlsym(e.handle, "deinitXexecModule"); 288 if (deinit == NULL) 289 throw exception::basic(exception::MODULE_XEXEC, XEXECEX_ADDXEXEC, exception::ERRNO_DYNLOAD, 0, dlerror(), __LINE__, __FILE__); 290 291 deinit(); 286 292 } 287 293
Note: See TracChangeset
for help on using the changeset viewer.
