# HG changeset patch
# User mjsousa
# Date 1433786516 -3600
# Node ID 45bd3e90ecec2ffcfab0d2190b5ce81fc7ea57ed
# Parent  f6ed7dcfc53ee366d3f2d14a7a9f54cbb9a061ef
Fix FB calls in IL (FB variable name was showing up extraneously before the C function that initializes the POU containing the FB call)

diff -r f6ed7dcfc53e -r 45bd3e90ecec 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 */
     /*********************/