~ubuntu-branches/ubuntu/maverick/swig1.3/maverick

« back to all changes in this revision

Viewing changes to Lib/python/pyrun.swg

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2006-12-20 14:43:24 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20061220144324-bps3kb06xp5oy9w1
Tags: 1.3.31-1ubuntu1
* Merge from debian unstable, remaining changes:
  - drop support for pike
  - use php5 instead of php4
  - clean Runtime/ as well
  - force a few environment variables

Show diffs side-by-side

added added

removed removed

Lines of Context:
216
216
SWIGRUNTIMEINLINE PyObject * 
217
217
_SWIG_Py_None(void)
218
218
{
219
 
  PyObject *none = Py_BuildValue("");
 
219
  PyObject *none = Py_BuildValue((char*)"");
220
220
  Py_DECREF(none);
221
221
  return none;
222
222
}
1075
1075
    void *vptr = 0;
1076
1076
    
1077
1077
    /* here we get the method pointer for callbacks */
1078
 
    char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
 
1078
    const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1079
1079
    const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
1080
1080
    if (desc) {
1081
1081
      desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
1196
1196
   return;
1197
1197
 }
1198
1198
#endif
1199
 
 dict = PyObject_GetAttrString(inst, "__dict__");
 
1199
 dict = PyObject_GetAttrString(inst, (char*)"__dict__");
1200
1200
 PyDict_SetItem(dict, SWIG_This(), swig_this);
1201
1201
 Py_DECREF(dict);
1202
1202
1337
1337
 
1338
1338
/* The python cached type query */
1339
1339
SWIGRUNTIME PyObject *
1340
 
SWIG_Python_TypeCache() {
 
1340
SWIG_Python_TypeCache(void) {
1341
1341
  static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
1342
1342
  return cache;
1343
1343
}