mirror of
https://github.com/boostorg/python.git
synced 2026-01-27 19:12:16 +00:00
Fix symbol visibility.
[SVN r35754]
This commit is contained in:
@@ -17,12 +17,14 @@ namespace python
|
||||
// global and local are the global and local scopes respectively,
|
||||
// used during execution.
|
||||
object
|
||||
BOOST_PYTHON_DECL
|
||||
exec(str string, object global = object(), object local = object());
|
||||
|
||||
// Execute python source code from file filename.
|
||||
// global and local are the global and local scopes respectively,
|
||||
// used during execution.
|
||||
object
|
||||
BOOST_PYTHON_DECL
|
||||
exec_file(str filename, object global = object(), object local = object());
|
||||
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace python
|
||||
{
|
||||
|
||||
// Import the named module and return a reference to it.
|
||||
object import(str name);
|
||||
object BOOST_PYTHON_DECL import(str name);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace boost
|
||||
namespace python
|
||||
{
|
||||
|
||||
object exec(str string, object global, object local)
|
||||
object BOOST_PYTHON_DECL exec(str string, object global, object local)
|
||||
{
|
||||
// should be 'char const *' but older python versions don't use 'const' yet.
|
||||
char *s = python::extract<char *>(string);
|
||||
@@ -25,7 +25,7 @@ object exec(str string, object global, object local)
|
||||
// Execute python source code from file filename.
|
||||
// global and local are the global and local scopes respectively,
|
||||
// used during execution.
|
||||
object exec_file(str filename, object global, object local)
|
||||
object BOOST_PYTHON_DECL exec_file(str filename, object global, object local)
|
||||
{
|
||||
// should be 'char const *' but older python versions don't use 'const' yet.
|
||||
char *f = python::extract<char *>(filename);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace boost
|
||||
namespace python
|
||||
{
|
||||
|
||||
object import(str name)
|
||||
object BOOST_PYTHON_DECL import(str name)
|
||||
{
|
||||
// should be 'char const *' but older python versions don't use 'const' yet.
|
||||
char *n = python::extract<char *>(name);
|
||||
|
||||
Reference in New Issue
Block a user