targets/plc_common_main.c
changeset 568 20a223828a06
parent 518 8e61b0066859
equal deleted inserted replaced
567:72b51ec5be64 568:20a223828a06
     1 /**
     1 /**
     2  * Code common to all C targets
     2  * Code common to all C targets
     3  **/
     3  **/
     4 
     4 
     5 #include <locale.h>
       
     6 #include "iec_types.h"
     5 #include "iec_types.h"
     7 /*
     6 /*
     8  * Prototypes of functions provided by generated C softPLC
     7  * Prototypes of functions provided by generated C softPLC
     9  **/
     8  **/
    10 void config_run__(unsigned long tick);
     9 void config_run__(unsigned long tick);
    65  **/
    64  **/
    66 int __init(int argc,char **argv)
    65 int __init(int argc,char **argv)
    67 {
    66 {
    68     int res = 0;
    67     int res = 0;
    69     init_level = 0;
    68     init_level = 0;
    70     setlocale(LC_NUMERIC, "C");
       
    71     config_init__();
    69     config_init__();
    72     __init_debug();
    70     __init_debug();
    73     %(init_calls)s
    71     %(init_calls)s
    74     return res;
    72     return res;
    75 }
    73 }