stage4/generate_c/generate_c.cc
changeset 816 dcd861dda04a
parent 810 d9c48ad646f1
child 852 efb44e892582
equal deleted inserted replaced
815:4cfca12bf850 816:dcd861dda04a
   474     }
   474     }
   475 
   475 
   476 /*  TASK task_name task_initialization */
   476 /*  TASK task_name task_initialization */
   477 //SYM_REF2(task_configuration_c, task_name, task_initialization)  
   477 //SYM_REF2(task_configuration_c, task_name, task_initialization)  
   478     void *visit(task_initialization_c *symbol) {
   478     void *visit(task_initialization_c *symbol) {
   479       unsigned long long time = calculate_time(symbol->interval_data_source);
   479       if (symbol->interval_data_source != NULL) {
   480       if (time < 0)  ERROR;
   480     	  unsigned long long time = calculate_time(symbol->interval_data_source);
   481       else           update_ticktime(time);
   481     	  if (time < 0)  ERROR;
       
   482     	  else           update_ticktime(time);
       
   483       }
   482       return NULL;
   484       return NULL;
   483     }
   485     }
   484 };    
   486 };    
   485 
   487 
   486 /***********************************************************************/
   488 /***********************************************************************/