Re-organization of the interface feature common code

Move code to new feature.cxx file.
Activate it in the allocate phase rather than in individual languages.
This commit is contained in:
William S Fulton 2016-03-03 07:44:36 +00:00
commit a1245ef398
7 changed files with 193 additions and 159 deletions

View file

@ -18,8 +18,6 @@
/* Hash type used for upcalls from C/C++ */
typedef DOH UpcallData;
// helper function used in feature:interface implementation
void Swig_propagate_interface_methods(Node *n);
class JAVA:public Language {
static const char *usage;
@ -307,6 +305,7 @@ public:
SWIG_config_file("java.swg");
allow_overloading();
Swig_interface_feature_enable();
}
/* ---------------------------------------------------------------------
@ -2076,8 +2075,6 @@ public:
* ---------------------------------------------------------------------- */
int classDeclaration(Node *n) {
if (proxy_flag)
Swig_propagate_interface_methods(n);
return Language::classDeclaration(n);
}