Fix FB calls in IL (FB variable name was showing up extraneously before the C function that initializes the POU containing the FB call)
authormjsousa
Mon, 08 Jun 2015 19:01:56 +0100
changeset 1002 45bd3e90ecec
parent 1001 f6ed7dcfc53e
child 1003 64c9fe787f12
Fix FB calls in IL (FB variable name was showing up extraneously before the C function that initializes the POU containing the FB call)
stage4/generate_c/generate_c_inlinefcall.cc
--- a/stage4/generate_c/generate_c_inlinefcall.cc	Sat Jun 06 18:58:50 2015 +0100
+++ b/stage4/generate_c/generate_c_inlinefcall.cc	Mon Jun 08 19:01:56 2015 +0100
@@ -295,6 +295,19 @@
       return NULL;
     }
 
+    /*************************/
+    /* B.1 - Common elements */
+    /*************************/
+    /*******************************************/
+    /* B 1.1 - Letters, digits and identifiers */
+    /*******************************************/
+    void *visit(identifier_c *symbol) {
+      if (generating_inlinefunction) {
+        return generate_c_base_c::visit(symbol); // let the base class handle it...
+      }
+      return NULL;
+    }
+
     /*********************/
     /* B 1.4 - Variables */
     /*********************/