equal
deleted
inserted
replaced
39 %(calls_prototypes)s |
39 %(calls_prototypes)s |
40 |
40 |
41 /* |
41 /* |
42 * Retrieve input variables, run PLC and publish output variables |
42 * Retrieve input variables, run PLC and publish output variables |
43 **/ |
43 **/ |
44 void __run() |
44 void __run(void) |
45 { |
45 { |
46 __tick++; |
46 __tick++; |
47 if (greatest_tick_count__) |
47 if (greatest_tick_count__) |
48 __tick %%= greatest_tick_count__; |
48 __tick %%= greatest_tick_count__; |
49 |
49 |
64 * and then init plugins with that values |
64 * and then init plugins with that values |
65 **/ |
65 **/ |
66 int __init(int argc,char **argv) |
66 int __init(int argc,char **argv) |
67 { |
67 { |
68 int res = 0; |
68 int res = 0; |
|
69 init_level = 0; |
69 setlocale(LC_NUMERIC, "C"); |
70 setlocale(LC_NUMERIC, "C"); |
70 config_init__(); |
71 config_init__(); |
71 __init_debug(); |
72 __init_debug(); |
72 %(init_calls)s |
73 %(init_calls)s |
73 return res; |
74 return res; |
74 } |
75 } |
75 /* |
76 /* |
76 * Calls plugin cleanup proc. |
77 * Calls plugin cleanup proc. |
77 **/ |
78 **/ |
78 void __cleanup() |
79 void __cleanup(void) |
79 { |
80 { |
80 %(cleanup_calls)s |
81 %(cleanup_calls)s |
81 __cleanup_debug(); |
82 __cleanup_debug(); |
82 } |
83 } |
83 |
84 |