git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25398
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
newlines in attribute values were changed
to the #10; entity reference so they will
be preserved by parsers.
newlines in attribute values were changed
to the #10; entity reference so they will
be preserved by parsers.
Also, added options for dumping or
writing to a file the XML of the parse
Also, added options for dumping or
writing to a file the XML of the parse
------------------------------------------------------------------------
------------------------------------------------------------------------
-These patches have already been checked in to SWIG's CVS and will be
-in the 1.3.20 release.
+These patches have already been checked in to SWIG's CVS and are in
+the 1.3.20 release.
------------------------------------------------------------------------
swig.SplitLines.patch Adds a new SplitLines function to the DOH
------------------------------------------------------------------------
swig.SplitLines.patch Adds a new SplitLines function to the DOH
retrieving revision 1.39
diff -u -4 -r1.39 python.cxx
--- Source/Modules/python.cxx 22 Jan 2004 22:42:17 -0000 1.39
retrieving revision 1.39
diff -u -4 -r1.39 python.cxx
--- Source/Modules/python.cxx 22 Jan 2004 22:42:17 -0000 1.39
-+++ Source/Modules/python.cxx 22 Jan 2004 23:39:03 -0000
++++ Source/Modules/python.cxx 24 Jan 2004 00:18:12 -0000
@@ -50,8 +50,17 @@
static int have_constructor;
static int have_repr;
@@ -50,8 +50,17 @@
static int have_constructor;
static int have_repr;
+ have_auto = (autodoc != NULL && Len(autodoc) > 0);
+ }
+
+ have_auto = (autodoc != NULL && Len(autodoc) > 0);
+ }
+
-+// if ( have_auto && have_ds )
-+// doc = NewStringf("%s%s\n\n%s%s", triple_double, autodoc, str, triple_double);
-+// else if ( !have_auto && have_ds )
-+// doc = NewStringf("%s%s%s", triple_double, str, triple_double);
-+// else
-+// doc = NewStringf("%s%s%s", triple_double, autodoc, triple_double);
-+
-+
+ // If there is more than one line then make docstrings like this:
+ //
+ // """
+ // If there is more than one line then make docstrings like this:
+ //
+ // """
* Check if there is a %addtofunc directive and it has text
* ------------------------------------------------------------ */
* Check if there is a %addtofunc directive and it has text
* ------------------------------------------------------------ */
Printf(f_shadow, modern ? "(object)" : "(_object)");
}
}
Printf(f_shadow, modern ? "(object)" : "(_object)");
}
}
Printv(f_shadow,tab4,"__swig_setmethods__ = {}\n",NIL);
if (Len(base_class)) {
Printf(f_shadow,"%sfor _s in [%s]: __swig_setmethods__.update(_s.__swig_setmethods__)\n",tab4,base_class);
Printv(f_shadow,tab4,"__swig_setmethods__ = {}\n",NIL);
if (Len(base_class)) {
Printf(f_shadow,"%sfor _s in [%s]: __swig_setmethods__.update(_s.__swig_setmethods__)\n",tab4,base_class);
Delete(pyaction);
Printv(f_shadow,pycode,"\n",NIL);
} else {
Delete(pyaction);
Printv(f_shadow,pycode,"\n",NIL);
} else {
virtual int staticmemberfunctionHandler(Node *n) {
String *symname = Getattr(n,"sym:name");
Language::staticmemberfunctionHandler(n);
virtual int staticmemberfunctionHandler(Node *n) {
String *symname = Getattr(n,"sym:name");
Language::staticmemberfunctionHandler(n);
" = staticmethod(", symname, ")\n", NIL);
if (!modern) {
" = staticmethod(", symname, ")\n", NIL);
if (!modern) {
}
Printv(f_shadow, tab4, "def __init__(self, *args",
}
Printv(f_shadow, tab4, "def __init__(self, *args",
if (!modern) {
Printv(f_shadow, tab8, "_swig_setattr(self, ", rclassname, ", 'this', ",
funcCallHelper(Swig_name_construct(symname), allow_kwargs), ")\n", NIL);
if (!modern) {
Printv(f_shadow, tab8, "_swig_setattr(self, ", rclassname, ", 'this', ",
funcCallHelper(Swig_name_construct(symname), allow_kwargs), ")\n", NIL);
Printv(f_shadow, tab8, "self.thisown = 1\n", NIL);
Printv(f_shadow, tab8, "del newobj.thisown\n", NIL);
}
Printv(f_shadow, tab8, "self.thisown = 1\n", NIL);
Printv(f_shadow, tab8, "del newobj.thisown\n", NIL);
}
}
have_constructor = 1;
} else {
}
have_constructor = 1;
} else {
} else {
Printv(f_shadow_stubs, "\ndef ", symname, "(*args",
} else {
Printv(f_shadow_stubs, "\ndef ", symname, "(*args",
funcCallHelper(Swig_name_construct(symname), allow_kwargs), "\n", NIL);
Printv(f_shadow_stubs, tab4, "val.thisown = 1\n", NIL);
if ( have_addtofunc(n) )
funcCallHelper(Swig_name_construct(symname), allow_kwargs), "\n", NIL);
Printv(f_shadow_stubs, tab4, "val.thisown = 1\n", NIL);
if ( have_addtofunc(n) )
Delete(pyaction);
Printv(f_shadow,pycode,"\n", NIL);
} else {
Delete(pyaction);
Printv(f_shadow,pycode,"\n", NIL);
} else {