diff options
author | Josh Blum | 2012-11-25 14:12:44 -0800 |
---|---|---|
committer | Josh Blum | 2012-11-25 14:12:44 -0800 |
commit | 46263199b864de68dac8ad65fe207d49ab70460f (patch) | |
tree | 138133ab847e822901f98dff4ffc2bdc4be02a97 /python/gras | |
parent | 7cfebe2bd52a2cfc1e8b778968cec7ba43457879 (diff) | |
download | sandhi-46263199b864de68dac8ad65fe207d49ab70460f.tar.gz sandhi-46263199b864de68dac8ad65fe207d49ab70460f.tar.bz2 sandhi-46263199b864de68dac8ad65fe207d49ab70460f.zip |
make use of PMC/Registry.i in SBuffer binding
Diffstat (limited to 'python/gras')
-rw-r--r-- | python/gras/GRAS_Block.i | 2 | ||||
-rw-r--r-- | python/gras/GRAS_SBuffer.i | 8 |
2 files changed, 2 insertions, 8 deletions
diff --git a/python/gras/GRAS_Block.i b/python/gras/GRAS_Block.i index 0becfd0..14809a9 100644 --- a/python/gras/GRAS_Block.i +++ b/python/gras/GRAS_Block.i @@ -16,7 +16,7 @@ //////////////////////////////////////////////////////////////////////// // http://www.swig.org/Doc2.0/Library.html#Library_stl_exceptions //////////////////////////////////////////////////////////////////////// -%include "exception.i" +%include <exception.i> %exception { diff --git a/python/gras/GRAS_SBuffer.i b/python/gras/GRAS_SBuffer.i index 8b57863..74cc475 100644 --- a/python/gras/GRAS_SBuffer.i +++ b/python/gras/GRAS_SBuffer.i @@ -2,18 +2,12 @@ %include <gras/sbuffer.i> -%{ -#include <PMC/PMC.hpp> -%} - -%import <PMC/PMC.i> +%include <PMC/Registry.i> DECL_PMC_SWIG_TYPE(gras::SBuffer, swig_sbuffer) %pythoncode %{ -from PMC import * - def pmc_to_sbuffer(p): s = pmc_to_swig_sbuffer(p) setattr(s, 'readonly', not isinstance(p, PMC)) |