fix typemap search, now you can add a typemap like %typemap(out) int *Foo::foo(int bar);

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6900 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-12-19 23:03:14 +00:00
commit 1875a3d44b
2 changed files with 23 additions and 2 deletions

View file

@ -1,5 +1,28 @@
Version 1.3.25 (In progress)
============================
Dec/19: mmatus
- Fix typemap search, now the "out" typemap search is done as follows
int *Foo::foo(int bar) -> int *Foo::foo(int bar)
-> int *Foo::foo
-> int *foo(int bar)
-> int *foo
-> int *
then, now you can be more specific, and define
/* apply only for 'Foo::foo' method */
%typemap(out) int * Foo::foo(int *bar) ...;
/* apply for all 'foo' functions/methods */
%typemap(out) int * foo(int *bar) ...;
%inline {
struct Foo {
int *foo(int *bar);
};
}
Dec/15: mmatus
- More fixes for templates and template default args.

View file

@ -1190,8 +1190,6 @@ String *Swig_typemap_lookup_new(const String_or_char *op, Node *node, const Stri
/* look qualified names first, such as
int *Foo::foo(int bar) -> Foo::foo
-> *::foo
-> Foo::*
*/
String *qname = NewStringf("%s::%s",qsn,pname);
tm = Swig_typemap_search(op,type,qname,&mtype);