stage4/generate_c/generate_c_st.cc
changeset 945 477393b00f95
parent 943 566414d7ba1f
child 999 dd50a82ae8da
equal deleted inserted replaced
943:566414d7ba1f 945:477393b00f95
    42 /***********************************************************************/
    42 /***********************************************************************/
    43 /***********************************************************************/
    43 /***********************************************************************/
    44 /***********************************************************************/
    44 /***********************************************************************/
    45 
    45 
    46 
    46 
    47 class generate_c_st_c: public generate_c_base_c {
    47 class generate_c_st_c: public generate_c_base_and_typeid_c {
    48 
    48 
    49   public:
    49   public:
    50     typedef enum {
    50     typedef enum {
    51       expression_vg,
    51       expression_vg,
    52       complextype_base_vg,
    52       complextype_base_vg,
    91     variablegeneration_t wanted_variablegeneration;
    91     variablegeneration_t wanted_variablegeneration;
    92     casegeneration_t wanted_casegeneration;
    92     casegeneration_t wanted_casegeneration;
    93 
    93 
    94   public:
    94   public:
    95     generate_c_st_c(stage4out_c *s4o_ptr, symbol_c *name, symbol_c *scope, const char *variable_prefix = NULL)
    95     generate_c_st_c(stage4out_c *s4o_ptr, symbol_c *name, symbol_c *scope, const char *variable_prefix = NULL)
    96     : generate_c_base_c(s4o_ptr) {
    96     : generate_c_base_and_typeid_c(s4o_ptr) {
    97       search_fb_instance_decl    = new search_fb_instance_decl_c   (scope);
    97       search_fb_instance_decl    = new search_fb_instance_decl_c   (scope);
    98       search_varfb_instance_type = new search_varfb_instance_type_c(scope);
    98       search_varfb_instance_type = new search_varfb_instance_type_c(scope);
    99       search_var_instance_decl   = new search_var_instance_decl_c  (scope);
    99       search_var_instance_decl   = new search_var_instance_decl_c  (scope);
   100       scope_ = scope;
   100       scope_ = scope;
   101       
   101