stage4/generate_c/generate_c.cc
changeset 906 b225af94405f
parent 902 38dca2e264b6
child 907 c3edb882a4b2
equal deleted inserted replaced
905:31224f8cac32 906:b225af94405f
   763     std::map<std::string, int> inline_array_defined;
   763     std::map<std::string, int> inline_array_defined;
   764     std::string current_array_name;
   764     std::string current_array_name;
   765     inlinearray_mode_t current_mode;
   765     inlinearray_mode_t current_mode;
   766 
   766 
   767   public:
   767   public:
   768     generate_c_datatypes_c(stage4out_c *s4o_ptr, stage4out_c *s4o_incl_ptr)
   768     generate_c_datatypes_c(stage4out_c *s4o_incl_ptr)
   769       : generate_c_typedecl_c(s4o_incl_ptr) {
   769       : generate_c_typedecl_c(s4o_incl_ptr) {
   770       current_mode = none_im;
   770       current_mode = none_im;
   771     };
   771     };
   772     virtual ~generate_c_datatypes_c(void) {
   772     virtual ~generate_c_datatypes_c(void) {
   773       while (!inline_array_defined.empty()) {
   773       while (!inline_array_defined.empty()) {
  2556             s4o(*s4o_ptr),
  2556             s4o(*s4o_ptr),
  2557             pous_s4o(builddir, "POUS", "c"),
  2557             pous_s4o(builddir, "POUS", "c"),
  2558             pous_incl_s4o(builddir, "POUS", "h"),
  2558             pous_incl_s4o(builddir, "POUS", "h"),
  2559             located_variables_s4o(builddir, "LOCATED_VARIABLES","h"),
  2559             located_variables_s4o(builddir, "LOCATED_VARIABLES","h"),
  2560             variables_s4o(builddir, "VARIABLES","csv"),
  2560             variables_s4o(builddir, "VARIABLES","csv"),
  2561             generate_c_datatypes(&pous_s4o, &pous_incl_s4o),
  2561             generate_c_datatypes(&pous_incl_s4o),
  2562             generate_c_pous(&pous_s4o, &pous_incl_s4o) {
  2562             generate_c_pous(&pous_s4o, &pous_incl_s4o) {
  2563       current_builddir = builddir;
  2563       current_builddir = builddir;
  2564       current_configuration = NULL;
  2564       current_configuration = NULL;
  2565       current_mode = none_gm;
  2565       current_mode = none_gm;
  2566     }
  2566     }