/[ascend]/trunk/models/johnpye/extpy/extpy.c
ViewVC logotype

Diff of /trunk/models/johnpye/extpy/extpy.c

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

revision 934 by johnpye, Thu Nov 23 13:23:33 2006 UTC revision 935 by johnpye, Fri Nov 24 00:37:11 2006 UTC
# Line 164  static PyObject *extpy_getbrowser(PyObje Line 164  static PyObject *extpy_getbrowser(PyObje
164      }      }
165      browser = (PyObject *)importhandler_getsharedpointer("browser");      browser = (PyObject *)importhandler_getsharedpointer("browser");
166      if(browser==NULL){      if(browser==NULL){
167          return Py_None;          return Py_BuildValue("");
168      }      }
169      return Py_BuildValue("O",browser);      return Py_BuildValue("O",browser);
170  }  }
# Line 222  static PyObject *extpy_registermethod(Py Line 222  static PyObject *extpy_registermethod(Py
222      ERROR_REPORTER_HERE(ASC_PROG_NOTE,"Registered python method '%s'\n",cname);      ERROR_REPORTER_HERE(ASC_PROG_NOTE,"Registered python method '%s'\n",cname);
223    
224      /* nothing gets returned (but possibly an exception) */      /* nothing gets returned (but possibly an exception) */
225      Py_INCREF(Py_None);      return Py_BuildValue("");
     return Py_None;  
226  }  }
227    
228  static PyMethodDef extpymethods[] = {  static PyMethodDef extpymethods[] = {

Legend:
Removed from v.934  
changed lines
  Added in v.935

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