gcc-python-plugin icon indicating copy to clipboard operation
gcc-python-plugin copied to clipboard

partial implementation of PyString_AsStringAndSize

Open davidmalcolm opened this issue 8 years ago • 1 comments

Attached there is a patch sketching PyString_AsStringAndSize.

the function takes two output parameters and returns 0 in case of success, -1 on failure. I've only implemented the return value; as a result, the buffer seems uninitialized downstream.

Is there an example of a function handling output parameters where to get hint about how to implement it?

api doc: http://docs.python.org/c-api/string.html#PyString_AsStringAndSize

davidmalcolm avatar Feb 09 '17 20:02 davidmalcolm

Imported from trac issue 35. Created by dvarrazzo on 2012-03-03T20:54:05, last modified: 2012-03-03T20:54:05

davidmalcolm avatar Feb 09 '17 20:02 davidmalcolm