Perl added to the Unified typemap library, cleaner way to use the library, and 'normalized' macro names

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7707 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-10-24 14:59:05 +00:00
commit f2f1b9889f
112 changed files with 3262 additions and 3375 deletions

View file

@ -73,3 +73,37 @@ const int* globalRet1() {return &GlobalInt;}
int* const globalRet2() {return &GlobalInt;}
%}
%{
struct A
{
};
%}
%inline
{
typedef const A* Acptr;
Acptr opaque(Acptr aptr) {
return aptr;
}
struct B
{
const A ca;
A a;
A* ap;
const A* cap;
Acptr acptr;
};
const B* bar(const B* b) {
return b;
}
B const*& cbar(B const*& b) {
return b;
}
}