stage4/generate_c/generate_c.cc
changeset 917 5344b1fc826b
parent 916 e14cb81bc310
child 918 e9bde0aa93ed
equal deleted inserted replaced
916:e14cb81bc310 917:5344b1fc826b
  2294 
  2294 
  2295 /***************************/
  2295 /***************************/
  2296 /* B 0 - Programming Model */
  2296 /* B 0 - Programming Model */
  2297 /***************************/
  2297 /***************************/
  2298     void *visit(library_c *symbol) {
  2298     void *visit(library_c *symbol) {
  2299       pous_incl_s4o.print("#ifndef __POUS_H\n#define __POUS_H\n\n#include \"accessor.h\"\n\n");
  2299       pous_incl_s4o.print("#ifndef __POUS_H\n#define __POUS_H\n\n#include \"accessor.h\"\n#include \"iec_std_lib.h\"\n\n");
  2300 
  2300 
  2301       for(int i = 0; i < symbol->n; i++) {
  2301       for(int i = 0; i < symbol->n; i++) {
  2302         symbol->elements[i]->accept(*this);
  2302         symbol->elements[i]->accept(*this);
  2303       }
  2303       }
  2304 
  2304