From: <ai...@us...> - 2010-07-23 16:49:47
|
Revision: 11103 http://plplot.svn.sourceforge.net/plplot/?rev=11103&view=rev Author: airwin Date: 2010-07-23 16:49:41 +0000 (Fri, 23 Jul 2010) Log Message: ----------- plplotcapi.i should be reserved strictly to define the PLplot API covered by swig. Thus, move PYTHON_HAVE_PYBUFFER non-API statements out of plplotcapi.i to plplotcmodule.i. Modified Paths: -------------- trunk/bindings/python/plplotcmodule.i trunk/bindings/swig-support/plplotcapi.i Modified: trunk/bindings/python/plplotcmodule.i =================================================================== --- trunk/bindings/python/plplotcmodule.i 2010-07-23 16:45:43 UTC (rev 11102) +++ trunk/bindings/python/plplotcmodule.i 2010-07-23 16:49:41 UTC (rev 11103) @@ -1241,5 +1241,11 @@ resultobj = t_output_helper(resultobj, o); } #endif + +#ifdef PYTHON_HAVE_PYBUFFER +%include <pybuffer.i> +%pybuffer_mutable_string(void * plotmem) +#endif + /* swig compatible PLplot API definitions from here on. */ %include plplotcapi.i Modified: trunk/bindings/swig-support/plplotcapi.i =================================================================== --- trunk/bindings/swig-support/plplotcapi.i 2010-07-23 16:45:43 UTC (rev 11102) +++ trunk/bindings/swig-support/plplotcapi.i 2010-07-23 16:49:41 UTC (rev 11103) @@ -774,11 +774,8 @@ void plsmaj(PLFLT def, PLFLT scale); -#ifdef PYTHON_HAVE_PYBUFFER +#if defined ( PYTHON_HAVE_PYBUFFER ) && defined ( SWIG_PYTHON ) -%include <pybuffer.i> -%pybuffer_mutable_string(void * plotmem) - %feature("autodoc", "Set the memory area to be plotted (with the 'mem' driver).") plsmem; void plsmem(PLINT maxx, PLINT maxy, void *plotmem); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |