2
0
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:
Stefan Seefeld
2006-10-27 21:19:47 +00:00
parent 9f4d39d9fe
commit a74c8e3da3
4 changed files with 6 additions and 4 deletions

View File

@@ -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());
}

View File

@@ -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);
}
}

View File

@@ -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);

View File

@@ -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);