Restrict the name used in %extend to be just the struct/class name and not a typedef to a class/struct. Typedefs were only partially working anyway. Anonymous struct typedefs excluded. Deprecate with a warning for now.
This commit is contained in:
parent
054f9dba1a
commit
b80f4dc5e2
10 changed files with 134 additions and 20 deletions
|
|
@ -5,6 +5,25 @@ See the RELEASENOTES file for a summary of changes in each release.
|
|||
Version 2.0.10 (in progress)
|
||||
============================
|
||||
|
||||
2013-02-15: wsfulton
|
||||
Deprecate typedef names used in %extend that are not the real class/struct name. For example:
|
||||
|
||||
typedef struct StructBName {
|
||||
int myint;
|
||||
} StructB;
|
||||
|
||||
%extend StructB {
|
||||
void method() {}
|
||||
}
|
||||
|
||||
will now trigger a warning:
|
||||
|
||||
swig_extend.i:19: Warning 326: Deprecated %extend name used - the struct name StructBName
|
||||
should be used instead of the typedef name StructB.
|
||||
|
||||
This is only partially working anyway (the %extend only worked if placed after the class
|
||||
definition).
|
||||
|
||||
2013-02-09: wsfulton
|
||||
[CFFI] Apply patch #22 - Fix missing package before &body
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue