diff options
author | Marcelo Matus <mmatus@acms.arizona.edu> | 2003-12-11 03:59:18 +0000 |
---|---|---|
committer | Marcelo Matus <mmatus@acms.arizona.edu> | 2003-12-11 03:59:18 +0000 |
commit | 9c372c5c646dc0ee7c20e15fb64a189297bff83e (patch) | |
tree | 43fb449be41a586c41235dafcaa8c745451485a1 /Examples/test-suite/director_using.i | |
parent | 72984676ca9549ed7ac4d7fac8a2dbc7f67c5bb3 (diff) | |
download | swig-9c372c5c646dc0ee7c20e15fb64a189297bff83e.tar.gz |
Fixed more %rename errors, and moving
the function 'need_protected' outside parser.y,
ie, if more subtle cases appear, they can be
fixed without changing parser.y.
Now parser.y looks much more like the original 1.32.
Source/CParse/parser.y: moving and fixing 'need_protected'
Source/CParse/util.c: moving and fixing 'need_protected'
Examples/test-suite/director_protected.i: more %rename cases
Examples/test-suite/director_using.i: fixing bad module name
The errors in question where related to the mix of
%rename + (typedef|static) + protected + dirprot_mode:
%rename(s) Foo::p;
%rename(q) Foo::r;
%inline {
class Foo {
public:
virtual ~Foo() {}
int p(){ return 1;}
int r(){ return 1;}
protected:
typedef int q();
static int s();
};
since q and s look like functions, the parser was adding them
completly to the symbol table, and clashing latter with the
attemped renames.
The error was only visible when dirprot was enabled, with
the old behavior it was ok.
Marcelo
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5533 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/test-suite/director_using.i')
-rw-r--r-- | Examples/test-suite/director_using.i | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Examples/test-suite/director_using.i b/Examples/test-suite/director_using.i index 35472035b..de1c572bf 100644 --- a/Examples/test-suite/director_using.i +++ b/Examples/test-suite/director_using.i @@ -1,5 +1,4 @@ -%module(directors="1",dirprot="1") director_nested - //%module director_nested +%module(directors="1",dirprot="1") director_using %{ #include <string> |