equal
deleted
inserted
replaced
1021 s4o.print("/* FILE GENERATED BY iec2c */\n"); |
1021 s4o.print("/* FILE GENERATED BY iec2c */\n"); |
1022 s4o.print("/* Editing this file is not recommended... */\n"); |
1022 s4o.print("/* Editing this file is not recommended... */\n"); |
1023 s4o.print("/*******************************************/\n\n"); |
1023 s4o.print("/*******************************************/\n\n"); |
1024 s4o.print("#include \"iec_std_lib.h\"\n\n"); |
1024 s4o.print("#include \"iec_std_lib.h\"\n\n"); |
1025 |
1025 |
|
1026 s4o.print("#include \"accessor.h\"\n\n"); |
|
1027 |
1026 /* (A) configuration declaration... */ |
1028 /* (A) configuration declaration... */ |
1027 /* (A.1) configuration name in comment */ |
1029 /* (A.1) configuration name in comment */ |
1028 s4o.print("// CONFIGURATION "); |
1030 s4o.print("// CONFIGURATION "); |
1029 symbol->configuration_name->accept(*this); |
1031 symbol->configuration_name->accept(*this); |
1030 s4o.print("\n"); |
1032 s4o.print("\n"); |
1046 /* (B.2) Initialisation function name... */ |
1048 /* (B.2) Initialisation function name... */ |
1047 s4o.print(s4o.indent_spaces + "void config"); |
1049 s4o.print(s4o.indent_spaces + "void config"); |
1048 s4o.print(FB_INIT_SUFFIX); |
1050 s4o.print(FB_INIT_SUFFIX); |
1049 s4o.print("(void) {\n"); |
1051 s4o.print("(void) {\n"); |
1050 s4o.indent_right(); |
1052 s4o.indent_right(); |
|
1053 s4o.print(s4o.indent_spaces); |
|
1054 s4o.print("BOOL retain = 0;\n"); |
1051 |
1055 |
1052 /* (B.3) Global variables initializations... */ |
1056 /* (B.3) Global variables initializations... */ |
1053 s4o.print(s4o.indent_spaces); |
1057 s4o.print(s4o.indent_spaces); |
1054 vardecl = new generate_c_vardecl_c(&s4o, |
1058 vardecl = new generate_c_vardecl_c(&s4o, |
1055 generate_c_vardecl_c::constructorinit_vf, |
1059 generate_c_vardecl_c::constructorinit_vf, |