wxWidgets/wxPython/SWIG/cplus.cxx.patch
Robin Dunn 493f1553fd Cleanup up the demo a bit
Added wxWave

Added another patch for SWIG that optimizes the generated code some
and eliminates some unused type mappings in the type registry.
(Reduces it by about half!)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-18 21:59:59 +00:00

38 lines
1.3 KiB
Diff

*** SWIG\cplus.cxx.orig Fri May 18 13:03:34 2001
--- SWIG\cplus.cxx Fri May 18 13:07:42 2001
***************
*** 839,845 ****
if (name) {
if (strlen(name)) {
! if (strlen(ctype) > 0) {
sprintf(temp,"%s %s", ctype, name);
typeeq_derived(temp,name); // Map "struct foo" to "foo"
typeeq_derived(name,temp); // Map "foo" to "struct foo"
--- 839,845 ----
if (name) {
if (strlen(name)) {
! if (strlen(ctype) > 0 && strcmp(ctype, "class") != 0) {
sprintf(temp,"%s %s", ctype, name);
typeeq_derived(temp,name); // Map "struct foo" to "foo"
typeeq_derived(name,temp); // Map "foo" to "struct foo"
***************
*** 1092,1098 ****
// Make a type-equivalence allowing derived classes to be used in functions of the
! if (strlen(current_class->classtype) > 0) {
temp1 = "";
temp1 << current_class->classtype << " " << current_class->classname;
temp2 = "";
--- 1092,1099 ----
// Make a type-equivalence allowing derived classes to be used in functions of the
! if (strlen(current_class->classtype) > 0 &&
! strcmp(current_class->classtype, "class") != 0) {
temp1 = "";
temp1 << current_class->classtype << " " << current_class->classname;
temp2 = "";