Another merge with master.
Updated Doxygen error numbers yet again, as Python errors got added in the meanwhile, pushing the Doxygen ones further off. And re-merged PEP8/whitespace-related conflicts in autodoc_runme.py once again (if anybody is looking for a motivating example about why significant whitespace is bad, here is a great use case).
This commit is contained in:
commit
302955a152
448 changed files with 8836 additions and 5079 deletions
|
|
@ -508,6 +508,7 @@ public:
|
|||
|
||||
if (directorsEnabled()) {
|
||||
// Insert director runtime into the f_runtime file (make it occur before %header section)
|
||||
Swig_insert_file("director_common.swg", f_runtime);
|
||||
Swig_insert_file("director.swg", f_runtime);
|
||||
}
|
||||
// Generate the intermediary class
|
||||
|
|
@ -1892,7 +1893,7 @@ public:
|
|||
} else if (Len(pure_baseclass) > 0 && Len(baseclass) > 0) {
|
||||
Swig_warning(WARN_JAVA_MULTIPLE_INHERITANCE, Getfile(n), Getline(n),
|
||||
"Warning for %s proxy: Base %s ignored. Multiple inheritance is not supported in Java. "
|
||||
"Perhaps you need one of the 'replace' or 'notderived' attributes in the csbase typemap?\n", typemap_lookup_type, pure_baseclass);
|
||||
"Perhaps you need one of the 'replace' or 'notderived' attributes in the javabase typemap?\n", typemap_lookup_type, pure_baseclass);
|
||||
}
|
||||
|
||||
// Pure Java interfaces
|
||||
|
|
@ -3569,7 +3570,7 @@ public:
|
|||
Printf(f_runtime, "namespace Swig {\n");
|
||||
Printf(f_runtime, " namespace {\n");
|
||||
Printf(f_runtime, " jclass jclass_%s = NULL;\n", imclass_name);
|
||||
Printf(f_runtime, " jmethodID director_methids[%d];\n", n_methods);
|
||||
Printf(f_runtime, " jmethodID director_method_ids[%d];\n", n_methods);
|
||||
Printf(f_runtime, " }\n");
|
||||
Printf(f_runtime, "}\n");
|
||||
|
||||
|
|
@ -3586,8 +3587,8 @@ public:
|
|||
Printf(w->code, "Swig::jclass_%s = (jclass) jenv->NewGlobalRef(jcls);\n", imclass_name);
|
||||
Printf(w->code, "if (!Swig::jclass_%s) return;\n", imclass_name);
|
||||
Printf(w->code, "for (i = 0; i < (int) (sizeof(methods)/sizeof(methods[0])); ++i) {\n");
|
||||
Printf(w->code, " Swig::director_methids[i] = jenv->GetStaticMethodID(jcls, methods[i].method, methods[i].signature);\n");
|
||||
Printf(w->code, " if (!Swig::director_methids[i]) return;\n");
|
||||
Printf(w->code, " Swig::director_method_ids[i] = jenv->GetStaticMethodID(jcls, methods[i].method, methods[i].signature);\n");
|
||||
Printf(w->code, " if (!Swig::director_method_ids[i]) return;\n");
|
||||
Printf(w->code, "}\n");
|
||||
|
||||
Printf(w->code, "}\n");
|
||||
|
|
@ -4241,7 +4242,7 @@ public:
|
|||
if (!is_void)
|
||||
Printf(w->code, "jresult = (%s) ", c_ret_type);
|
||||
|
||||
Printf(w->code, "jenv->%s(Swig::jclass_%s, Swig::director_methids[%s], %s);\n", methop, imclass_name, methid, jupcall_args);
|
||||
Printf(w->code, "jenv->%s(Swig::jclass_%s, Swig::director_method_ids[%s], %s);\n", methop, imclass_name, methid, jupcall_args);
|
||||
|
||||
// Generate code to handle any Java exception thrown by director delegation
|
||||
directorExceptHandler(n, catches_list ? catches_list : throw_parm_list, w);
|
||||
|
|
@ -4630,7 +4631,7 @@ public:
|
|||
Printf(f_directors_h, " return (n < %d ? swig_override[n] : false);\n", n_methods);
|
||||
Printf(f_directors_h, " }\n");
|
||||
Printf(f_directors_h, "protected:\n");
|
||||
Printf(f_directors_h, " bool swig_override[%d];\n", n_methods);
|
||||
Printf(f_directors_h, " Swig::BoolArray<%d> swig_override;\n", n_methods);
|
||||
|
||||
/* Emit the code to look up the class's methods, initialize the override array */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue