make autogenerated functions to be 'static inline' instead of 'inline'
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Wed, 12 Oct 2016 17:52:48 +0300
changeset 1024 df3e2792fd58
parent 1021 21a97cdb317d
child 1025 c43f1c254180
child 1034 f802b5494d56
make autogenerated functions to be 'static inline' instead of 'inline'

This fixes link issue and compile warning, for more details about this
issue look at
https://bitbucket.org/mjsousa/matiec/issues/53/c-compiler-warning-if-iec-function-is-used
stage4/generate_c/generate_c_inlinefcall.cc
--- a/stage4/generate_c/generate_c_inlinefcall.cc	Tue Jun 28 16:35:47 2016 +0300
+++ b/stage4/generate_c/generate_c_inlinefcall.cc	Wed Oct 12 17:52:48 2016 +0300
@@ -104,7 +104,7 @@
       }
 
       s4o.print(s4o.indent_spaces);
-      s4o.print("inline ");
+      s4o.print("static inline ");      
       function_type_prefix->accept(*this);
       s4o.print(" __");
       fbname->accept(*this);