diff options
| author | Emmanuel Raviart <eraviart@entrouvert.com> | 2005-01-13 14:40:51 +0000 |
|---|---|---|
| committer | Emmanuel Raviart <eraviart@entrouvert.com> | 2005-01-13 14:40:51 +0000 |
| commit | 49c338171dc115de8ccc738a7cfb1266226d277c (patch) | |
| tree | bec6a7bc9db4fbcd9a9c072ade1b3d87607932e9 /php | |
| parent | 37c1a3e8b0a183fd1744e625c9a6ed70cc802cca (diff) | |
Corrected patch to SWIG PHP output.
Diffstat (limited to 'php')
| -rwxr-xr-x | php/patch_swig_output.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/php/patch_swig_output.py b/php/patch_swig_output.py index 4ae5fcd8..8b46bc42 100755 --- a/php/patch_swig_output.py +++ b/php/patch_swig_output.py @@ -128,9 +128,7 @@ while i >= 0: i = wrap.find(begin, i + len(segment)) # (2) -begin = """ - { - swig_type_info *ty = SWIG_TypeDynamicCast(""" +begin = 'swig_type_info *ty = SWIG_TypeDynamicCast(' end = """ *return_value=*obj; }} @@ -146,6 +144,5 @@ while i >= 0: segment = '%s%s%s' % (segment[:x], 'get_node_info_with_swig(ty)->php', segment[y:]) wrap = '%s%s%s' % (wrap[:i], segment, wrap[j:]) i = wrap.find(begin, i + len(segment)) - print i, j print wrap |
