targets/plc_common_main.c
changeset 386 2932b0dd437c
parent 366 cd90e4c10261
child 397 6a7ff66a811d
equal deleted inserted replaced
385:49cd52914a6f 386:2932b0dd437c
    56  * Initialize variables according to PLC's defalut values,
    56  * Initialize variables according to PLC's defalut values,
    57  * and then init plugins with that values
    57  * and then init plugins with that values
    58  **/
    58  **/
    59 int __init(int argc,char **argv)
    59 int __init(int argc,char **argv)
    60 {
    60 {
    61     int res;
    61     int res = 0;
    62     setlocale(LC_NUMERIC, "C");
    62     setlocale(LC_NUMERIC, "C");
    63     config_init__();
    63     config_init__();
    64     __init_debug();
    64     __init_debug();
    65     %(init_calls)s
    65     %(init_calls)s
    66     return 0;
    66     return res;
    67 }
    67 }
    68 /*
    68 /*
    69  * Calls plugin cleanup proc.
    69  * Calls plugin cleanup proc.
    70  **/
    70  **/
    71 void __cleanup()
    71 void __cleanup()