Update of /cvsroot/boost/boost/libs/python/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv26706
Modified Files:
exec.cpp voidptr.cpp
Log Message:
removed tabs (inspect tool)
Index: exec.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/python/test/exec.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- exec.cpp 20 Feb 2006 15:45:40 -0000 1.5
+++ exec.cpp 24 Jul 2006 22:25:35 -0000 1.6
@@ -54,7 +54,7 @@
// Register the module with the interpreter
if (PyImport_AppendInittab("embedded_hello", initembedded_hello) == -1)
throw std::runtime_error("Failed to add embedded_hello to the
interpreter's "
- "builtin modules");
+ "builtin modules");
// Retrieve the main module
python::object main = python::import("__main__");
Index: voidptr.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/python/test/voidptr.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- voidptr.cpp 11 Feb 2006 22:29:32 -0000 1.1
+++ voidptr.cpp 24 Jul 2006 22:25:35 -0000 1.2
@@ -12,23 +12,23 @@
void *get()
{
- return test;
+ return test;
}
void *getnull()
{
- return 0;
+ return 0;
}
void use(void *a)
{
- if(a!=test)
+ if(a!=test)
throw std::runtime_error(std::string("failed"));
}
int useany(void *a)
{
- return a ? 1 : 0;
+ return a ? 1 : 0;
}
@@ -36,8 +36,8 @@
BOOST_PYTHON_MODULE(voidptr_ext)
{
- bpl::def("get", &::get,
bpl::return_value_policy<bpl::return_opaque_pointer>());
- bpl::def("getnull", &::getnull,
bpl::return_value_policy<bpl::return_opaque_pointer>());
- bpl::def("use", &::use);
- bpl::def("useany", &::useany);
+ bpl::def("get", &::get,
bpl::return_value_policy<bpl::return_opaque_pointer>());
+ bpl::def("getnull", &::getnull,
bpl::return_value_policy<bpl::return_opaque_pointer>());
+ bpl::def("use", &::use);
+ bpl::def("useany", &::useany);
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs