stage4/generate_c/generate_c.cc
changeset 1061 f762b43c8fad
parent 1060 01c48180af05
child 1062 814acf353c69
child 1071 7fd69f29320a
equal deleted inserted replaced
1060:01c48180af05 1061:f762b43c8fad
   220 }
   220 }
   221 #else /* not __unix__ */
   221 #else /* not __unix__ */
   222 /* getsubopt isn't supported with mingw, 
   222 /* getsubopt isn't supported with mingw, 
   223  *  then stage4 options aren't available on windows*/
   223  *  then stage4 options aren't available on windows*/
   224 void stage4_print_options(void) {}
   224 void stage4_print_options(void) {}
   225 int  stage4_parse_options(char *options) {}
   225 int  stage4_parse_options(char *options) {return 0;}
   226 #endif 
   226 #endif 
   227 
   227 
   228 /***********************************************************************/
   228 /***********************************************************************/
   229 /***********************************************************************/
   229 /***********************************************************************/
   230 /***********************************************************************/
   230 /***********************************************************************/
  2199  * configuration, and call the backup/restore functions of each embedded resource to do
  2199  * configuration, and call the backup/restore functions of each embedded resource to do
  2200  * the same for the global variables declared inside each resource.
  2200  * the same for the global variables declared inside each resource.
  2201  */
  2201  */
  2202 class generate_c_backup_config_c: public generate_c_base_and_typeid_c {
  2202 class generate_c_backup_config_c: public generate_c_base_and_typeid_c {
  2203   private:
  2203   private:
  2204     const char *func_to_call = NULL; // will later be set to either "_backup__" or "_restore__"
  2204     const char *func_to_call; // parameter to pass data from: void *visit(configuration_declaration_c *)
       
  2205                               //                          to: void *visit(resource_declaration_c *)
  2205 
  2206 
  2206   public:
  2207   public:
  2207     generate_c_backup_config_c(stage4out_c *s4o_ptr)
  2208     generate_c_backup_config_c(stage4out_c *s4o_ptr)
  2208       : generate_c_base_and_typeid_c(s4o_ptr) {
  2209       : generate_c_base_and_typeid_c(s4o_ptr) {
       
  2210       func_to_call = NULL;
  2209     };
  2211     };
  2210 
  2212 
  2211     virtual ~generate_c_backup_config_c(void) {}
  2213     virtual ~generate_c_backup_config_c(void) {}
  2212 
  2214 
  2213     
  2215