git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12432 626c5289-ae23-0410-ae9c-e8d60b6d4f22
24 lines
720 B
OpenEdge ABL
24 lines
720 B
OpenEdge ABL
%module rename_simple
|
|
|
|
%rename(NewStruct) OldStruct;
|
|
%rename(NewVariable) OldVariable;
|
|
%rename(NewInstanceMethod) OldInstanceMethod;
|
|
%rename(NewInstanceVariable) OldInstanceVariable;
|
|
%rename(NewStaticMethod) OldStaticMethod;
|
|
%rename(NewStaticVariable) OldStaticVariable;
|
|
%rename(NewFunction) OldFunction;
|
|
%rename(NewGlobalVariable) OldGlobalVariable;
|
|
|
|
%inline %{
|
|
struct OldStruct {
|
|
OldStruct() : OldInstanceVariable(111) {}
|
|
int OldInstanceVariable;
|
|
int OldInstanceMethod() { return 222; }
|
|
static int OldStaticVariable;
|
|
static int OldStaticMethod() { return 333; }
|
|
};
|
|
int OldStruct::OldStaticVariable = 444;
|
|
|
|
int OldFunction() { return 555; }
|
|
int OldGlobalVariable = 666;
|
|
%}
|