Wrapper function

Robert Kern robert.kern at gmail.com
Tue Oct 11 13:54:06 EDT 2005


Java and Swing wrote:
> I am having trouble with a wrapper function...
> 
> My C code looks like
> -----------------------
> #include <stdlib.h>
> #include <string.h>
> #include "Python.h"
> 
> int doStuff(const char *input, const char *d) {...}
> 
> PyObject *wrap_doStuff(PyObject *, PyObject *args) {

PyObject *wrap_doStuff(PyObject *self, PyObject *args) {

> ...when I try to compile this I get
> "error C2055: expected formal parameter list, not a type list"  and it
> points to line 31...which is the line "PyObject *wrap_doStuff(...)".

-- 
Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
  -- Richard Harter




More information about the Python-list mailing list