|
From: <ai...@us...> - 2011-02-19 16:58:43
|
Revision: 11568
http://plplot.svn.sourceforge.net/plplot/?rev=11568&view=rev
Author: airwin
Date: 2011-02-19 16:58:37 +0000 (Sat, 19 Feb 2011)
Log Message:
-----------
Remove two unnecessary typemaps. I thought at one point these would
be needed to give global access to the #defined values in
bindings/swig-support/plplotcapi.i, but I can no longer reproduce this
issue in simple tests, and, indeed, the octave bindings and examples
work perfectly fine without these typemaps.
Modified Paths:
--------------
trunk/bindings/octave/plplot_octave.i
Modified: trunk/bindings/octave/plplot_octave.i
===================================================================
--- trunk/bindings/octave/plplot_octave.i 2011-02-18 19:31:03 UTC (rev 11567)
+++ trunk/bindings/octave/plplot_octave.i 2011-02-19 16:58:37 UTC (rev 11568)
@@ -1274,23 +1274,6 @@
}
}
-// typemaps required to set integer and floating-point global values
-// correctly for swig-1.3.40. Follows suggestion made by William S
-// Fulton on 2011-02-04 in post to swig-user mailing list.
-
-%typemap(constcode,noblock=1,fragment="SWIG_" "From" "_" {int}) int {
-
-SWIG_Octave_SetConstant(module_ns,"$symname",SWIG_From_int((int)($value)));
- set_global_value("$symname",SWIG_From_int((int)($value)));
-}
-
-%typemap(constcode,noblock=1,fragment="SWIG_" "From" "_" {double}) double {
-
-SWIG_Octave_SetConstant(module_ns,"$symname",octave_value($value));
- set_global_value("$symname",octave_value($value));
-}
-
-
// This test function should be removed when we are confident of our
// dealings with all types of octave string arrays.
void testppchar(PLINT n, const PLINT *Array, const char **ArrayCk);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|