# HG changeset patch # User laurent # Date 1300267910 -3600 # Node ID 5d2927300e2c93e3ba9a3294141f4e5936d9d045 # Parent d58a4582453195b6144b3f0d429252cd38000349 Adding missing support for accessors and retain in configuration files (Bug and fix reported by Manuele Conti) diff -r d58a45824531 -r 5d2927300e2c stage4/generate_c/generate_c.cc --- a/stage4/generate_c/generate_c.cc Sat Mar 12 18:43:02 2011 +0100 +++ b/stage4/generate_c/generate_c.cc Wed Mar 16 10:31:50 2011 +0100 @@ -1023,6 +1023,8 @@ s4o.print("/*******************************************/\n\n"); s4o.print("#include \"iec_std_lib.h\"\n\n"); + s4o.print("#include \"accessor.h\"\n\n"); + /* (A) configuration declaration... */ /* (A.1) configuration name in comment */ s4o.print("// CONFIGURATION "); @@ -1048,6 +1050,8 @@ s4o.print(FB_INIT_SUFFIX); s4o.print("(void) {\n"); s4o.indent_right(); + s4o.print(s4o.indent_spaces); + s4o.print("BOOL retain = 0;\n"); /* (B.3) Global variables initializations... */ s4o.print(s4o.indent_spaces);