Date: Sun Jul 7 21:22:44 CEST 2002
User: Derick Rethans
Directory: srm/main/src
Log Message:
[0.05]
- Really fix it now
Modified files:
srm/main/src/srm_modules.c (version: 1.66)
srm/main/src/srm_modules.h (version: 1.35)
[FILE: /srm/main/src/srm_modules.c]
--- srm/main/src/srm_modules.c:1.65 Fri Jun 21 01:05:34 2002 GMT
+++ srm/main/src/srm_modules.c Sun Jul 07 17:22:43 2002 GMT
@@ -1,4 +1,4 @@
-/* $Id: cvstemp,v 1.65 2002/06/21 03:05:34 kalowsky Exp $ */
+/* $Id: cvstemp,v 1.66 2002/07/07 19:22:43 derick Exp $ */
/* The contents of this file are subject to the Vulcan Logic Public
* License Version 1.1 (the "License"); you may not use this file
@@ -81,7 +81,10 @@
NSSymbol srm_bundle_symbol(void *bundle_handle, const char *symbol_name)
{
NSSymbol symbol;
- symbol = NSLookupSymbolInModule(bundle_handle, symbol_name);
+ char *tmp = malloc (strlen(symbol_name) + 2);
+ sprintf (tmp, "_%s", symbol_name);
+ symbol = NSLookupSymbolInModule(bundle_handle, tmp);
+ free (tmp);
return NSAddressOfSymbol(symbol);
}
[FILE: /srm/main/src/srm_modules.h]
--- srm/main/src/srm_modules.h:1.34 Sun Jul 07 16:25:08 2002 GMT
+++ srm/main/src/srm_modules.h Sun Jul 07 17:22:44 2002 GMT
@@ -1,4 +1,4 @@
-/* $Id: cvstemp,v 1.34 2002/07/07 18:25:08 derick Exp $ */
+/* $Id: cvstemp,v 1.35 2002/07/07 19:22:44 derick Exp $ */
/* The contents of this file are subject to the Vulcan Logic Public
* License Version 1.1 (the "License"); you may not use this file
@@ -141,10 +141,10 @@
const char *srm_bundle_error (void);
/* defines */
-# define DL_LOAD(libname) srm_bundle_load (libname)
-# define DL_UNLOAD(handle) srm_bundle_unload (handle)
-# define DL_FETCH_SYM(h,s) srm_bundle_symbol (h, "_" ## s)
-# define DL_ERROR srm_bundle_error
+# define DL_LOAD(libname) srm_bundle_load (libname)
+# define DL_UNLOAD(handle) srm_bundle_unload (handle)
+# define DL_FETCH_SYM(h,s) srm_bundle_symbol ((h), (s))
+# define DL_ERROR srm_bundle_error
/* enable module support */
# define SRM_DLMODULES_SUPPORT 1
Received on Sun Jul 7 22:07:23 2002
This archive was generated by hypermail 2.1.8 : Tue Jan 06 2009 - 10:00:03 CET