diff options
author | 2020-09-05 19:43:54 +0200 | |
---|---|---|
committer | 2020-09-05 21:31:49 +0200 | |
commit | f3eb6324652fea263972087146fbdde9e32f9a0f (patch) | |
tree | f63d352948c3a4fcf62857839cc5c5359804b0f5 /src/lib/netlist/plib/pdynlib.cpp | |
parent | 4dd7e21f565b12e8487b884089d769f0b30147c6 (diff) |
netlist: code maintenance and performance optimizations.
* rename some misleading type names
* remove callback_t and replace by better scalable approach
* hide implementations details
* move sources classes from putil.h to psources.h
* reduce code complexity
* improve parsing performance, parsing netlists now is twice as fast.
* fix issues around multi-byte string support
* moved psplit into pstrutil.h
Diffstat (limited to 'src/lib/netlist/plib/pdynlib.cpp')
-rw-r--r-- | src/lib/netlist/plib/pdynlib.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/netlist/plib/pdynlib.cpp b/src/lib/netlist/plib/pdynlib.cpp index 6268ad450de..c33120049d5 100644 --- a/src/lib/netlist/plib/pdynlib.cpp +++ b/src/lib/netlist/plib/pdynlib.cpp @@ -30,7 +30,7 @@ dynlib::dynlib(const pstring &libname) #else //printf("loading <%s>\n", libname.c_str()); if (!libname.empty()) - m_lib = dlopen(libname.c_str(), RTLD_LAZY); + m_lib = dlopen(putf8string(libname).c_str(), RTLD_LAZY); else m_lib = dlopen(nullptr, RTLD_LAZY); #endif @@ -56,7 +56,7 @@ dynlib::dynlib(const pstring &path, const pstring &libname) #else //printf("loading <%s>\n", libname.c_str()); if (!libname.empty()) - m_lib = dlopen(libname.c_str(), RTLD_LAZY); + m_lib = dlopen(putf8string(libname).c_str(), RTLD_LAZY); else m_lib = dlopen(nullptr, RTLD_LAZY); #endif @@ -85,7 +85,7 @@ void *dynlib::getsym_p(const pstring &name) const noexcept #ifdef _WIN32 return (void *) GetProcAddress((HMODULE) m_lib, name.c_str()); #else - return dlsym(m_lib, name.c_str()); + return dlsym(m_lib, putf8string(name).c_str()); #endif } |