stage4/generate_cc/generate_cc.cc
changeset 32 289256ec66f1
parent 30 83201ec94ef4
child 39 e08c65e27557
--- a/stage4/generate_cc/generate_cc.cc	Tue May 29 09:45:50 2007 +0200
+++ b/stage4/generate_cc/generate_cc.cc	Thu Jun 14 08:58:10 2007 +0200
@@ -627,7 +627,7 @@
    * function block declaration symbol table...
    */
   function_block_type_symtable.insert(symbol->fblock_name, symbol);
-
+  
   /* (A) Function Block data structure declaration... */
   /* (A.1) Data structure declaration */
   s4o.print("// FUNCTION_BLOCK ");
@@ -1403,7 +1403,7 @@
       generate_location_list_c generate_location_list(&s4o);
       symbol->accept(generate_location_list);
       
-      for(int i = 1; i < symbol->n; i++) {
+      for(int i = 0; i < symbol->n; i++) {
         symbol->elements[i]->accept(*this);
       }
       return NULL;