From: <sm...@us...> - 2009-01-27 08:39:17
|
Revision: 9408 http://plplot.svn.sourceforge.net/plplot/?rev=9408&view=rev Author: smekal Date: 2009-01-27 08:39:08 +0000 (Tue, 27 Jan 2009) Log Message: ----------- Renamed plend1 to plend1 (was end1) to be consistent with pl.plend. Added support for string returning functions. Modified Paths: -------------- trunk/bindings/lua/plplotluac.i Modified: trunk/bindings/lua/plplotluac.i =================================================================== --- trunk/bindings/lua/plplotluac.i 2009-01-27 08:37:04 UTC (rev 9407) +++ trunk/bindings/lua/plplotluac.i 2009-01-27 08:39:08 UTC (rev 9408) @@ -520,10 +520,10 @@ %typemap(in, numinputs=0) char *OUTPUT ( char buff[1000] ) { $1 = buff; } -/*%typemap(argout,fragment="t_output_helper") char *OUTPUT { - PyObject *o = PyString_FromString($1); - $result = t_output_helper($result,o); -}*/ +%typemap(argout) char *OUTPUT { + lua_pushstring(L, $1); + SWIG_arg++; +} /****************************************************************************** @@ -628,7 +628,7 @@ %rename(cont) plcont; %rename(cpstrm) plcpstrm; %rename(plend) plend; -%rename(end1) plend1; +%rename(plend1) plend1; %rename(env) plenv; %rename(env0) plenv0; %rename(eop) pleop; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |