/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.17u-20021226-0459
+ * Version 1.3.17u-20021128-1508
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
#include <string>
-static PyObject* SwigInt_FromBool(bool b) {
+PyObject* SwigInt_FromBool(bool b) {
return PyInt_FromLong(b ? 1L : 0L);
}
-static double SwigNumber_Check(PyObject* o) {
+double SwigNumber_Check(PyObject* o) {
return PyFloat_Check(o) || PyInt_Check(o);
}
-static double SwigNumber_AsDouble(PyObject* o) {
+double SwigNumber_AsDouble(PyObject* o) {
return (PyFloat_Check(o) ? PyFloat_AsDouble(o) : double(PyInt_AsLong(o)));
}
-static PyObject* SwigString_FromString(const std::string& s) {
+PyObject* SwigString_FromString(const std::string& s) {
return PyString_FromString(s.c_str());
}
-static std::string SwigString_AsString(PyObject* o) {
+std::string SwigString_AsString(PyObject* o) {
return std::string(PyString_AsString(o));
}
}
+static PyObject *_wrap_putenv(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ std::string *arg1 = 0 ;
+ std::string temp1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:putenv",&obj0)) goto fail;
+ {
+ if (PyString_Check(obj0)) {
+ temp1 = std::string(PyString_AsString(obj0));
+ arg1 = &temp1;
+ }else {
+ SWIG_exception(SWIG_TypeError, "string expected");
+ }
+ }
+ otk::putenv((std::string const &)*arg1);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
static PyObject *_wrap_basename(PyObject *self, PyObject *args) {
PyObject *resultobj;
std::string *arg1 = 0 ;
{ (char *)"itostring_long", _wrap_itostring_long, METH_VARARGS },
{ (char *)"itostring_unsigned", _wrap_itostring_unsigned, METH_VARARGS },
{ (char *)"itostring", _wrap_itostring, METH_VARARGS },
+ { (char *)"putenv", _wrap_putenv, METH_VARARGS },
{ (char *)"basename", _wrap_basename, METH_VARARGS },
{ (char *)"OtkEventHandler_handle", _wrap_OtkEventHandler_handle, METH_VARARGS },
{ (char *)"OtkEventHandler_keyPressHandler", _wrap_OtkEventHandler_keyPressHandler, METH_VARARGS },