diff --git a/Source/Modules/csharp.cxx b/Source/Modules/csharp.cxx index 13c132a76..b8133b74a 100644 --- a/Source/Modules/csharp.cxx +++ b/Source/Modules/csharp.cxx @@ -156,7 +156,9 @@ public: dmethods_seq(NULL), dmethods_table(NULL), n_dmethods(0), - n_directors(0) { + n_directors(0), + first_class_dmethod(0), + curr_class_dmethod(0) { /* for now, multiple inheritance in directors is disabled, this should be easy to implement though */ director_multiple_inheritance = 0; diff --git a/Source/Modules/d.cxx b/Source/Modules/d.cxx index b21562c1d..17cb8babd 100644 --- a/Source/Modules/d.cxx +++ b/Source/Modules/d.cxx @@ -25,7 +25,6 @@ class D : public Language { const String *empty_string; const String *public_string; const String *protected_string; - const String *static_string; /* * Files and file sections containing C/C++ code. @@ -274,7 +273,9 @@ public: dmethods_seq(NULL), dmethods_table(NULL), n_dmethods(0), - unknown_types(NULL) { + unknown_types(NULL), + first_class_dmethod(0), + curr_class_dmethod(0) { // For now, multiple inheritance with directors is not possible. It should be // easy to implement though. diff --git a/Source/Modules/java.cxx b/Source/Modules/java.cxx index 472740d48..1ee7a97e3 100644 --- a/Source/Modules/java.cxx +++ b/Source/Modules/java.cxx @@ -132,6 +132,7 @@ public: variable_name(NULL), proxy_class_constants_code(NULL), module_class_constants_code(NULL), + enum_code(NULL), package(NULL), jnipackage(NULL), package_path(NULL), @@ -151,7 +152,9 @@ public: dmethods_seq(NULL), dmethods_table(NULL), n_dmethods(0), - n_directors(0) { + n_directors(0), + first_class_dmethod(0), + curr_class_dmethod(0) { /* for now, multiple inheritance in directors is disabled, this should be easy to implement though */ director_multiple_inheritance = 0; diff --git a/Source/Modules/lua.cxx b/Source/Modules/lua.cxx index 66ba8ea6f..3d1530331 100644 --- a/Source/Modules/lua.cxx +++ b/Source/Modules/lua.cxx @@ -145,17 +145,29 @@ public: * Initialize member data * --------------------------------------------------------------------- */ - LUA() { - f_begin = 0; - f_runtime = 0; - f_header = 0; - f_wrappers = 0; - f_init = 0; - f_initbeforefunc = 0; - PrefixPlusUnderscore = 0; - - s_cmd_tab = s_var_tab = s_const_tab = s_luacode = 0; - current=NO_CPP; + LUA() : + f_begin(0), + f_runtime(0), + f_header(0), + f_wrappers(0), + f_init(0), + f_initbeforefunc(0), + PrefixPlusUnderscore(0), + s_cmd_tab(0), + s_var_tab(0), + s_const_tab(0), + s_methods_tab(0), + s_attr_tab(0), + s_luacode(0), + s_dot_get(0), + s_dot_set(0), + s_vars_meta_tab(0), + have_constructor(0), + have_destructor(0), + destructor_action(0), + class_name(0), + constructor_name(0), + current(NO_CPP) { } /* NEW LANGUAGE NOTE:*********************************************** diff --git a/Source/Modules/octave.cxx b/Source/Modules/octave.cxx index 8a2ba7627..f78c71fd3 100644 --- a/Source/Modules/octave.cxx +++ b/Source/Modules/octave.cxx @@ -58,9 +58,24 @@ private: } public: - OCTAVE():f_begin(0), f_runtime(0), f_header(0), f_doc(0), f_wrappers(0), - f_init(0), f_initbeforefunc(0), f_directors(0), f_directors_h(0), - s_global_tab(0), s_members_tab(0), class_name(0) { + OCTAVE(): + f_begin(0), + f_runtime(0), + f_header(0), + f_doc(0), + f_wrappers(0), + f_init(0), + f_initbeforefunc(0), + f_directors(0), + f_directors_h(0), + s_global_tab(0), + s_members_tab(0), + class_name(0), + have_constructor(0), + have_destructor(0), + constructor_name(0), + docs(0) + { /* Add code to manage protected constructors and directors */ director_prot_ctor_code = NewString(""); Printv(director_prot_ctor_code, diff --git a/Source/Modules/ruby.cxx b/Source/Modules/ruby.cxx index a1523a7ad..053143899 100644 --- a/Source/Modules/ruby.cxx +++ b/Source/Modules/ruby.cxx @@ -810,33 +810,37 @@ public: * * Initialize member data * --------------------------------------------------------------------- */ - - RUBY() { - module = 0; - modvar = 0; - feature = 0; - prefix = 0; - last_autodoc = NewString(""); - current = NO_CPP; - classes = 0; - klass = 0; - special_methods = 0; - f_begin = 0; - f_runtime = 0; - f_header = 0; - f_wrappers = 0; - f_init = 0; - f_initbeforefunc = 0; - useGlobalModule = false; - multipleInheritance = false; - director_prot_ctor_code = NewString(""); - Printv(director_prot_ctor_code, - "if ( $comparison ) { /* subclassed */\n", - " $director_new \n", - "} else {\n", " rb_raise(rb_eRuntimeError,\"accessing abstract class or protected constructor\"); \n", " return Qnil;\n", "}\n", NIL); - director_multiple_inheritance = 0; - director_language = 1; - } + RUBY() : + module(0), + modvar(0), + feature(0), + prefix(0), + current(0), + classes(0), + klass(0), + special_methods(0), + f_directors(0), + f_directors_h(0), + f_directors_helpers(0), + f_begin(0), + f_runtime(0), + f_runtime_h(0), + f_header(0), + f_wrappers(0), + f_init(0), + f_initbeforefunc(0), + useGlobalModule(false), + multipleInheritance(false) { + last_autodoc = NewString(""); + current = NO_CPP; + director_prot_ctor_code = NewString(""); + Printv(director_prot_ctor_code, + "if ( $comparison ) { /* subclassed */\n", + " $director_new \n", + "} else {\n", " rb_raise(rb_eRuntimeError,\"accessing abstract class or protected constructor\"); \n", " return Qnil;\n", "}\n", NIL); + director_multiple_inheritance = 0; + director_language = 1; + } /* --------------------------------------------------------------------- * main() diff --git a/Source/Modules/s-exp.cxx b/Source/Modules/s-exp.cxx index 9f2cda2f2..3c50f3076 100644 --- a/Source/Modules/s-exp.cxx +++ b/Source/Modules/s-exp.cxx @@ -24,9 +24,21 @@ S-Exp Options (available with -sexp)\n\ static File *out = 0; class Sexp:public Language { -public: int indent_level; - Sexp():indent_level(0) { + DOHHash *print_circle_hash; + int print_circle_count; + int hanging_parens; + bool need_whitespace; + bool need_newline; + +public: + Sexp(): + indent_level(0), + print_circle_hash(0), + print_circle_count(0), + hanging_parens(0), + need_whitespace(0), + need_newline(0) { } virtual ~ Sexp() { @@ -51,12 +63,6 @@ public: } } - DOHHash *print_circle_hash; - int print_circle_count; - int hanging_parens; - bool need_whitespace; - bool need_newline; - /* Top of the parse tree */ virtual int top(Node *n) { if (out == 0) { diff --git a/Source/Modules/typepass.cxx b/Source/Modules/typepass.cxx index a6012c0bf..90318b122 100644 --- a/Source/Modules/typepass.cxx +++ b/Source/Modules/typepass.cxx @@ -40,7 +40,14 @@ class TypePass:private Dispatcher { Hash *classhash; List *normalize; - TypePass() { + TypePass() : + inclass(0), + module(0), + importmode(0), + nsname(0), + nssymname(0), + classhash(0), + normalize(0) { } /* Normalize a type. Replaces type with fully qualified version */