Re: numeric C pointer argument and python integer argument
Greg Ewing <[email protected]>
| Newsgroups | gmane.comp.python.pyrex |
|---|---|
| Organization | University of Canterbury | Te Whare Wananga o Waitaha |
| Message-ID | <[email protected]> |
Daniele Pianu wrote: > when I parse > a method in a C header, I need to know if a pointer argument points to a > single integer or to a vector to wrap the method. I think it's impossible to > do this in the script. Am I wrong? You're not wrong. Without extra information, it's impossible to know whether an argument declared as "foo *" is meant to point to a single foo or an array of foos. And if an array, how many foos there are in it. -- Greg