[Python]
Fix autodoc generation of enums to be more consistent with how the enums are wrapped - patch #1697226 from Josh Cherry. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9839 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
dc61936359
commit
26e8cc0797
2 changed files with 9 additions and 9 deletions
|
|
@ -1,6 +1,11 @@
|
||||||
Version 1.3.32 (in progress)
|
Version 1.3.32 (in progress)
|
||||||
============================
|
============================
|
||||||
|
|
||||||
|
05/26/2007: olly
|
||||||
|
[Python]
|
||||||
|
Fix autodoc generation of enums to be more consistent with how the
|
||||||
|
enums are wrapped - patch #1697226 from Josh Cherry.
|
||||||
|
|
||||||
05/26/2007: olly
|
05/26/2007: olly
|
||||||
[PHP5]
|
[PHP5]
|
||||||
Fix wrapping of methods and functions which return a pointer to a
|
Fix wrapping of methods and functions which return a pointer to a
|
||||||
|
|
|
||||||
|
|
@ -1211,10 +1211,6 @@ public:
|
||||||
if (type) {
|
if (type) {
|
||||||
if (Strcmp(type, "void") == 0)
|
if (Strcmp(type, "void") == 0)
|
||||||
type = NULL;
|
type = NULL;
|
||||||
else {
|
|
||||||
SwigType *qt = SwigType_typedef_resolve_all(type);
|
|
||||||
if (SwigType_isenum(qt))
|
|
||||||
type = NewString("int");
|
|
||||||
else {
|
else {
|
||||||
type = SwigType_base(type);
|
type = SwigType_base(type);
|
||||||
Node *lookup = Swig_symbol_clookup(type, 0);
|
Node *lookup = Swig_symbol_clookup(type, 0);
|
||||||
|
|
@ -1222,7 +1218,6 @@ public:
|
||||||
type = Getattr(lookup, "sym:name");
|
type = Getattr(lookup, "sym:name");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
switch (ad_type) {
|
switch (ad_type) {
|
||||||
case AUTODOC_CLASS:
|
case AUTODOC_CLASS:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue