Code cleanup: with the introduction of anotation_map[], generate_c_vardecl_c can now derive directly from generate_c_base_c
authormjsousa
Mon, 11 Aug 2014 08:07:12 +0100
changeset 931 c0c245197b5a
parent 930 96f3928ebd96
child 932 061824c45a5b
Code cleanup: with the introduction of anotation_map[], generate_c_vardecl_c can now derive directly from generate_c_base_c
stage4/generate_c/generate_c_vardecl.cc
--- a/stage4/generate_c/generate_c_vardecl.cc	Mon Aug 11 07:56:00 2014 +0100
+++ b/stage4/generate_c/generate_c_vardecl.cc	Mon Aug 11 08:07:12 2014 +0100
@@ -689,7 +689,7 @@
 
 
 
-class generate_c_vardecl_c: protected generate_c_typedecl_c {
+class generate_c_vardecl_c: protected generate_c_base_c {
 
   /* A Helper class to the main class... */
   /* print a string, except the first time it is called */
@@ -1097,7 +1097,7 @@
 
   public:
     generate_c_vardecl_c(stage4out_c *s4o_ptr, varformat_t varformat, unsigned int vartype, symbol_c* res_name = NULL)
-    : generate_c_typedecl_c(s4o_ptr) {
+    : generate_c_base_c(s4o_ptr) {
       wanted_varformat = varformat;
       wanted_vartype   = vartype;
       current_vartype  = none_vt;