From: <and...@us...> - 2013-11-05 15:16:38
|
Revision: 12660 http://sourceforge.net/p/plplot/code/12660 Author: andrewross Date: 2013-11-05 15:16:33 +0000 (Tue, 05 Nov 2013) Log Message: ----------- Fix up uninitialized variable warnings in python bindings. This is a genuine error, although not an uninitialized variable. As set up the mapform func argument could be omitted from plmap / plmeridians, but this is not allowed since subsequent arguments are mandatory. Swig doesn't allow this since not all languages that swig supports can handle this. Modified Paths: -------------- trunk/bindings/python/plplotcmodule.i Modified: trunk/bindings/python/plplotcmodule.i =================================================================== --- trunk/bindings/python/plplotcmodule.i 2013-11-05 15:04:47 UTC (rev 12659) +++ trunk/bindings/python/plplotcmodule.i 2013-11-05 15:16:33 UTC (rev 12660) @@ -1376,12 +1376,13 @@ cleanup_mapform(); } -// you can omit the mapform func -%typemap( default ) mapform_func mapform { - python_mapform = 0; - $1 = NULL; -} +// you cannot omit the mapform func since it appears at the beginning of API calls, before compulsory arguments +//%typemap( default ) mapform_func mapform { +// python_mapform = 0; +// $1 = NULL; +//} + // convert an arbitrary Python object into the void* pointer they want %typemap( in ) PLPointer PYOBJECT_DATA { if ( $input == Py_None ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |