/[ascend]/trunk/pygtk/interface/solverreporter.cpp
ViewVC logotype

Diff of /trunk/pygtk/interface/solverreporter.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 308 by johnpye, Thu Feb 23 00:58:12 2006 UTC revision 309 by johnpye, Thu Feb 23 01:16:08 2006 UTC
# Line 26  PythonSolverReporter::~PythonSolverRepor Line 26  PythonSolverReporter::~PythonSolverRepor
26  }  }
27    
28  int  int
29  PythonSolverReporter::report(const SolverStatus &status) const;  PythonSolverReporter::report(const SolverStatus *status) const;
30      pyarglist = Py_BuildValue("(o)",status); // THIS WON'T WORK :-D      PyObject pystatus, pyarglist, pyresult;
31        pystatus = SWIG_NewPointerObj((void *)status, SWIGTYPE_p_SolverStatus,1);
32        pyarglist = Py_BuildValue("(O)",pystatus); // THIS WON'T WORK :-D
33      pyresult = PyEval_CallObject(pyfunc,pyarglist);      pyresult = PyEval_CallObject(pyfunc,pyarglist);
34      Py_DECREF(pyarglist);      Py_DECREF(pyarglist);
35  }  }

Legend:
Removed from v.308  
changed lines
  Added in v.309

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22