[Python-Dev] Baffled by PyArg_ParseTupleAndKeywords modification (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Sat Feb 11 14:14:00 CET 2006
- Previous message: [Python-Dev] Baffled by PyArg_ParseTupleAndKeywords modification
- Next message: [Python-Dev] Baffled by PyArg_ParseTupleAndKeywords modification
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Bengt Richter wrote:
Will a typedef help?
A typedef can never help. It is always possible to reformulate a program using typedefs to one that doesn't use typedefs.
Compiling your program with the const modification line removed gives
martin.c: In function 'int main()': martin.c🔞 error: invalid conversion from 'char**' to 'const char**' martin.c🔞 error: initializing argument 1 of 'void foo(const char**)'
Regards, Martin
- Previous message: [Python-Dev] Baffled by PyArg_ParseTupleAndKeywords modification
- Next message: [Python-Dev] Baffled by PyArg_ParseTupleAndKeywords modification
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]