Wide range of minor bug fixes and improvements.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@966 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-12-22 04:27:51 +00:00
commit ce983e3203
10 changed files with 132 additions and 28 deletions

View file

@ -992,7 +992,14 @@ PYTHON::nativefunction(DOH *node) {
name = GetChar(node,"scriptname");
funcname = GetChar(node,"name");
add_method(name, funcname,0);
/* Figure out what kind of function this is */
if (Swig_proto_cmp("f(p.PyObject,p.PyObject).p.PyObject",node) == 0) {
/* Not with keyword arguments */
add_method(name,funcname,0);
}
if (Swig_proto_cmp("f(p.PyObject,p.PyObject,p.PyObject).p.PyObject",node) == 0) {
add_method(name,funcname,1);
}
if (shadow) {
Printv(func, name, " = ", module, ".", name, "\n\n", 0);
}