stage4/generate_cc/il_code_gen.c
author etisserant
Wed, 18 Jul 2007 11:57:36 +0200
changeset 43 37dd4e2fd2ec
parent 42 b45c7f34dec1
child 49 c96d1a4c23f8
permissions -rw-r--r--
Test IEC_LIB and fix bugs (EQ, GT et all)
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
     1
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
     2
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
     3
 * IEC 61131-3 standard function lib
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
     4
 * generated code, do not edit by hand
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
     5
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
     6
switch(current_function_type){
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
     7
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
     8
/****
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
     9
 *BOOL_TO_SINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    10
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    11
    case function_bool_to_sint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    12
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    13
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    14
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    15
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    16
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    17
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    18
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    19
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    20
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    21
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
    22
            if(search_expression_type->is_same_type(&search_constant_type_c::bool_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    23
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    24
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    25
                symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    26
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    27
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    28
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    29
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    30
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    31
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    32
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    33
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    34
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    35
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    36
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    37
    }/*function_bool_to_sint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    38
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    39
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    40
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    41
 *BOOL_TO_INT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    42
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    43
    case function_bool_to_int :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    44
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    45
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    46
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    47
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    48
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    49
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    50
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    51
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    52
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    53
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
    54
            if(search_expression_type->is_same_type(&search_constant_type_c::bool_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    55
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    56
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    57
                symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    58
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    59
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    60
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    61
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    62
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    63
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    64
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    65
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    66
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    67
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    68
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    69
    }/*function_bool_to_int*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    70
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    71
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    72
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    73
 *BOOL_TO_DINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    74
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    75
    case function_bool_to_dint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    76
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    77
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    78
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    79
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    80
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    81
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    82
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    83
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    84
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    85
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
    86
            if(search_expression_type->is_same_type(&search_constant_type_c::bool_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    87
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    88
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    89
                symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    90
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    91
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    92
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    93
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    94
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    95
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    96
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    97
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    98
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
    99
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   100
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   101
    }/*function_bool_to_dint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   102
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   103
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   104
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   105
 *BOOL_TO_LINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   106
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   107
    case function_bool_to_lint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   108
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   109
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   110
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   111
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   112
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   113
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   114
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   115
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   116
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   117
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
   118
            if(search_expression_type->is_same_type(&search_constant_type_c::bool_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   119
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   120
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   121
                symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   122
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   123
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   124
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   125
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   126
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   127
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   128
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   129
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   130
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   131
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   132
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   133
    }/*function_bool_to_lint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   134
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   135
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   136
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   137
 *BOOL_TO_USINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   138
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   139
    case function_bool_to_usint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   140
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   141
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   142
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   143
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   144
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   145
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   146
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   147
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   148
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   149
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
   150
            if(search_expression_type->is_same_type(&search_constant_type_c::bool_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   151
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   152
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   153
                symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   154
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   155
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   156
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   157
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   158
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   159
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   160
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   161
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   162
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   163
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   164
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   165
    }/*function_bool_to_usint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   166
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   167
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   168
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   169
 *BOOL_TO_UINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   170
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   171
    case function_bool_to_uint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   172
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   173
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   174
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   175
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   176
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   177
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   178
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   179
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   180
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   181
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
   182
            if(search_expression_type->is_same_type(&search_constant_type_c::bool_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   183
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   184
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   185
                symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   186
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   187
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   188
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   189
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   190
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   191
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   192
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   193
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   194
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   195
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   196
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   197
    }/*function_bool_to_uint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   198
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   199
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   200
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   201
 *BOOL_TO_UDINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   202
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   203
    case function_bool_to_udint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   204
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   205
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   206
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   207
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   208
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   209
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   210
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   211
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   212
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   213
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
   214
            if(search_expression_type->is_same_type(&search_constant_type_c::bool_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   215
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   216
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   217
                symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   218
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   219
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   220
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   221
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   222
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   223
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   224
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   225
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   226
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   227
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   228
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   229
    }/*function_bool_to_udint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   230
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   231
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   232
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   233
 *BOOL_TO_ULINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   234
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   235
    case function_bool_to_ulint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   236
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   237
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   238
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   239
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   240
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   241
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   242
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   243
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   244
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   245
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
   246
            if(search_expression_type->is_same_type(&search_constant_type_c::bool_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   247
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   248
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   249
                symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   250
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   251
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   252
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   253
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   254
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   255
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   256
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   257
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   258
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   259
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   260
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   261
    }/*function_bool_to_ulint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   262
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   263
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   264
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   265
 *BOOL_TO_REAL
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   266
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   267
    case function_bool_to_real :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   268
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   269
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   270
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   271
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   272
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   273
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   274
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   275
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   276
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   277
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
   278
            if(search_expression_type->is_same_type(&search_constant_type_c::bool_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   279
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   280
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   281
                symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   282
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   283
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   284
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   285
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   286
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   287
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   288
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   289
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   290
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   291
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   292
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   293
    }/*function_bool_to_real*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   294
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   295
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   296
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   297
 *BOOL_TO_LREAL
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   298
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   299
    case function_bool_to_lreal :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   300
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   301
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   302
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   303
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   304
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   305
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   306
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   307
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   308
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   309
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
   310
            if(search_expression_type->is_same_type(&search_constant_type_c::bool_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   311
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   312
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   313
                symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   314
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   315
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   316
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   317
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   318
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   319
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   320
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   321
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   322
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   323
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   324
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   325
    }/*function_bool_to_lreal*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   326
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   327
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   328
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   329
 *BOOL_TO_TIME
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   330
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   331
    case function_bool_to_time :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   332
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   333
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   334
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   335
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   336
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   337
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   338
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   339
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   340
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   341
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
   342
            if(search_expression_type->is_same_type(&search_constant_type_c::bool_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   343
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   344
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   345
                symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   346
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   347
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   348
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   349
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   350
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   351
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   352
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   353
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   354
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   355
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   356
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   357
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   358
    }/*function_bool_to_time*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   359
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   360
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   361
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   362
 *BOOL_TO_DATE
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   363
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   364
    case function_bool_to_date :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   365
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   366
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   367
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   368
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   369
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   370
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   371
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   372
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   373
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   374
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
   375
            if(search_expression_type->is_same_type(&search_constant_type_c::bool_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   376
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   377
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   378
                symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   379
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   380
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   381
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   382
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   383
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   384
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   385
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   386
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   387
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   388
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   389
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   390
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   391
    }/*function_bool_to_date*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   392
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   393
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   394
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   395
 *BOOL_TO_TOD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   396
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   397
    case function_bool_to_tod :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   398
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   399
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   400
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   401
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   402
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   403
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   404
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   405
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   406
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   407
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
   408
            if(search_expression_type->is_same_type(&search_constant_type_c::bool_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   409
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   410
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   411
                symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   412
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   413
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   414
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   415
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   416
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   417
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   418
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   419
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   420
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   421
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   422
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   423
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   424
    }/*function_bool_to_tod*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   425
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   426
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   427
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   428
 *BOOL_TO_DT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   429
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   430
    case function_bool_to_dt :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   431
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   432
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   433
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   434
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   435
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   436
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   437
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   438
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   439
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   440
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
   441
            if(search_expression_type->is_same_type(&search_constant_type_c::bool_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   442
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   443
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   444
                symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   445
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   446
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   447
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   448
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   449
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   450
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   451
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   452
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   453
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   454
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   455
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   456
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   457
    }/*function_bool_to_dt*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   458
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   459
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   460
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   461
 *BOOL_TO_STRING
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   462
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   463
    case function_bool_to_string :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   464
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   465
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   466
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   467
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   468
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   469
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   470
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   471
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   472
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   473
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
   474
            if(search_expression_type->is_same_type(&search_constant_type_c::bool_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   475
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   476
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   477
                symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   478
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   479
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   480
                s4o.print(")__bool_to_string(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   481
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   482
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   483
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   484
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   485
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   486
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   487
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   488
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   489
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   490
    }/*function_bool_to_string*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   491
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   492
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   493
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   494
 *BOOL_TO_BYTE
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   495
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   496
    case function_bool_to_byte :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   497
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   498
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   499
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   500
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   501
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   502
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   503
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   504
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   505
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   506
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
   507
            if(search_expression_type->is_same_type(&search_constant_type_c::bool_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   508
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   509
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   510
                symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   511
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   512
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   513
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   514
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   515
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   516
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   517
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   518
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   519
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   520
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   521
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   522
    }/*function_bool_to_byte*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   523
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   524
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   525
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   526
 *BOOL_TO_WORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   527
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   528
    case function_bool_to_word :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   529
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   530
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   531
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   532
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   533
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   534
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   535
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   536
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   537
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   538
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
   539
            if(search_expression_type->is_same_type(&search_constant_type_c::bool_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   540
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   541
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   542
                symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   543
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   544
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   545
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   546
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   547
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   548
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   549
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   550
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   551
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   552
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   553
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   554
    }/*function_bool_to_word*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   555
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   556
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   557
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   558
 *BOOL_TO_DWORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   559
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   560
    case function_bool_to_dword :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   561
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   562
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   563
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   564
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   565
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   566
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   567
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   568
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   569
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   570
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
   571
            if(search_expression_type->is_same_type(&search_constant_type_c::bool_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   572
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   573
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   574
                symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   575
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   576
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   577
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   578
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   579
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   580
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   581
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   582
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   583
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   584
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   585
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   586
    }/*function_bool_to_dword*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   587
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   588
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   589
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   590
 *BOOL_TO_LWORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   591
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   592
    case function_bool_to_lword :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   593
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   594
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   595
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   596
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   597
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   598
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   599
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   600
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   601
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   602
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
   603
            if(search_expression_type->is_same_type(&search_constant_type_c::bool_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   604
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   605
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   606
                symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   607
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   608
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   609
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   610
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   611
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   612
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   613
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   614
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   615
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   616
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   617
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   618
    }/*function_bool_to_lword*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   619
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   620
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   621
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   622
 *SINT_TO_BOOL
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   623
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   624
    case function_sint_to_bool :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   625
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   626
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   627
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   628
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   629
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   630
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   631
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   632
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   633
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   634
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
   635
            if(search_expression_type->is_same_type(&search_constant_type_c::sint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   636
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   637
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   638
                symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   639
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   640
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   641
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   642
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   643
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   644
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   645
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   646
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   647
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   648
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   649
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   650
    }/*function_sint_to_bool*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   651
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   652
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   653
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   654
 *SINT_TO_INT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   655
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   656
    case function_sint_to_int :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   657
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   658
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   659
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   660
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   661
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   662
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   663
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   664
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   665
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   666
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
   667
            if(search_expression_type->is_same_type(&search_constant_type_c::sint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   668
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   669
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   670
                symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   671
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   672
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   673
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   674
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   675
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   676
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   677
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   678
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   679
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   680
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   681
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   682
    }/*function_sint_to_int*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   683
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   684
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   685
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   686
 *SINT_TO_DINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   687
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   688
    case function_sint_to_dint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   689
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   690
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   691
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   692
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   693
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   694
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   695
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   696
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   697
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   698
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
   699
            if(search_expression_type->is_same_type(&search_constant_type_c::sint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   700
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   701
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   702
                symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   703
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   704
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   705
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   706
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   707
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   708
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   709
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   710
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   711
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   712
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   713
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   714
    }/*function_sint_to_dint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   715
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   716
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   717
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   718
 *SINT_TO_LINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   719
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   720
    case function_sint_to_lint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   721
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   722
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   723
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   724
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   725
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   726
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   727
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   728
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   729
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   730
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
   731
            if(search_expression_type->is_same_type(&search_constant_type_c::sint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   732
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   733
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   734
                symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   735
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   736
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   737
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   738
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   739
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   740
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   741
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   742
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   743
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   744
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   745
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   746
    }/*function_sint_to_lint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   747
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   748
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   749
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   750
 *SINT_TO_USINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   751
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   752
    case function_sint_to_usint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   753
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   754
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   755
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   756
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   757
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   758
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   759
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   760
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   761
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   762
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
   763
            if(search_expression_type->is_same_type(&search_constant_type_c::sint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   764
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   765
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   766
                symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   767
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   768
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   769
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   770
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   771
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   772
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   773
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   774
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   775
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   776
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   777
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   778
    }/*function_sint_to_usint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   779
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   780
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   781
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   782
 *SINT_TO_UINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   783
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   784
    case function_sint_to_uint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   785
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   786
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   787
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   788
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   789
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   790
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   791
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   792
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   793
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   794
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
   795
            if(search_expression_type->is_same_type(&search_constant_type_c::sint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   796
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   797
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   798
                symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   799
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   800
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   801
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   802
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   803
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   804
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   805
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   806
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   807
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   808
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   809
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   810
    }/*function_sint_to_uint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   811
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   812
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   813
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   814
 *SINT_TO_UDINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   815
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   816
    case function_sint_to_udint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   817
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   818
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   819
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   820
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   821
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   822
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   823
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   824
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   825
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   826
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
   827
            if(search_expression_type->is_same_type(&search_constant_type_c::sint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   828
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   829
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   830
                symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   831
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   832
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   833
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   834
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   835
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   836
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   837
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   838
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   839
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   840
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   841
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   842
    }/*function_sint_to_udint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   843
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   844
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   845
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   846
 *SINT_TO_ULINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   847
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   848
    case function_sint_to_ulint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   849
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   850
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   851
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   852
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   853
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   854
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   855
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   856
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   857
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   858
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
   859
            if(search_expression_type->is_same_type(&search_constant_type_c::sint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   860
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   861
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   862
                symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   863
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   864
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   865
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   866
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   867
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   868
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   869
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   870
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   871
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   872
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   873
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   874
    }/*function_sint_to_ulint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   875
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   876
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   877
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   878
 *SINT_TO_REAL
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   879
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   880
    case function_sint_to_real :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   881
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   882
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   883
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   884
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   885
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   886
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   887
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   888
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   889
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   890
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
   891
            if(search_expression_type->is_same_type(&search_constant_type_c::sint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   892
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   893
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   894
                symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   895
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   896
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   897
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   898
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   899
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   900
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   901
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   902
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   903
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   904
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   905
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   906
    }/*function_sint_to_real*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   907
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   908
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   909
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   910
 *SINT_TO_LREAL
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   911
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   912
    case function_sint_to_lreal :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   913
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   914
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   915
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   916
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   917
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   918
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   919
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   920
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   921
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   922
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
   923
            if(search_expression_type->is_same_type(&search_constant_type_c::sint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   924
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   925
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   926
                symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   927
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   928
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   929
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   930
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   931
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   932
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   933
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   934
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   935
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   936
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   937
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   938
    }/*function_sint_to_lreal*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   939
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   940
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   941
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   942
 *SINT_TO_TIME
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   943
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   944
    case function_sint_to_time :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   945
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   946
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   947
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   948
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   949
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   950
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   951
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   952
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   953
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   954
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
   955
            if(search_expression_type->is_same_type(&search_constant_type_c::sint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   956
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   957
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   958
                symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   959
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   960
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   961
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   962
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   963
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   964
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   965
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   966
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   967
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   968
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   969
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   970
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   971
    }/*function_sint_to_time*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   972
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   973
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   974
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   975
 *SINT_TO_DATE
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   976
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   977
    case function_sint_to_date :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   978
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   979
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   980
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   981
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   982
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   983
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   984
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   985
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   986
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   987
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
   988
            if(search_expression_type->is_same_type(&search_constant_type_c::sint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   989
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   990
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   991
                symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   992
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   993
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   994
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   995
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   996
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   997
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   998
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
   999
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1000
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1001
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1002
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1003
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1004
    }/*function_sint_to_date*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1005
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1006
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1007
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1008
 *SINT_TO_TOD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1009
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1010
    case function_sint_to_tod :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1011
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1012
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1013
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1014
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1015
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1016
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1017
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1018
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1019
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1020
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1021
            if(search_expression_type->is_same_type(&search_constant_type_c::sint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1022
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1023
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1024
                symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1025
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1026
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1027
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1028
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1029
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1030
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1031
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1032
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1033
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1034
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1035
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1036
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1037
    }/*function_sint_to_tod*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1038
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1039
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1040
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1041
 *SINT_TO_DT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1042
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1043
    case function_sint_to_dt :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1044
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1045
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1046
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1047
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1048
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1049
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1050
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1051
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1052
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1053
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1054
            if(search_expression_type->is_same_type(&search_constant_type_c::sint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1055
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1056
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1057
                symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1058
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1059
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1060
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1061
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1062
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1063
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1064
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1065
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1066
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1067
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1068
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1069
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1070
    }/*function_sint_to_dt*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1071
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1072
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1073
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1074
 *SINT_TO_STRING
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1075
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1076
    case function_sint_to_string :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1077
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1078
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1079
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1080
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1081
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1082
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1083
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1084
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1085
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1086
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1087
            if(search_expression_type->is_same_type(&search_constant_type_c::sint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1088
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1089
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1090
                symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1091
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1092
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1093
                s4o.print(")__sint_to_string(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1094
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1095
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1096
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1097
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1098
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1099
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1100
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1101
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1102
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1103
    }/*function_sint_to_string*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1104
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1105
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1106
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1107
 *SINT_TO_BYTE
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1108
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1109
    case function_sint_to_byte :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1110
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1111
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1112
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1113
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1114
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1115
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1116
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1117
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1118
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1119
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1120
            if(search_expression_type->is_same_type(&search_constant_type_c::sint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1121
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1122
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1123
                symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1124
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1125
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1126
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1127
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1128
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1129
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1130
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1131
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1132
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1133
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1134
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1135
    }/*function_sint_to_byte*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1136
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1137
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1138
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1139
 *SINT_TO_WORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1140
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1141
    case function_sint_to_word :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1142
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1143
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1144
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1145
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1146
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1147
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1148
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1149
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1150
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1151
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1152
            if(search_expression_type->is_same_type(&search_constant_type_c::sint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1153
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1154
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1155
                symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1156
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1157
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1158
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1159
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1160
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1161
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1162
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1163
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1164
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1165
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1166
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1167
    }/*function_sint_to_word*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1168
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1169
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1170
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1171
 *SINT_TO_DWORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1172
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1173
    case function_sint_to_dword :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1174
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1175
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1176
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1177
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1178
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1179
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1180
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1181
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1182
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1183
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1184
            if(search_expression_type->is_same_type(&search_constant_type_c::sint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1185
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1186
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1187
                symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1188
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1189
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1190
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1191
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1192
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1193
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1194
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1195
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1196
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1197
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1198
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1199
    }/*function_sint_to_dword*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1200
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1201
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1202
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1203
 *SINT_TO_LWORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1204
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1205
    case function_sint_to_lword :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1206
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1207
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1208
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1209
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1210
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1211
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1212
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1213
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1214
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1215
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1216
            if(search_expression_type->is_same_type(&search_constant_type_c::sint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1217
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1218
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1219
                symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1220
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1221
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1222
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1223
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1224
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1225
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1226
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1227
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1228
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1229
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1230
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1231
    }/*function_sint_to_lword*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1232
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1233
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1234
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1235
 *INT_TO_BOOL
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1236
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1237
    case function_int_to_bool :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1238
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1239
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1240
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1241
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1242
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1243
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1244
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1245
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1246
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1247
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1248
            if(search_expression_type->is_same_type(&search_constant_type_c::int_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1249
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1250
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1251
                symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1252
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1253
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1254
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1255
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1256
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1257
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1258
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1259
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1260
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1261
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1262
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1263
    }/*function_int_to_bool*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1264
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1265
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1266
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1267
 *INT_TO_SINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1268
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1269
    case function_int_to_sint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1270
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1271
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1272
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1273
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1274
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1275
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1276
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1277
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1278
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1279
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1280
            if(search_expression_type->is_same_type(&search_constant_type_c::int_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1281
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1282
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1283
                symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1284
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1285
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1286
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1287
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1288
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1289
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1290
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1291
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1292
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1293
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1294
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1295
    }/*function_int_to_sint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1296
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1297
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1298
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1299
 *INT_TO_DINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1300
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1301
    case function_int_to_dint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1302
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1303
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1304
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1305
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1306
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1307
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1308
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1309
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1310
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1311
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1312
            if(search_expression_type->is_same_type(&search_constant_type_c::int_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1313
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1314
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1315
                symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1316
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1317
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1318
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1319
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1320
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1321
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1322
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1323
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1324
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1325
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1326
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1327
    }/*function_int_to_dint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1328
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1329
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1330
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1331
 *INT_TO_LINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1332
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1333
    case function_int_to_lint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1334
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1335
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1336
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1337
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1338
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1339
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1340
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1341
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1342
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1343
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1344
            if(search_expression_type->is_same_type(&search_constant_type_c::int_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1345
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1346
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1347
                symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1348
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1349
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1350
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1351
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1352
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1353
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1354
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1355
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1356
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1357
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1358
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1359
    }/*function_int_to_lint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1360
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1361
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1362
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1363
 *INT_TO_USINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1364
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1365
    case function_int_to_usint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1366
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1367
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1368
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1369
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1370
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1371
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1372
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1373
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1374
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1375
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1376
            if(search_expression_type->is_same_type(&search_constant_type_c::int_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1377
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1378
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1379
                symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1380
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1381
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1382
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1383
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1384
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1385
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1386
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1387
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1388
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1389
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1390
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1391
    }/*function_int_to_usint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1392
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1393
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1394
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1395
 *INT_TO_UINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1396
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1397
    case function_int_to_uint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1398
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1399
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1400
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1401
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1402
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1403
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1404
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1405
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1406
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1407
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1408
            if(search_expression_type->is_same_type(&search_constant_type_c::int_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1409
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1410
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1411
                symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1412
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1413
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1414
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1415
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1416
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1417
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1418
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1419
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1420
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1421
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1422
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1423
    }/*function_int_to_uint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1424
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1425
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1426
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1427
 *INT_TO_UDINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1428
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1429
    case function_int_to_udint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1430
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1431
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1432
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1433
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1434
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1435
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1436
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1437
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1438
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1439
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1440
            if(search_expression_type->is_same_type(&search_constant_type_c::int_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1441
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1442
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1443
                symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1444
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1445
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1446
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1447
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1448
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1449
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1450
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1451
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1452
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1453
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1454
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1455
    }/*function_int_to_udint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1456
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1457
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1458
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1459
 *INT_TO_ULINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1460
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1461
    case function_int_to_ulint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1462
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1463
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1464
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1465
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1466
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1467
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1468
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1469
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1470
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1471
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1472
            if(search_expression_type->is_same_type(&search_constant_type_c::int_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1473
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1474
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1475
                symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1476
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1477
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1478
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1479
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1480
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1481
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1482
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1483
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1484
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1485
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1486
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1487
    }/*function_int_to_ulint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1488
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1489
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1490
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1491
 *INT_TO_REAL
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1492
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1493
    case function_int_to_real :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1494
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1495
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1496
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1497
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1498
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1499
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1500
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1501
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1502
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1503
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1504
            if(search_expression_type->is_same_type(&search_constant_type_c::int_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1505
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1506
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1507
                symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1508
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1509
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1510
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1511
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1512
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1513
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1514
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1515
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1516
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1517
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1518
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1519
    }/*function_int_to_real*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1520
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1521
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1522
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1523
 *INT_TO_LREAL
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1524
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1525
    case function_int_to_lreal :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1526
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1527
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1528
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1529
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1530
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1531
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1532
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1533
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1534
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1535
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1536
            if(search_expression_type->is_same_type(&search_constant_type_c::int_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1537
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1538
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1539
                symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1540
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1541
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1542
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1543
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1544
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1545
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1546
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1547
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1548
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1549
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1550
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1551
    }/*function_int_to_lreal*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1552
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1553
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1554
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1555
 *INT_TO_TIME
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1556
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1557
    case function_int_to_time :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1558
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1559
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1560
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1561
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1562
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1563
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1564
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1565
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1566
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1567
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1568
            if(search_expression_type->is_same_type(&search_constant_type_c::int_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1569
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1570
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1571
                symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1572
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1573
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1574
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1575
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1576
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1577
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1578
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1579
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1580
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1581
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1582
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1583
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1584
    }/*function_int_to_time*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1585
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1586
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1587
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1588
 *INT_TO_DATE
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1589
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1590
    case function_int_to_date :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1591
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1592
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1593
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1594
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1595
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1596
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1597
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1598
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1599
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1600
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1601
            if(search_expression_type->is_same_type(&search_constant_type_c::int_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1602
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1603
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1604
                symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1605
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1606
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1607
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1608
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1609
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1610
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1611
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1612
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1613
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1614
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1615
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1616
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1617
    }/*function_int_to_date*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1618
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1619
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1620
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1621
 *INT_TO_TOD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1622
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1623
    case function_int_to_tod :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1624
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1625
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1626
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1627
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1628
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1629
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1630
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1631
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1632
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1633
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1634
            if(search_expression_type->is_same_type(&search_constant_type_c::int_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1635
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1636
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1637
                symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1638
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1639
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1640
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1641
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1642
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1643
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1644
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1645
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1646
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1647
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1648
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1649
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1650
    }/*function_int_to_tod*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1651
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1652
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1653
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1654
 *INT_TO_DT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1655
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1656
    case function_int_to_dt :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1657
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1658
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1659
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1660
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1661
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1662
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1663
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1664
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1665
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1666
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1667
            if(search_expression_type->is_same_type(&search_constant_type_c::int_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1668
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1669
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1670
                symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1671
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1672
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1673
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1674
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1675
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1676
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1677
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1678
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1679
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1680
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1681
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1682
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1683
    }/*function_int_to_dt*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1684
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1685
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1686
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1687
 *INT_TO_STRING
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1688
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1689
    case function_int_to_string :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1690
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1691
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1692
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1693
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1694
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1695
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1696
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1697
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1698
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1699
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1700
            if(search_expression_type->is_same_type(&search_constant_type_c::int_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1701
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1702
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1703
                symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1704
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1705
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1706
                s4o.print(")__sint_to_string(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1707
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1708
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1709
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1710
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1711
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1712
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1713
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1714
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1715
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1716
    }/*function_int_to_string*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1717
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1718
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1719
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1720
 *INT_TO_BYTE
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1721
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1722
    case function_int_to_byte :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1723
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1724
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1725
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1726
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1727
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1728
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1729
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1730
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1731
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1732
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1733
            if(search_expression_type->is_same_type(&search_constant_type_c::int_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1734
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1735
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1736
                symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1737
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1738
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1739
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1740
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1741
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1742
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1743
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1744
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1745
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1746
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1747
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1748
    }/*function_int_to_byte*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1749
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1750
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1751
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1752
 *INT_TO_WORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1753
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1754
    case function_int_to_word :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1755
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1756
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1757
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1758
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1759
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1760
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1761
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1762
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1763
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1764
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1765
            if(search_expression_type->is_same_type(&search_constant_type_c::int_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1766
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1767
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1768
                symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1769
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1770
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1771
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1772
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1773
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1774
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1775
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1776
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1777
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1778
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1779
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1780
    }/*function_int_to_word*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1781
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1782
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1783
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1784
 *INT_TO_DWORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1785
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1786
    case function_int_to_dword :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1787
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1788
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1789
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1790
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1791
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1792
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1793
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1794
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1795
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1796
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1797
            if(search_expression_type->is_same_type(&search_constant_type_c::int_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1798
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1799
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1800
                symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1801
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1802
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1803
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1804
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1805
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1806
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1807
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1808
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1809
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1810
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1811
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1812
    }/*function_int_to_dword*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1813
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1814
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1815
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1816
 *INT_TO_LWORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1817
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1818
    case function_int_to_lword :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1819
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1820
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1821
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1822
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1823
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1824
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1825
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1826
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1827
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1828
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1829
            if(search_expression_type->is_same_type(&search_constant_type_c::int_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1830
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1831
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1832
                symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1833
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1834
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1835
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1836
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1837
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1838
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1839
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1840
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1841
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1842
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1843
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1844
    }/*function_int_to_lword*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1845
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1846
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1847
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1848
 *DINT_TO_BOOL
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1849
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1850
    case function_dint_to_bool :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1851
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1852
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1853
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1854
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1855
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1856
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1857
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1858
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1859
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1860
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1861
            if(search_expression_type->is_same_type(&search_constant_type_c::dint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1862
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1863
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1864
                symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1865
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1866
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1867
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1868
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1869
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1870
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1871
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1872
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1873
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1874
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1875
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1876
    }/*function_dint_to_bool*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1877
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1878
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1879
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1880
 *DINT_TO_SINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1881
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1882
    case function_dint_to_sint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1883
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1884
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1885
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1886
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1887
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1888
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1889
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1890
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1891
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1892
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1893
            if(search_expression_type->is_same_type(&search_constant_type_c::dint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1894
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1895
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1896
                symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1897
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1898
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1899
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1900
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1901
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1902
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1903
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1904
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1905
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1906
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1907
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1908
    }/*function_dint_to_sint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1909
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1910
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1911
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1912
 *DINT_TO_INT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1913
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1914
    case function_dint_to_int :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1915
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1916
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1917
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1918
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1919
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1920
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1921
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1922
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1923
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1924
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1925
            if(search_expression_type->is_same_type(&search_constant_type_c::dint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1926
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1927
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1928
                symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1929
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1930
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1931
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1932
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1933
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1934
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1935
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1936
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1937
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1938
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1939
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1940
    }/*function_dint_to_int*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1941
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1942
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1943
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1944
 *DINT_TO_LINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1945
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1946
    case function_dint_to_lint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1947
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1948
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1949
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1950
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1951
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1952
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1953
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1954
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1955
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1956
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1957
            if(search_expression_type->is_same_type(&search_constant_type_c::dint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1958
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1959
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1960
                symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1961
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1962
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1963
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1964
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1965
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1966
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1967
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1968
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1969
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1970
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1971
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1972
    }/*function_dint_to_lint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1973
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1974
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1975
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1976
 *DINT_TO_USINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1977
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1978
    case function_dint_to_usint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1979
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1980
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1981
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1982
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1983
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1984
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1985
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1986
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1987
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1988
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  1989
            if(search_expression_type->is_same_type(&search_constant_type_c::dint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1990
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1991
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1992
                symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1993
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1994
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1995
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1996
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1997
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1998
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  1999
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2000
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2001
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2002
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2003
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2004
    }/*function_dint_to_usint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2005
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2006
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2007
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2008
 *DINT_TO_UINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2009
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2010
    case function_dint_to_uint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2011
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2012
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2013
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2014
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2015
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2016
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2017
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2018
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2019
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2020
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2021
            if(search_expression_type->is_same_type(&search_constant_type_c::dint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2022
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2023
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2024
                symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2025
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2026
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2027
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2028
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2029
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2030
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2031
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2032
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2033
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2034
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2035
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2036
    }/*function_dint_to_uint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2037
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2038
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2039
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2040
 *DINT_TO_UDINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2041
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2042
    case function_dint_to_udint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2043
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2044
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2045
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2046
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2047
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2048
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2049
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2050
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2051
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2052
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2053
            if(search_expression_type->is_same_type(&search_constant_type_c::dint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2054
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2055
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2056
                symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2057
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2058
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2059
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2060
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2061
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2062
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2063
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2064
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2065
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2066
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2067
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2068
    }/*function_dint_to_udint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2069
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2070
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2071
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2072
 *DINT_TO_ULINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2073
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2074
    case function_dint_to_ulint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2075
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2076
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2077
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2078
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2079
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2080
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2081
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2082
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2083
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2084
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2085
            if(search_expression_type->is_same_type(&search_constant_type_c::dint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2086
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2087
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2088
                symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2089
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2090
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2091
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2092
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2093
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2094
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2095
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2096
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2097
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2098
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2099
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2100
    }/*function_dint_to_ulint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2101
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2102
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2103
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2104
 *DINT_TO_REAL
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2105
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2106
    case function_dint_to_real :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2107
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2108
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2109
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2110
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2111
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2112
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2113
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2114
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2115
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2116
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2117
            if(search_expression_type->is_same_type(&search_constant_type_c::dint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2118
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2119
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2120
                symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2121
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2122
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2123
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2124
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2125
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2126
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2127
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2128
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2129
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2130
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2131
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2132
    }/*function_dint_to_real*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2133
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2134
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2135
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2136
 *DINT_TO_LREAL
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2137
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2138
    case function_dint_to_lreal :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2139
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2140
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2141
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2142
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2143
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2144
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2145
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2146
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2147
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2148
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2149
            if(search_expression_type->is_same_type(&search_constant_type_c::dint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2150
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2151
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2152
                symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2153
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2154
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2155
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2156
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2157
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2158
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2159
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2160
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2161
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2162
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2163
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2164
    }/*function_dint_to_lreal*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2165
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2166
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2167
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2168
 *DINT_TO_TIME
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2169
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2170
    case function_dint_to_time :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2171
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2172
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2173
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2174
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2175
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2176
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2177
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2178
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2179
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2180
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2181
            if(search_expression_type->is_same_type(&search_constant_type_c::dint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2182
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2183
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2184
                symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2185
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2186
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2187
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2188
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2189
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2190
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2191
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2192
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2193
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2194
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2195
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2196
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2197
    }/*function_dint_to_time*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2198
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2199
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2200
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2201
 *DINT_TO_DATE
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2202
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2203
    case function_dint_to_date :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2204
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2205
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2206
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2207
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2208
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2209
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2210
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2211
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2212
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2213
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2214
            if(search_expression_type->is_same_type(&search_constant_type_c::dint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2215
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2216
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2217
                symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2218
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2219
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2220
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2221
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2222
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2223
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2224
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2225
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2226
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2227
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2228
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2229
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2230
    }/*function_dint_to_date*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2231
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2232
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2233
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2234
 *DINT_TO_TOD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2235
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2236
    case function_dint_to_tod :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2237
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2238
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2239
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2240
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2241
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2242
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2243
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2244
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2245
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2246
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2247
            if(search_expression_type->is_same_type(&search_constant_type_c::dint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2248
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2249
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2250
                symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2251
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2252
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2253
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2254
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2255
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2256
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2257
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2258
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2259
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2260
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2261
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2262
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2263
    }/*function_dint_to_tod*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2264
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2265
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2266
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2267
 *DINT_TO_DT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2268
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2269
    case function_dint_to_dt :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2270
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2271
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2272
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2273
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2274
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2275
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2276
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2277
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2278
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2279
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2280
            if(search_expression_type->is_same_type(&search_constant_type_c::dint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2281
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2282
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2283
                symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2284
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2285
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2286
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2287
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2288
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2289
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2290
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2291
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2292
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2293
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2294
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2295
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2296
    }/*function_dint_to_dt*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2297
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2298
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2299
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2300
 *DINT_TO_STRING
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2301
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2302
    case function_dint_to_string :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2303
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2304
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2305
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2306
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2307
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2308
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2309
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2310
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2311
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2312
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2313
            if(search_expression_type->is_same_type(&search_constant_type_c::dint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2314
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2315
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2316
                symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2317
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2318
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2319
                s4o.print(")__sint_to_string(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2320
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2321
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2322
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2323
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2324
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2325
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2326
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2327
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2328
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2329
    }/*function_dint_to_string*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2330
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2331
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2332
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2333
 *DINT_TO_BYTE
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2334
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2335
    case function_dint_to_byte :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2336
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2337
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2338
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2339
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2340
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2341
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2342
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2343
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2344
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2345
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2346
            if(search_expression_type->is_same_type(&search_constant_type_c::dint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2347
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2348
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2349
                symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2350
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2351
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2352
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2353
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2354
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2355
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2356
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2357
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2358
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2359
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2360
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2361
    }/*function_dint_to_byte*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2362
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2363
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2364
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2365
 *DINT_TO_WORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2366
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2367
    case function_dint_to_word :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2368
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2369
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2370
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2371
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2372
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2373
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2374
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2375
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2376
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2377
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2378
            if(search_expression_type->is_same_type(&search_constant_type_c::dint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2379
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2380
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2381
                symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2382
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2383
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2384
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2385
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2386
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2387
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2388
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2389
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2390
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2391
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2392
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2393
    }/*function_dint_to_word*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2394
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2395
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2396
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2397
 *DINT_TO_DWORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2398
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2399
    case function_dint_to_dword :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2400
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2401
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2402
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2403
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2404
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2405
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2406
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2407
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2408
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2409
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2410
            if(search_expression_type->is_same_type(&search_constant_type_c::dint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2411
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2412
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2413
                symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2414
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2415
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2416
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2417
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2418
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2419
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2420
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2421
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2422
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2423
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2424
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2425
    }/*function_dint_to_dword*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2426
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2427
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2428
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2429
 *DINT_TO_LWORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2430
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2431
    case function_dint_to_lword :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2432
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2433
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2434
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2435
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2436
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2437
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2438
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2439
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2440
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2441
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2442
            if(search_expression_type->is_same_type(&search_constant_type_c::dint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2443
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2444
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2445
                symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2446
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2447
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2448
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2449
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2450
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2451
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2452
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2453
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2454
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2455
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2456
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2457
    }/*function_dint_to_lword*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2458
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2459
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2460
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2461
 *LINT_TO_BOOL
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2462
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2463
    case function_lint_to_bool :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2464
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2465
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2466
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2467
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2468
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2469
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2470
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2471
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2472
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2473
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2474
            if(search_expression_type->is_same_type(&search_constant_type_c::lint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2475
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2476
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2477
                symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2478
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2479
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2480
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2481
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2482
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2483
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2484
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2485
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2486
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2487
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2488
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2489
    }/*function_lint_to_bool*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2490
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2491
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2492
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2493
 *LINT_TO_SINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2494
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2495
    case function_lint_to_sint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2496
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2497
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2498
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2499
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2500
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2501
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2502
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2503
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2504
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2505
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2506
            if(search_expression_type->is_same_type(&search_constant_type_c::lint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2507
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2508
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2509
                symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2510
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2511
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2512
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2513
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2514
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2515
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2516
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2517
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2518
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2519
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2520
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2521
    }/*function_lint_to_sint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2522
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2523
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2524
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2525
 *LINT_TO_INT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2526
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2527
    case function_lint_to_int :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2528
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2529
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2530
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2531
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2532
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2533
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2534
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2535
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2536
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2537
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2538
            if(search_expression_type->is_same_type(&search_constant_type_c::lint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2539
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2540
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2541
                symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2542
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2543
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2544
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2545
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2546
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2547
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2548
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2549
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2550
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2551
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2552
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2553
    }/*function_lint_to_int*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2554
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2555
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2556
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2557
 *LINT_TO_DINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2558
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2559
    case function_lint_to_dint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2560
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2561
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2562
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2563
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2564
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2565
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2566
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2567
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2568
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2569
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2570
            if(search_expression_type->is_same_type(&search_constant_type_c::lint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2571
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2572
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2573
                symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2574
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2575
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2576
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2577
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2578
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2579
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2580
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2581
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2582
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2583
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2584
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2585
    }/*function_lint_to_dint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2586
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2587
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2588
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2589
 *LINT_TO_USINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2590
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2591
    case function_lint_to_usint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2592
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2593
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2594
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2595
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2596
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2597
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2598
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2599
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2600
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2601
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2602
            if(search_expression_type->is_same_type(&search_constant_type_c::lint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2603
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2604
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2605
                symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2606
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2607
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2608
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2609
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2610
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2611
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2612
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2613
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2614
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2615
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2616
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2617
    }/*function_lint_to_usint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2618
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2619
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2620
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2621
 *LINT_TO_UINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2622
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2623
    case function_lint_to_uint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2624
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2625
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2626
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2627
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2628
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2629
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2630
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2631
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2632
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2633
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2634
            if(search_expression_type->is_same_type(&search_constant_type_c::lint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2635
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2636
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2637
                symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2638
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2639
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2640
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2641
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2642
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2643
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2644
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2645
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2646
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2647
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2648
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2649
    }/*function_lint_to_uint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2650
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2651
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2652
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2653
 *LINT_TO_UDINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2654
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2655
    case function_lint_to_udint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2656
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2657
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2658
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2659
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2660
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2661
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2662
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2663
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2664
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2665
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2666
            if(search_expression_type->is_same_type(&search_constant_type_c::lint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2667
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2668
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2669
                symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2670
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2671
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2672
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2673
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2674
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2675
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2676
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2677
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2678
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2679
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2680
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2681
    }/*function_lint_to_udint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2682
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2683
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2684
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2685
 *LINT_TO_ULINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2686
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2687
    case function_lint_to_ulint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2688
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2689
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2690
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2691
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2692
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2693
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2694
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2695
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2696
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2697
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2698
            if(search_expression_type->is_same_type(&search_constant_type_c::lint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2699
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2700
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2701
                symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2702
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2703
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2704
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2705
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2706
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2707
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2708
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2709
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2710
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2711
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2712
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2713
    }/*function_lint_to_ulint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2714
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2715
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2716
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2717
 *LINT_TO_REAL
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2718
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2719
    case function_lint_to_real :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2720
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2721
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2722
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2723
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2724
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2725
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2726
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2727
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2728
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2729
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2730
            if(search_expression_type->is_same_type(&search_constant_type_c::lint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2731
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2732
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2733
                symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2734
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2735
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2736
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2737
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2738
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2739
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2740
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2741
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2742
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2743
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2744
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2745
    }/*function_lint_to_real*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2746
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2747
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2748
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2749
 *LINT_TO_LREAL
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2750
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2751
    case function_lint_to_lreal :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2752
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2753
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2754
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2755
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2756
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2757
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2758
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2759
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2760
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2761
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2762
            if(search_expression_type->is_same_type(&search_constant_type_c::lint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2763
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2764
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2765
                symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2766
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2767
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2768
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2769
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2770
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2771
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2772
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2773
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2774
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2775
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2776
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2777
    }/*function_lint_to_lreal*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2778
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2779
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2780
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2781
 *LINT_TO_TIME
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2782
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2783
    case function_lint_to_time :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2784
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2785
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2786
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2787
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2788
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2789
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2790
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2791
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2792
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2793
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2794
            if(search_expression_type->is_same_type(&search_constant_type_c::lint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2795
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2796
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2797
                symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2798
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2799
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2800
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2801
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2802
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2803
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2804
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2805
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2806
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2807
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2808
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2809
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2810
    }/*function_lint_to_time*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2811
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2812
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2813
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2814
 *LINT_TO_DATE
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2815
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2816
    case function_lint_to_date :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2817
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2818
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2819
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2820
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2821
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2822
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2823
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2824
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2825
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2826
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2827
            if(search_expression_type->is_same_type(&search_constant_type_c::lint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2828
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2829
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2830
                symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2831
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2832
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2833
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2834
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2835
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2836
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2837
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2838
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2839
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2840
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2841
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2842
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2843
    }/*function_lint_to_date*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2844
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2845
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2846
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2847
 *LINT_TO_TOD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2848
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2849
    case function_lint_to_tod :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2850
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2851
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2852
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2853
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2854
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2855
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2856
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2857
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2858
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2859
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2860
            if(search_expression_type->is_same_type(&search_constant_type_c::lint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2861
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2862
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2863
                symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2864
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2865
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2866
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2867
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2868
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2869
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2870
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2871
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2872
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2873
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2874
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2875
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2876
    }/*function_lint_to_tod*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2877
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2878
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2879
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2880
 *LINT_TO_DT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2881
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2882
    case function_lint_to_dt :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2883
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2884
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2885
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2886
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2887
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2888
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2889
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2890
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2891
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2892
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2893
            if(search_expression_type->is_same_type(&search_constant_type_c::lint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2894
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2895
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2896
                symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2897
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2898
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2899
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2900
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2901
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2902
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2903
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2904
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2905
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2906
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2907
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2908
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2909
    }/*function_lint_to_dt*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2910
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2911
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2912
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2913
 *LINT_TO_STRING
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2914
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2915
    case function_lint_to_string :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2916
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2917
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2918
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2919
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2920
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2921
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2922
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2923
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2924
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2925
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2926
            if(search_expression_type->is_same_type(&search_constant_type_c::lint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2927
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2928
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2929
                symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2930
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2931
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2932
                s4o.print(")__sint_to_string(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2933
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2934
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2935
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2936
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2937
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2938
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2939
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2940
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2941
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2942
    }/*function_lint_to_string*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2943
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2944
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2945
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2946
 *LINT_TO_BYTE
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2947
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2948
    case function_lint_to_byte :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2949
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2950
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2951
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2952
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2953
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2954
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2955
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2956
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2957
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2958
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2959
            if(search_expression_type->is_same_type(&search_constant_type_c::lint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2960
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2961
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2962
                symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2963
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2964
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2965
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2966
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2967
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2968
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2969
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2970
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2971
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2972
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2973
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2974
    }/*function_lint_to_byte*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2975
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2976
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2977
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2978
 *LINT_TO_WORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2979
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2980
    case function_lint_to_word :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2981
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2982
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2983
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2984
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2985
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2986
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2987
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2988
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2989
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2990
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  2991
            if(search_expression_type->is_same_type(&search_constant_type_c::lint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2992
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2993
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2994
                symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2995
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2996
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2997
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2998
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  2999
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3000
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3001
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3002
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3003
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3004
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3005
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3006
    }/*function_lint_to_word*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3007
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3008
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3009
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3010
 *LINT_TO_DWORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3011
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3012
    case function_lint_to_dword :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3013
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3014
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3015
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3016
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3017
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3018
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3019
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3020
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3021
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3022
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3023
            if(search_expression_type->is_same_type(&search_constant_type_c::lint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3024
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3025
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3026
                symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3027
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3028
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3029
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3030
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3031
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3032
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3033
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3034
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3035
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3036
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3037
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3038
    }/*function_lint_to_dword*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3039
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3040
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3041
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3042
 *LINT_TO_LWORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3043
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3044
    case function_lint_to_lword :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3045
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3046
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3047
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3048
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3049
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3050
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3051
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3052
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3053
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3054
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3055
            if(search_expression_type->is_same_type(&search_constant_type_c::lint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3056
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3057
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3058
                symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3059
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3060
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3061
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3062
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3063
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3064
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3065
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3066
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3067
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3068
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3069
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3070
    }/*function_lint_to_lword*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3071
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3072
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3073
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3074
 *USINT_TO_BOOL
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3075
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3076
    case function_usint_to_bool :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3077
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3078
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3079
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3080
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3081
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3082
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3083
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3084
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3085
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3086
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3087
            if(search_expression_type->is_same_type(&search_constant_type_c::usint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3088
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3089
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3090
                symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3091
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3092
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3093
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3094
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3095
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3096
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3097
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3098
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3099
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3100
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3101
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3102
    }/*function_usint_to_bool*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3103
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3104
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3105
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3106
 *USINT_TO_SINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3107
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3108
    case function_usint_to_sint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3109
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3110
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3111
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3112
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3113
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3114
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3115
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3116
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3117
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3118
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3119
            if(search_expression_type->is_same_type(&search_constant_type_c::usint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3120
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3121
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3122
                symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3123
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3124
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3125
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3126
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3127
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3128
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3129
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3130
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3131
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3132
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3133
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3134
    }/*function_usint_to_sint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3135
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3136
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3137
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3138
 *USINT_TO_INT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3139
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3140
    case function_usint_to_int :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3141
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3142
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3143
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3144
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3145
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3146
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3147
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3148
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3149
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3150
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3151
            if(search_expression_type->is_same_type(&search_constant_type_c::usint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3152
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3153
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3154
                symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3155
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3156
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3157
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3158
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3159
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3160
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3161
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3162
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3163
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3164
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3165
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3166
    }/*function_usint_to_int*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3167
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3168
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3169
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3170
 *USINT_TO_DINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3171
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3172
    case function_usint_to_dint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3173
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3174
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3175
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3176
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3177
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3178
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3179
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3180
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3181
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3182
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3183
            if(search_expression_type->is_same_type(&search_constant_type_c::usint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3184
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3185
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3186
                symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3187
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3188
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3189
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3190
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3191
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3192
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3193
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3194
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3195
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3196
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3197
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3198
    }/*function_usint_to_dint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3199
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3200
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3201
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3202
 *USINT_TO_LINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3203
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3204
    case function_usint_to_lint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3205
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3206
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3207
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3208
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3209
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3210
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3211
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3212
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3213
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3214
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3215
            if(search_expression_type->is_same_type(&search_constant_type_c::usint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3216
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3217
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3218
                symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3219
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3220
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3221
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3222
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3223
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3224
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3225
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3226
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3227
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3228
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3229
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3230
    }/*function_usint_to_lint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3231
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3232
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3233
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3234
 *USINT_TO_UINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3235
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3236
    case function_usint_to_uint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3237
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3238
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3239
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3240
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3241
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3242
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3243
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3244
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3245
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3246
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3247
            if(search_expression_type->is_same_type(&search_constant_type_c::usint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3248
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3249
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3250
                symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3251
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3252
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3253
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3254
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3255
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3256
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3257
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3258
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3259
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3260
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3261
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3262
    }/*function_usint_to_uint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3263
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3264
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3265
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3266
 *USINT_TO_UDINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3267
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3268
    case function_usint_to_udint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3269
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3270
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3271
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3272
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3273
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3274
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3275
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3276
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3277
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3278
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3279
            if(search_expression_type->is_same_type(&search_constant_type_c::usint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3280
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3281
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3282
                symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3283
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3284
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3285
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3286
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3287
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3288
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3289
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3290
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3291
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3292
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3293
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3294
    }/*function_usint_to_udint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3295
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3296
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3297
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3298
 *USINT_TO_ULINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3299
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3300
    case function_usint_to_ulint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3301
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3302
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3303
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3304
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3305
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3306
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3307
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3308
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3309
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3310
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3311
            if(search_expression_type->is_same_type(&search_constant_type_c::usint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3312
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3313
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3314
                symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3315
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3316
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3317
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3318
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3319
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3320
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3321
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3322
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3323
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3324
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3325
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3326
    }/*function_usint_to_ulint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3327
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3328
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3329
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3330
 *USINT_TO_REAL
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3331
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3332
    case function_usint_to_real :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3333
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3334
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3335
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3336
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3337
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3338
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3339
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3340
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3341
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3342
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3343
            if(search_expression_type->is_same_type(&search_constant_type_c::usint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3344
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3345
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3346
                symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3347
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3348
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3349
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3350
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3351
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3352
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3353
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3354
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3355
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3356
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3357
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3358
    }/*function_usint_to_real*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3359
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3360
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3361
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3362
 *USINT_TO_LREAL
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3363
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3364
    case function_usint_to_lreal :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3365
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3366
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3367
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3368
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3369
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3370
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3371
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3372
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3373
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3374
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3375
            if(search_expression_type->is_same_type(&search_constant_type_c::usint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3376
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3377
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3378
                symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3379
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3380
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3381
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3382
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3383
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3384
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3385
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3386
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3387
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3388
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3389
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3390
    }/*function_usint_to_lreal*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3391
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3392
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3393
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3394
 *USINT_TO_TIME
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3395
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3396
    case function_usint_to_time :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3397
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3398
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3399
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3400
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3401
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3402
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3403
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3404
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3405
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3406
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3407
            if(search_expression_type->is_same_type(&search_constant_type_c::usint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3408
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3409
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3410
                symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3411
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3412
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3413
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3414
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3415
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3416
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3417
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3418
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3419
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3420
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3421
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3422
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3423
    }/*function_usint_to_time*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3424
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3425
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3426
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3427
 *USINT_TO_DATE
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3428
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3429
    case function_usint_to_date :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3430
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3431
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3432
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3433
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3434
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3435
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3436
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3437
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3438
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3439
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3440
            if(search_expression_type->is_same_type(&search_constant_type_c::usint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3441
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3442
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3443
                symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3444
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3445
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3446
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3447
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3448
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3449
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3450
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3451
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3452
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3453
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3454
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3455
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3456
    }/*function_usint_to_date*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3457
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3458
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3459
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3460
 *USINT_TO_TOD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3461
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3462
    case function_usint_to_tod :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3463
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3464
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3465
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3466
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3467
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3468
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3469
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3470
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3471
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3472
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3473
            if(search_expression_type->is_same_type(&search_constant_type_c::usint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3474
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3475
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3476
                symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3477
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3478
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3479
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3480
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3481
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3482
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3483
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3484
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3485
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3486
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3487
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3488
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3489
    }/*function_usint_to_tod*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3490
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3491
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3492
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3493
 *USINT_TO_DT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3494
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3495
    case function_usint_to_dt :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3496
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3497
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3498
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3499
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3500
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3501
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3502
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3503
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3504
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3505
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3506
            if(search_expression_type->is_same_type(&search_constant_type_c::usint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3507
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3508
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3509
                symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3510
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3511
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3512
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3513
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3514
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3515
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3516
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3517
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3518
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3519
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3520
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3521
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3522
    }/*function_usint_to_dt*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3523
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3524
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3525
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3526
 *USINT_TO_STRING
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3527
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3528
    case function_usint_to_string :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3529
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3530
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3531
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3532
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3533
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3534
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3535
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3536
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3537
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3538
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3539
            if(search_expression_type->is_same_type(&search_constant_type_c::usint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3540
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3541
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3542
                symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3543
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3544
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3545
                s4o.print(")__uint_to_string(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3546
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3547
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3548
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3549
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3550
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3551
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3552
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3553
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3554
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3555
    }/*function_usint_to_string*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3556
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3557
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3558
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3559
 *USINT_TO_BYTE
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3560
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3561
    case function_usint_to_byte :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3562
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3563
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3564
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3565
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3566
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3567
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3568
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3569
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3570
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3571
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3572
            if(search_expression_type->is_same_type(&search_constant_type_c::usint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3573
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3574
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3575
                symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3576
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3577
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3578
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3579
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3580
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3581
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3582
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3583
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3584
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3585
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3586
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3587
    }/*function_usint_to_byte*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3588
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3589
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3590
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3591
 *USINT_TO_WORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3592
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3593
    case function_usint_to_word :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3594
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3595
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3596
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3597
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3598
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3599
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3600
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3601
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3602
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3603
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3604
            if(search_expression_type->is_same_type(&search_constant_type_c::usint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3605
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3606
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3607
                symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3608
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3609
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3610
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3611
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3612
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3613
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3614
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3615
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3616
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3617
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3618
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3619
    }/*function_usint_to_word*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3620
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3621
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3622
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3623
 *USINT_TO_DWORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3624
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3625
    case function_usint_to_dword :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3626
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3627
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3628
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3629
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3630
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3631
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3632
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3633
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3634
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3635
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3636
            if(search_expression_type->is_same_type(&search_constant_type_c::usint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3637
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3638
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3639
                symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3640
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3641
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3642
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3643
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3644
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3645
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3646
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3647
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3648
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3649
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3650
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3651
    }/*function_usint_to_dword*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3652
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3653
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3654
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3655
 *USINT_TO_LWORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3656
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3657
    case function_usint_to_lword :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3658
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3659
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3660
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3661
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3662
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3663
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3664
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3665
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3666
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3667
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3668
            if(search_expression_type->is_same_type(&search_constant_type_c::usint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3669
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3670
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3671
                symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3672
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3673
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3674
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3675
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3676
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3677
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3678
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3679
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3680
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3681
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3682
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3683
    }/*function_usint_to_lword*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3684
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3685
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3686
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3687
 *UINT_TO_BOOL
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3688
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3689
    case function_uint_to_bool :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3690
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3691
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3692
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3693
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3694
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3695
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3696
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3697
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3698
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3699
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3700
            if(search_expression_type->is_same_type(&search_constant_type_c::uint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3701
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3702
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3703
                symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3704
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3705
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3706
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3707
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3708
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3709
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3710
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3711
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3712
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3713
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3714
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3715
    }/*function_uint_to_bool*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3716
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3717
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3718
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3719
 *UINT_TO_SINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3720
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3721
    case function_uint_to_sint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3722
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3723
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3724
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3725
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3726
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3727
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3728
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3729
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3730
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3731
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3732
            if(search_expression_type->is_same_type(&search_constant_type_c::uint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3733
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3734
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3735
                symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3736
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3737
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3738
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3739
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3740
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3741
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3742
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3743
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3744
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3745
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3746
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3747
    }/*function_uint_to_sint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3748
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3749
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3750
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3751
 *UINT_TO_INT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3752
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3753
    case function_uint_to_int :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3754
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3755
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3756
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3757
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3758
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3759
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3760
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3761
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3762
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3763
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3764
            if(search_expression_type->is_same_type(&search_constant_type_c::uint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3765
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3766
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3767
                symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3768
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3769
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3770
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3771
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3772
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3773
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3774
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3775
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3776
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3777
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3778
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3779
    }/*function_uint_to_int*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3780
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3781
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3782
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3783
 *UINT_TO_DINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3784
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3785
    case function_uint_to_dint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3786
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3787
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3788
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3789
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3790
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3791
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3792
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3793
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3794
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3795
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3796
            if(search_expression_type->is_same_type(&search_constant_type_c::uint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3797
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3798
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3799
                symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3800
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3801
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3802
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3803
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3804
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3805
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3806
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3807
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3808
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3809
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3810
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3811
    }/*function_uint_to_dint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3812
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3813
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3814
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3815
 *UINT_TO_LINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3816
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3817
    case function_uint_to_lint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3818
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3819
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3820
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3821
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3822
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3823
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3824
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3825
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3826
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3827
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3828
            if(search_expression_type->is_same_type(&search_constant_type_c::uint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3829
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3830
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3831
                symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3832
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3833
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3834
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3835
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3836
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3837
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3838
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3839
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3840
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3841
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3842
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3843
    }/*function_uint_to_lint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3844
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3845
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3846
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3847
 *UINT_TO_USINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3848
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3849
    case function_uint_to_usint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3850
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3851
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3852
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3853
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3854
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3855
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3856
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3857
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3858
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3859
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3860
            if(search_expression_type->is_same_type(&search_constant_type_c::uint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3861
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3862
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3863
                symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3864
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3865
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3866
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3867
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3868
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3869
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3870
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3871
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3872
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3873
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3874
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3875
    }/*function_uint_to_usint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3876
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3877
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3878
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3879
 *UINT_TO_UDINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3880
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3881
    case function_uint_to_udint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3882
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3883
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3884
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3885
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3886
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3887
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3888
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3889
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3890
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3891
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3892
            if(search_expression_type->is_same_type(&search_constant_type_c::uint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3893
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3894
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3895
                symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3896
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3897
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3898
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3899
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3900
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3901
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3902
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3903
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3904
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3905
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3906
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3907
    }/*function_uint_to_udint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3908
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3909
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3910
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3911
 *UINT_TO_ULINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3912
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3913
    case function_uint_to_ulint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3914
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3915
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3916
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3917
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3918
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3919
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3920
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3921
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3922
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3923
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3924
            if(search_expression_type->is_same_type(&search_constant_type_c::uint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3925
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3926
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3927
                symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3928
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3929
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3930
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3931
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3932
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3933
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3934
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3935
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3936
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3937
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3938
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3939
    }/*function_uint_to_ulint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3940
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3941
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3942
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3943
 *UINT_TO_REAL
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3944
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3945
    case function_uint_to_real :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3946
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3947
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3948
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3949
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3950
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3951
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3952
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3953
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3954
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3955
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3956
            if(search_expression_type->is_same_type(&search_constant_type_c::uint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3957
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3958
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3959
                symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3960
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3961
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3962
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3963
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3964
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3965
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3966
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3967
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3968
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3969
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3970
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3971
    }/*function_uint_to_real*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3972
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3973
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3974
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3975
 *UINT_TO_LREAL
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3976
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3977
    case function_uint_to_lreal :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3978
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3979
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3980
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3981
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3982
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3983
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3984
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3985
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3986
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3987
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  3988
            if(search_expression_type->is_same_type(&search_constant_type_c::uint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3989
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3990
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3991
                symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3992
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3993
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3994
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3995
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3996
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3997
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3998
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  3999
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4000
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4001
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4002
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4003
    }/*function_uint_to_lreal*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4004
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4005
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4006
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4007
 *UINT_TO_TIME
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4008
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4009
    case function_uint_to_time :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4010
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4011
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4012
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4013
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4014
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4015
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4016
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4017
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4018
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4019
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4020
            if(search_expression_type->is_same_type(&search_constant_type_c::uint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4021
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4022
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4023
                symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4024
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4025
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4026
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4027
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4028
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4029
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4030
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4031
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4032
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4033
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4034
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4035
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4036
    }/*function_uint_to_time*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4037
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4038
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4039
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4040
 *UINT_TO_DATE
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4041
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4042
    case function_uint_to_date :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4043
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4044
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4045
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4046
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4047
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4048
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4049
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4050
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4051
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4052
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4053
            if(search_expression_type->is_same_type(&search_constant_type_c::uint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4054
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4055
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4056
                symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4057
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4058
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4059
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4060
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4061
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4062
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4063
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4064
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4065
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4066
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4067
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4068
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4069
    }/*function_uint_to_date*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4070
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4071
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4072
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4073
 *UINT_TO_TOD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4074
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4075
    case function_uint_to_tod :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4076
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4077
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4078
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4079
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4080
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4081
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4082
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4083
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4084
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4085
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4086
            if(search_expression_type->is_same_type(&search_constant_type_c::uint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4087
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4088
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4089
                symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4090
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4091
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4092
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4093
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4094
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4095
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4096
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4097
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4098
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4099
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4100
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4101
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4102
    }/*function_uint_to_tod*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4103
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4104
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4105
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4106
 *UINT_TO_DT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4107
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4108
    case function_uint_to_dt :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4109
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4110
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4111
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4112
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4113
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4114
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4115
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4116
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4117
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4118
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4119
            if(search_expression_type->is_same_type(&search_constant_type_c::uint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4120
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4121
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4122
                symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4123
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4124
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4125
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4126
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4127
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4128
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4129
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4130
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4131
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4132
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4133
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4134
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4135
    }/*function_uint_to_dt*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4136
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4137
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4138
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4139
 *UINT_TO_STRING
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4140
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4141
    case function_uint_to_string :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4142
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4143
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4144
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4145
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4146
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4147
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4148
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4149
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4150
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4151
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4152
            if(search_expression_type->is_same_type(&search_constant_type_c::uint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4153
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4154
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4155
                symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4156
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4157
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4158
                s4o.print(")__uint_to_string(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4159
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4160
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4161
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4162
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4163
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4164
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4165
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4166
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4167
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4168
    }/*function_uint_to_string*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4169
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4170
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4171
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4172
 *UINT_TO_BYTE
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4173
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4174
    case function_uint_to_byte :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4175
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4176
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4177
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4178
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4179
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4180
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4181
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4182
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4183
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4184
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4185
            if(search_expression_type->is_same_type(&search_constant_type_c::uint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4186
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4187
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4188
                symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4189
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4190
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4191
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4192
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4193
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4194
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4195
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4196
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4197
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4198
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4199
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4200
    }/*function_uint_to_byte*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4201
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4202
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4203
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4204
 *UINT_TO_WORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4205
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4206
    case function_uint_to_word :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4207
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4208
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4209
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4210
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4211
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4212
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4213
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4214
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4215
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4216
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4217
            if(search_expression_type->is_same_type(&search_constant_type_c::uint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4218
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4219
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4220
                symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4221
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4222
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4223
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4224
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4225
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4226
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4227
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4228
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4229
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4230
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4231
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4232
    }/*function_uint_to_word*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4233
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4234
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4235
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4236
 *UINT_TO_DWORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4237
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4238
    case function_uint_to_dword :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4239
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4240
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4241
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4242
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4243
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4244
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4245
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4246
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4247
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4248
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4249
            if(search_expression_type->is_same_type(&search_constant_type_c::uint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4250
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4251
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4252
                symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4253
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4254
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4255
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4256
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4257
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4258
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4259
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4260
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4261
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4262
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4263
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4264
    }/*function_uint_to_dword*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4265
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4266
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4267
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4268
 *UINT_TO_LWORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4269
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4270
    case function_uint_to_lword :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4271
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4272
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4273
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4274
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4275
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4276
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4277
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4278
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4279
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4280
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4281
            if(search_expression_type->is_same_type(&search_constant_type_c::uint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4282
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4283
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4284
                symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4285
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4286
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4287
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4288
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4289
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4290
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4291
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4292
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4293
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4294
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4295
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4296
    }/*function_uint_to_lword*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4297
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4298
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4299
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4300
 *UDINT_TO_BOOL
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4301
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4302
    case function_udint_to_bool :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4303
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4304
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4305
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4306
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4307
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4308
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4309
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4310
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4311
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4312
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4313
            if(search_expression_type->is_same_type(&search_constant_type_c::udint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4314
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4315
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4316
                symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4317
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4318
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4319
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4320
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4321
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4322
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4323
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4324
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4325
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4326
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4327
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4328
    }/*function_udint_to_bool*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4329
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4330
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4331
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4332
 *UDINT_TO_SINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4333
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4334
    case function_udint_to_sint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4335
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4336
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4337
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4338
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4339
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4340
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4341
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4342
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4343
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4344
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4345
            if(search_expression_type->is_same_type(&search_constant_type_c::udint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4346
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4347
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4348
                symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4349
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4350
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4351
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4352
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4353
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4354
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4355
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4356
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4357
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4358
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4359
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4360
    }/*function_udint_to_sint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4361
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4362
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4363
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4364
 *UDINT_TO_INT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4365
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4366
    case function_udint_to_int :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4367
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4368
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4369
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4370
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4371
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4372
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4373
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4374
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4375
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4376
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4377
            if(search_expression_type->is_same_type(&search_constant_type_c::udint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4378
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4379
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4380
                symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4381
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4382
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4383
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4384
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4385
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4386
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4387
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4388
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4389
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4390
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4391
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4392
    }/*function_udint_to_int*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4393
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4394
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4395
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4396
 *UDINT_TO_DINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4397
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4398
    case function_udint_to_dint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4399
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4400
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4401
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4402
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4403
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4404
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4405
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4406
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4407
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4408
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4409
            if(search_expression_type->is_same_type(&search_constant_type_c::udint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4410
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4411
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4412
                symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4413
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4414
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4415
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4416
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4417
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4418
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4419
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4420
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4421
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4422
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4423
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4424
    }/*function_udint_to_dint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4425
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4426
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4427
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4428
 *UDINT_TO_LINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4429
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4430
    case function_udint_to_lint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4431
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4432
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4433
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4434
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4435
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4436
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4437
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4438
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4439
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4440
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4441
            if(search_expression_type->is_same_type(&search_constant_type_c::udint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4442
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4443
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4444
                symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4445
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4446
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4447
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4448
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4449
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4450
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4451
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4452
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4453
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4454
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4455
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4456
    }/*function_udint_to_lint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4457
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4458
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4459
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4460
 *UDINT_TO_USINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4461
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4462
    case function_udint_to_usint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4463
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4464
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4465
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4466
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4467
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4468
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4469
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4470
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4471
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4472
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4473
            if(search_expression_type->is_same_type(&search_constant_type_c::udint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4474
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4475
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4476
                symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4477
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4478
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4479
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4480
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4481
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4482
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4483
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4484
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4485
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4486
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4487
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4488
    }/*function_udint_to_usint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4489
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4490
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4491
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4492
 *UDINT_TO_UINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4493
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4494
    case function_udint_to_uint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4495
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4496
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4497
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4498
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4499
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4500
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4501
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4502
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4503
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4504
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4505
            if(search_expression_type->is_same_type(&search_constant_type_c::udint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4506
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4507
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4508
                symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4509
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4510
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4511
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4512
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4513
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4514
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4515
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4516
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4517
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4518
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4519
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4520
    }/*function_udint_to_uint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4521
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4522
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4523
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4524
 *UDINT_TO_ULINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4525
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4526
    case function_udint_to_ulint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4527
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4528
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4529
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4530
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4531
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4532
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4533
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4534
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4535
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4536
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4537
            if(search_expression_type->is_same_type(&search_constant_type_c::udint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4538
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4539
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4540
                symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4541
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4542
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4543
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4544
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4545
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4546
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4547
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4548
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4549
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4550
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4551
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4552
    }/*function_udint_to_ulint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4553
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4554
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4555
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4556
 *UDINT_TO_REAL
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4557
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4558
    case function_udint_to_real :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4559
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4560
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4561
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4562
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4563
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4564
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4565
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4566
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4567
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4568
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4569
            if(search_expression_type->is_same_type(&search_constant_type_c::udint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4570
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4571
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4572
                symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4573
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4574
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4575
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4576
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4577
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4578
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4579
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4580
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4581
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4582
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4583
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4584
    }/*function_udint_to_real*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4585
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4586
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4587
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4588
 *UDINT_TO_LREAL
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4589
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4590
    case function_udint_to_lreal :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4591
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4592
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4593
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4594
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4595
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4596
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4597
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4598
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4599
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4600
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4601
            if(search_expression_type->is_same_type(&search_constant_type_c::udint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4602
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4603
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4604
                symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4605
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4606
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4607
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4608
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4609
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4610
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4611
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4612
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4613
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4614
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4615
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4616
    }/*function_udint_to_lreal*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4617
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4618
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4619
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4620
 *UDINT_TO_TIME
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4621
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4622
    case function_udint_to_time :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4623
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4624
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4625
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4626
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4627
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4628
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4629
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4630
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4631
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4632
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4633
            if(search_expression_type->is_same_type(&search_constant_type_c::udint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4634
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4635
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4636
                symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4637
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4638
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4639
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4640
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4641
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4642
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4643
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4644
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4645
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4646
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4647
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4648
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4649
    }/*function_udint_to_time*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4650
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4651
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4652
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4653
 *UDINT_TO_DATE
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4654
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4655
    case function_udint_to_date :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4656
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4657
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4658
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4659
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4660
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4661
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4662
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4663
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4664
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4665
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4666
            if(search_expression_type->is_same_type(&search_constant_type_c::udint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4667
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4668
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4669
                symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4670
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4671
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4672
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4673
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4674
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4675
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4676
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4677
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4678
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4679
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4680
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4681
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4682
    }/*function_udint_to_date*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4683
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4684
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4685
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4686
 *UDINT_TO_TOD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4687
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4688
    case function_udint_to_tod :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4689
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4690
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4691
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4692
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4693
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4694
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4695
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4696
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4697
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4698
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4699
            if(search_expression_type->is_same_type(&search_constant_type_c::udint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4700
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4701
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4702
                symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4703
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4704
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4705
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4706
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4707
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4708
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4709
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4710
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4711
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4712
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4713
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4714
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4715
    }/*function_udint_to_tod*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4716
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4717
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4718
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4719
 *UDINT_TO_DT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4720
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4721
    case function_udint_to_dt :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4722
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4723
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4724
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4725
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4726
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4727
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4728
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4729
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4730
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4731
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4732
            if(search_expression_type->is_same_type(&search_constant_type_c::udint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4733
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4734
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4735
                symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4736
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4737
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4738
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4739
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4740
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4741
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4742
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4743
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4744
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4745
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4746
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4747
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4748
    }/*function_udint_to_dt*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4749
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4750
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4751
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4752
 *UDINT_TO_STRING
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4753
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4754
    case function_udint_to_string :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4755
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4756
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4757
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4758
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4759
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4760
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4761
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4762
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4763
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4764
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4765
            if(search_expression_type->is_same_type(&search_constant_type_c::udint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4766
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4767
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4768
                symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4769
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4770
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4771
                s4o.print(")__uint_to_string(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4772
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4773
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4774
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4775
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4776
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4777
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4778
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4779
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4780
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4781
    }/*function_udint_to_string*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4782
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4783
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4784
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4785
 *UDINT_TO_BYTE
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4786
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4787
    case function_udint_to_byte :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4788
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4789
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4790
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4791
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4792
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4793
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4794
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4795
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4796
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4797
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4798
            if(search_expression_type->is_same_type(&search_constant_type_c::udint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4799
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4800
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4801
                symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4802
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4803
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4804
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4805
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4806
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4807
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4808
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4809
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4810
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4811
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4812
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4813
    }/*function_udint_to_byte*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4814
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4815
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4816
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4817
 *UDINT_TO_WORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4818
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4819
    case function_udint_to_word :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4820
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4821
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4822
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4823
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4824
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4825
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4826
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4827
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4828
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4829
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4830
            if(search_expression_type->is_same_type(&search_constant_type_c::udint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4831
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4832
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4833
                symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4834
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4835
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4836
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4837
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4838
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4839
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4840
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4841
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4842
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4843
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4844
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4845
    }/*function_udint_to_word*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4846
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4847
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4848
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4849
 *UDINT_TO_DWORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4850
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4851
    case function_udint_to_dword :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4852
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4853
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4854
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4855
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4856
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4857
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4858
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4859
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4860
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4861
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4862
            if(search_expression_type->is_same_type(&search_constant_type_c::udint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4863
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4864
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4865
                symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4866
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4867
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4868
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4869
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4870
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4871
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4872
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4873
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4874
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4875
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4876
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4877
    }/*function_udint_to_dword*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4878
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4879
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4880
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4881
 *UDINT_TO_LWORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4882
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4883
    case function_udint_to_lword :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4884
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4885
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4886
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4887
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4888
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4889
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4890
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4891
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4892
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4893
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4894
            if(search_expression_type->is_same_type(&search_constant_type_c::udint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4895
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4896
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4897
                symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4898
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4899
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4900
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4901
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4902
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4903
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4904
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4905
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4906
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4907
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4908
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4909
    }/*function_udint_to_lword*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4910
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4911
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4912
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4913
 *ULINT_TO_BOOL
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4914
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4915
    case function_ulint_to_bool :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4916
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4917
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4918
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4919
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4920
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4921
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4922
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4923
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4924
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4925
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4926
            if(search_expression_type->is_same_type(&search_constant_type_c::ulint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4927
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4928
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4929
                symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4930
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4931
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4932
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4933
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4934
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4935
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4936
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4937
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4938
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4939
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4940
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4941
    }/*function_ulint_to_bool*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4942
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4943
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4944
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4945
 *ULINT_TO_SINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4946
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4947
    case function_ulint_to_sint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4948
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4949
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4950
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4951
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4952
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4953
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4954
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4955
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4956
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4957
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4958
            if(search_expression_type->is_same_type(&search_constant_type_c::ulint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4959
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4960
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4961
                symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4962
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4963
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4964
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4965
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4966
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4967
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4968
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4969
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4970
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4971
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4972
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4973
    }/*function_ulint_to_sint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4974
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4975
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4976
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4977
 *ULINT_TO_INT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4978
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4979
    case function_ulint_to_int :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4980
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4981
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4982
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4983
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4984
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4985
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4986
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4987
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4988
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4989
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  4990
            if(search_expression_type->is_same_type(&search_constant_type_c::ulint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4991
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4992
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4993
                symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4994
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4995
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4996
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4997
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4998
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  4999
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5000
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5001
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5002
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5003
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5004
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5005
    }/*function_ulint_to_int*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5006
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5007
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5008
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5009
 *ULINT_TO_DINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5010
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5011
    case function_ulint_to_dint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5012
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5013
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5014
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5015
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5016
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5017
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5018
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5019
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5020
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5021
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5022
            if(search_expression_type->is_same_type(&search_constant_type_c::ulint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5023
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5024
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5025
                symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5026
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5027
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5028
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5029
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5030
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5031
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5032
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5033
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5034
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5035
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5036
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5037
    }/*function_ulint_to_dint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5038
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5039
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5040
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5041
 *ULINT_TO_LINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5042
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5043
    case function_ulint_to_lint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5044
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5045
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5046
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5047
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5048
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5049
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5050
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5051
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5052
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5053
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5054
            if(search_expression_type->is_same_type(&search_constant_type_c::ulint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5055
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5056
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5057
                symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5058
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5059
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5060
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5061
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5062
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5063
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5064
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5065
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5066
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5067
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5068
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5069
    }/*function_ulint_to_lint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5070
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5071
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5072
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5073
 *ULINT_TO_USINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5074
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5075
    case function_ulint_to_usint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5076
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5077
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5078
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5079
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5080
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5081
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5082
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5083
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5084
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5085
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5086
            if(search_expression_type->is_same_type(&search_constant_type_c::ulint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5087
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5088
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5089
                symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5090
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5091
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5092
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5093
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5094
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5095
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5096
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5097
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5098
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5099
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5100
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5101
    }/*function_ulint_to_usint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5102
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5103
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5104
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5105
 *ULINT_TO_UINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5106
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5107
    case function_ulint_to_uint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5108
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5109
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5110
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5111
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5112
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5113
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5114
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5115
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5116
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5117
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5118
            if(search_expression_type->is_same_type(&search_constant_type_c::ulint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5119
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5120
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5121
                symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5122
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5123
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5124
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5125
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5126
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5127
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5128
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5129
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5130
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5131
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5132
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5133
    }/*function_ulint_to_uint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5134
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5135
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5136
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5137
 *ULINT_TO_UDINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5138
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5139
    case function_ulint_to_udint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5140
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5141
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5142
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5143
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5144
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5145
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5146
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5147
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5148
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5149
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5150
            if(search_expression_type->is_same_type(&search_constant_type_c::ulint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5151
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5152
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5153
                symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5154
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5155
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5156
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5157
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5158
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5159
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5160
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5161
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5162
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5163
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5164
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5165
    }/*function_ulint_to_udint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5166
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5167
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5168
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5169
 *ULINT_TO_REAL
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5170
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5171
    case function_ulint_to_real :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5172
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5173
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5174
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5175
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5176
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5177
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5178
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5179
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5180
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5181
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5182
            if(search_expression_type->is_same_type(&search_constant_type_c::ulint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5183
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5184
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5185
                symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5186
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5187
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5188
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5189
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5190
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5191
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5192
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5193
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5194
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5195
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5196
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5197
    }/*function_ulint_to_real*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5198
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5199
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5200
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5201
 *ULINT_TO_LREAL
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5202
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5203
    case function_ulint_to_lreal :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5204
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5205
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5206
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5207
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5208
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5209
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5210
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5211
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5212
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5213
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5214
            if(search_expression_type->is_same_type(&search_constant_type_c::ulint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5215
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5216
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5217
                symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5218
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5219
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5220
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5221
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5222
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5223
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5224
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5225
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5226
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5227
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5228
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5229
    }/*function_ulint_to_lreal*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5230
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5231
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5232
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5233
 *ULINT_TO_TIME
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5234
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5235
    case function_ulint_to_time :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5236
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5237
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5238
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5239
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5240
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5241
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5242
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5243
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5244
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5245
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5246
            if(search_expression_type->is_same_type(&search_constant_type_c::ulint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5247
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5248
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5249
                symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5250
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5251
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5252
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5253
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5254
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5255
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5256
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5257
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5258
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5259
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5260
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5261
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5262
    }/*function_ulint_to_time*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5263
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5264
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5265
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5266
 *ULINT_TO_DATE
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5267
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5268
    case function_ulint_to_date :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5269
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5270
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5271
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5272
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5273
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5274
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5275
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5276
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5277
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5278
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5279
            if(search_expression_type->is_same_type(&search_constant_type_c::ulint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5280
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5281
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5282
                symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5283
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5284
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5285
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5286
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5287
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5288
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5289
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5290
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5291
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5292
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5293
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5294
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5295
    }/*function_ulint_to_date*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5296
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5297
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5298
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5299
 *ULINT_TO_TOD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5300
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5301
    case function_ulint_to_tod :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5302
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5303
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5304
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5305
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5306
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5307
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5308
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5309
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5310
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5311
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5312
            if(search_expression_type->is_same_type(&search_constant_type_c::ulint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5313
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5314
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5315
                symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5316
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5317
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5318
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5319
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5320
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5321
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5322
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5323
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5324
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5325
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5326
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5327
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5328
    }/*function_ulint_to_tod*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5329
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5330
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5331
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5332
 *ULINT_TO_DT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5333
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5334
    case function_ulint_to_dt :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5335
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5336
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5337
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5338
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5339
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5340
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5341
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5342
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5343
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5344
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5345
            if(search_expression_type->is_same_type(&search_constant_type_c::ulint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5346
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5347
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5348
                symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5349
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5350
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5351
                s4o.print(")__int_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5352
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5353
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5354
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5355
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5356
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5357
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5358
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5359
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5360
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5361
    }/*function_ulint_to_dt*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5362
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5363
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5364
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5365
 *ULINT_TO_STRING
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5366
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5367
    case function_ulint_to_string :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5368
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5369
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5370
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5371
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5372
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5373
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5374
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5375
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5376
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5377
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5378
            if(search_expression_type->is_same_type(&search_constant_type_c::ulint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5379
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5380
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5381
                symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5382
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5383
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5384
                s4o.print(")__uint_to_string(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5385
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5386
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5387
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5388
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5389
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5390
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5391
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5392
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5393
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5394
    }/*function_ulint_to_string*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5395
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5396
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5397
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5398
 *ULINT_TO_BYTE
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5399
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5400
    case function_ulint_to_byte :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5401
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5402
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5403
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5404
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5405
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5406
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5407
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5408
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5409
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5410
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5411
            if(search_expression_type->is_same_type(&search_constant_type_c::ulint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5412
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5413
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5414
                symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5415
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5416
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5417
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5418
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5419
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5420
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5421
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5422
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5423
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5424
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5425
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5426
    }/*function_ulint_to_byte*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5427
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5428
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5429
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5430
 *ULINT_TO_WORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5431
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5432
    case function_ulint_to_word :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5433
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5434
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5435
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5436
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5437
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5438
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5439
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5440
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5441
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5442
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5443
            if(search_expression_type->is_same_type(&search_constant_type_c::ulint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5444
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5445
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5446
                symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5447
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5448
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5449
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5450
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5451
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5452
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5453
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5454
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5455
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5456
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5457
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5458
    }/*function_ulint_to_word*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5459
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5460
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5461
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5462
 *ULINT_TO_DWORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5463
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5464
    case function_ulint_to_dword :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5465
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5466
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5467
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5468
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5469
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5470
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5471
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5472
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5473
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5474
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5475
            if(search_expression_type->is_same_type(&search_constant_type_c::ulint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5476
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5477
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5478
                symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5479
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5480
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5481
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5482
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5483
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5484
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5485
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5486
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5487
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5488
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5489
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5490
    }/*function_ulint_to_dword*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5491
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5492
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5493
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5494
 *ULINT_TO_LWORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5495
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5496
    case function_ulint_to_lword :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5497
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5498
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5499
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5500
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5501
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5502
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5503
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5504
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5505
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5506
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5507
            if(search_expression_type->is_same_type(&search_constant_type_c::ulint_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5508
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5509
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5510
                symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5511
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5512
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5513
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5514
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5515
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5516
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5517
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5518
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5519
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5520
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5521
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5522
    }/*function_ulint_to_lword*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5523
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5524
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5525
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5526
 *REAL_TO_BOOL
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5527
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5528
    case function_real_to_bool :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5529
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5530
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5531
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5532
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5533
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5534
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5535
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5536
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5537
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5538
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5539
            if(search_expression_type->is_same_type(&search_constant_type_c::real_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5540
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5541
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5542
                symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5543
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5544
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5545
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5546
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5547
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5548
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5549
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5550
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5551
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5552
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5553
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5554
    }/*function_real_to_bool*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5555
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5556
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5557
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5558
 *REAL_TO_SINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5559
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5560
    case function_real_to_sint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5561
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5562
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5563
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5564
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5565
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5566
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5567
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5568
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5569
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5570
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5571
            if(search_expression_type->is_same_type(&search_constant_type_c::real_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5572
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5573
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5574
                symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5575
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5576
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5577
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5578
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5579
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5580
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5581
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5582
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5583
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5584
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5585
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5586
    }/*function_real_to_sint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5587
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5588
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5589
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5590
 *REAL_TO_INT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5591
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5592
    case function_real_to_int :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5593
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5594
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5595
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5596
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5597
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5598
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5599
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5600
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5601
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5602
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5603
            if(search_expression_type->is_same_type(&search_constant_type_c::real_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5604
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5605
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5606
                symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5607
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5608
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5609
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5610
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5611
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5612
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5613
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5614
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5615
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5616
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5617
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5618
    }/*function_real_to_int*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5619
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5620
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5621
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5622
 *REAL_TO_DINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5623
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5624
    case function_real_to_dint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5625
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5626
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5627
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5628
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5629
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5630
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5631
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5632
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5633
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5634
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5635
            if(search_expression_type->is_same_type(&search_constant_type_c::real_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5636
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5637
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5638
                symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5639
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5640
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5641
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5642
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5643
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5644
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5645
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5646
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5647
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5648
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5649
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5650
    }/*function_real_to_dint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5651
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5652
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5653
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5654
 *REAL_TO_LINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5655
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5656
    case function_real_to_lint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5657
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5658
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5659
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5660
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5661
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5662
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5663
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5664
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5665
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5666
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5667
            if(search_expression_type->is_same_type(&search_constant_type_c::real_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5668
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5669
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5670
                symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5671
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5672
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5673
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5674
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5675
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5676
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5677
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5678
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5679
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5680
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5681
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5682
    }/*function_real_to_lint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5683
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5684
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5685
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5686
 *REAL_TO_USINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5687
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5688
    case function_real_to_usint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5689
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5690
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5691
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5692
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5693
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5694
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5695
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5696
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5697
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5698
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5699
            if(search_expression_type->is_same_type(&search_constant_type_c::real_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5700
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5701
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5702
                symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5703
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5704
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5705
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5706
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5707
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5708
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5709
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5710
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5711
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5712
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5713
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5714
    }/*function_real_to_usint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5715
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5716
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5717
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5718
 *REAL_TO_UINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5719
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5720
    case function_real_to_uint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5721
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5722
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5723
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5724
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5725
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5726
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5727
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5728
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5729
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5730
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5731
            if(search_expression_type->is_same_type(&search_constant_type_c::real_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5732
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5733
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5734
                symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5735
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5736
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5737
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5738
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5739
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5740
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5741
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5742
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5743
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5744
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5745
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5746
    }/*function_real_to_uint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5747
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5748
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5749
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5750
 *REAL_TO_UDINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5751
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5752
    case function_real_to_udint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5753
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5754
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5755
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5756
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5757
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5758
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5759
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5760
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5761
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5762
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5763
            if(search_expression_type->is_same_type(&search_constant_type_c::real_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5764
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5765
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5766
                symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5767
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5768
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5769
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5770
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5771
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5772
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5773
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5774
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5775
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5776
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5777
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5778
    }/*function_real_to_udint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5779
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5780
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5781
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5782
 *REAL_TO_ULINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5783
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5784
    case function_real_to_ulint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5785
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5786
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5787
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5788
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5789
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5790
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5791
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5792
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5793
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5794
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5795
            if(search_expression_type->is_same_type(&search_constant_type_c::real_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5796
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5797
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5798
                symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5799
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5800
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5801
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5802
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5803
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5804
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5805
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5806
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5807
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5808
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5809
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5810
    }/*function_real_to_ulint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5811
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5812
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5813
/****
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5814
 *REAL_TO_LREAL
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5815
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5816
    case function_real_to_lreal :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5817
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5818
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5819
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5820
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5821
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5822
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5823
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5824
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5825
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5826
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5827
            if(search_expression_type->is_same_type(&search_constant_type_c::real_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5828
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5829
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5830
                symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5831
                s4o.print("(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5832
                return_type_symbol->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5833
                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5834
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5835
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5836
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5837
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5838
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5839
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5840
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5841
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5842
    }/*function_real_to_lreal*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5843
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5844
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5845
/****
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5846
 *REAL_TO_TIME
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5847
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5848
    case function_real_to_time :
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5849
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5850
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5851
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5852
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5853
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5854
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5855
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5856
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5857
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5858
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5859
            if(search_expression_type->is_same_type(&search_constant_type_c::real_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5860
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  5861
        
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5862
                symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5863
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5864
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5865
                s4o.print(")__real_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5866
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5867
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5868
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5869
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5870
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5871
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5872
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5873
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5874
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5875
    }/*function_real_to_time*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5876
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5877
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5878
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5879
 *REAL_TO_DATE
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5880
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5881
    case function_real_to_date :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5882
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5883
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5884
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5885
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5886
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5887
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5888
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5889
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5890
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5891
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5892
            if(search_expression_type->is_same_type(&search_constant_type_c::real_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5893
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5894
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5895
                symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5896
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5897
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5898
                s4o.print(")__real_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5899
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5900
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5901
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5902
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5903
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5904
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5905
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5906
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5907
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5908
    }/*function_real_to_date*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5909
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5910
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5911
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5912
 *REAL_TO_TOD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5913
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5914
    case function_real_to_tod :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5915
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5916
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5917
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5918
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5919
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5920
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5921
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5922
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5923
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5924
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5925
            if(search_expression_type->is_same_type(&search_constant_type_c::real_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5926
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5927
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5928
                symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5929
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5930
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5931
                s4o.print(")__real_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5932
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5933
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5934
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5935
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5936
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5937
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5938
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5939
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5940
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5941
    }/*function_real_to_tod*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5942
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5943
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5944
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5945
 *REAL_TO_DT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5946
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5947
    case function_real_to_dt :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5948
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5949
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5950
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5951
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5952
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5953
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5954
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5955
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5956
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5957
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5958
            if(search_expression_type->is_same_type(&search_constant_type_c::real_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5959
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5960
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5961
                symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5962
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5963
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5964
                s4o.print(")__real_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5965
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5966
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5967
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5968
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5969
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5970
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5971
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5972
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5973
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5974
    }/*function_real_to_dt*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5975
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5976
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5977
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5978
 *REAL_TO_STRING
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5979
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5980
    case function_real_to_string :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5981
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5982
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5983
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5984
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5985
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5986
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5987
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5988
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5989
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5990
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  5991
            if(search_expression_type->is_same_type(&search_constant_type_c::real_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5992
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5993
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5994
                symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5995
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5996
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5997
                s4o.print(")__real_to_string(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5998
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  5999
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6000
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6001
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6002
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6003
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6004
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6005
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6006
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6007
    }/*function_real_to_string*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6008
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6009
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6010
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6011
 *REAL_TO_BYTE
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6012
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6013
    case function_real_to_byte :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6014
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6015
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6016
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6017
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6018
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6019
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6020
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6021
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6022
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6023
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6024
            if(search_expression_type->is_same_type(&search_constant_type_c::real_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6025
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6026
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6027
                symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6028
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6029
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6030
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6031
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6032
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6033
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6034
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6035
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6036
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6037
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6038
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6039
    }/*function_real_to_byte*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6040
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6041
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6042
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6043
 *REAL_TO_WORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6044
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6045
    case function_real_to_word :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6046
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6047
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6048
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6049
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6050
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6051
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6052
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6053
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6054
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6055
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6056
            if(search_expression_type->is_same_type(&search_constant_type_c::real_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6057
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6058
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6059
                symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6060
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6061
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6062
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6063
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6064
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6065
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6066
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6067
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6068
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6069
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6070
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6071
    }/*function_real_to_word*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6072
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6073
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6074
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6075
 *REAL_TO_DWORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6076
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6077
    case function_real_to_dword :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6078
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6079
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6080
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6081
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6082
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6083
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6084
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6085
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6086
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6087
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6088
            if(search_expression_type->is_same_type(&search_constant_type_c::real_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6089
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6090
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6091
                symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6092
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6093
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6094
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6095
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6096
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6097
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6098
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6099
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6100
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6101
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6102
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6103
    }/*function_real_to_dword*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6104
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6105
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6106
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6107
 *REAL_TO_LWORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6108
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6109
    case function_real_to_lword :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6110
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6111
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6112
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6113
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6114
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6115
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6116
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6117
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6118
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6119
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6120
            if(search_expression_type->is_same_type(&search_constant_type_c::real_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6121
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6122
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6123
                symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6124
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6125
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6126
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6127
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6128
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6129
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6130
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6131
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6132
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6133
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6134
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6135
    }/*function_real_to_lword*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6136
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6137
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6138
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6139
 *LREAL_TO_BOOL
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6140
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6141
    case function_lreal_to_bool :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6142
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6143
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6144
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6145
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6146
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6147
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6148
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6149
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6150
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6151
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6152
            if(search_expression_type->is_same_type(&search_constant_type_c::lreal_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6153
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6154
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6155
                symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6156
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6157
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6158
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6159
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6160
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6161
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6162
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6163
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6164
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6165
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6166
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6167
    }/*function_lreal_to_bool*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6168
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6169
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6170
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6171
 *LREAL_TO_SINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6172
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6173
    case function_lreal_to_sint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6174
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6175
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6176
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6177
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6178
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6179
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6180
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6181
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6182
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6183
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6184
            if(search_expression_type->is_same_type(&search_constant_type_c::lreal_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6185
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6186
        
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6187
                symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6188
                s4o.print("(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6189
                return_type_symbol->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6190
                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6191
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6192
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6193
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6194
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6195
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6196
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6197
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6198
        
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6199
    }/*function_lreal_to_sint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6200
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6201
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6202
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6203
 *LREAL_TO_INT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6204
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6205
    case function_lreal_to_int :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6206
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6207
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6208
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6209
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6210
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6211
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6212
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6213
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6214
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6215
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6216
            if(search_expression_type->is_same_type(&search_constant_type_c::lreal_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6217
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6218
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6219
                symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6220
                s4o.print("(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6221
                return_type_symbol->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6222
                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6223
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6224
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6225
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6226
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6227
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6228
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6229
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6230
        
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6231
    }/*function_lreal_to_int*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6232
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6233
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6234
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6235
 *LREAL_TO_DINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6236
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6237
    case function_lreal_to_dint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6238
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6239
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6240
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6241
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6242
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6243
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6244
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6245
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6246
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6247
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6248
            if(search_expression_type->is_same_type(&search_constant_type_c::lreal_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6249
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6250
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6251
                symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6252
                s4o.print("(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6253
                return_type_symbol->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6254
                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6255
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6256
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6257
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6258
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6259
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6260
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6261
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6262
        
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6263
    }/*function_lreal_to_dint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6264
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6265
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6266
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6267
 *LREAL_TO_LINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6268
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6269
    case function_lreal_to_lint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6270
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6271
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6272
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6273
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6274
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6275
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6276
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6277
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6278
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6279
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6280
            if(search_expression_type->is_same_type(&search_constant_type_c::lreal_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6281
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6282
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6283
                symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6284
                s4o.print("(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6285
                return_type_symbol->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6286
                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6287
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6288
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6289
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6290
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6291
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6292
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6293
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6294
        
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6295
    }/*function_lreal_to_lint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6296
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6297
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6298
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6299
 *LREAL_TO_USINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6300
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6301
    case function_lreal_to_usint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6302
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6303
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6304
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6305
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6306
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6307
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6308
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6309
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6310
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6311
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6312
            if(search_expression_type->is_same_type(&search_constant_type_c::lreal_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6313
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6314
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6315
                symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6316
                s4o.print("(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6317
                return_type_symbol->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6318
                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6319
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6320
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6321
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6322
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6323
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6324
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6325
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6326
        
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6327
    }/*function_lreal_to_usint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6328
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6329
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6330
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6331
 *LREAL_TO_UINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6332
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6333
    case function_lreal_to_uint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6334
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6335
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6336
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6337
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6338
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6339
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6340
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6341
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6342
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6343
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6344
            if(search_expression_type->is_same_type(&search_constant_type_c::lreal_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6345
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6346
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6347
                symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6348
                s4o.print("(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6349
                return_type_symbol->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6350
                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6351
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6352
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6353
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6354
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6355
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6356
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6357
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6358
        
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6359
    }/*function_lreal_to_uint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6360
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6361
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6362
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6363
 *LREAL_TO_UDINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6364
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6365
    case function_lreal_to_udint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6366
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6367
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6368
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6369
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6370
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6371
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6372
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6373
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6374
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6375
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6376
            if(search_expression_type->is_same_type(&search_constant_type_c::lreal_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6377
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6378
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6379
                symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6380
                s4o.print("(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6381
                return_type_symbol->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6382
                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6383
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6384
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6385
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6386
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6387
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6388
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6389
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6390
        
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6391
    }/*function_lreal_to_udint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6392
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6393
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6394
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6395
 *LREAL_TO_ULINT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6396
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6397
    case function_lreal_to_ulint :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6398
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6399
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6400
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6401
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6402
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6403
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6404
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6405
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6406
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6407
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6408
            if(search_expression_type->is_same_type(&search_constant_type_c::lreal_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6409
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6410
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6411
                symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6412
                s4o.print("(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6413
                return_type_symbol->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6414
                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6415
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6416
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6417
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6418
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6419
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6420
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6421
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6422
        
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6423
    }/*function_lreal_to_ulint*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6424
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6425
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6426
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6427
 *LREAL_TO_REAL
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6428
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6429
    case function_lreal_to_real :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6430
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6431
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6432
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6433
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6434
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6435
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6436
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6437
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6438
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6439
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6440
            if(search_expression_type->is_same_type(&search_constant_type_c::lreal_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6441
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6442
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6443
                symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6444
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6445
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6446
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6447
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6448
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6449
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6450
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6451
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6452
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6453
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6454
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6455
    }/*function_lreal_to_real*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6456
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6457
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6458
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6459
 *LREAL_TO_TIME
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6460
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6461
    case function_lreal_to_time :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6462
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6463
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6464
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6465
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6466
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6467
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6468
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6469
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6470
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6471
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6472
            if(search_expression_type->is_same_type(&search_constant_type_c::lreal_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6473
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6474
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6475
                symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6476
                s4o.print("(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6477
                return_type_symbol->accept(*this);
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
  6478
                s4o.print(")__real_to_time(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6479
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6480
                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6481
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6482
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6483
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6484
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6485
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6486
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  6487
        
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6488
    }/*function_lreal_to_time*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6489
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6490
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6491
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6492
 *LREAL_TO_DATE
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6493
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6494
    case function_lreal_to_date :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6495
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6496
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6497
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6498
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6499
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6500
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6501
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6502
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6503
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6504
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6505
            if(search_expression_type->is_same_type(&search_constant_type_c::lreal_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6506
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6507
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6508
                symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6509
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6510
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6511
                s4o.print(")__real_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6512
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6513
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6514
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6515
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6516
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6517
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6518
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6519
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6520
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6521
    }/*function_lreal_to_date*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6522
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6523
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6524
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6525
 *LREAL_TO_TOD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6526
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6527
    case function_lreal_to_tod :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6528
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6529
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6530
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6531
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6532
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6533
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6534
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6535
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6536
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6537
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6538
            if(search_expression_type->is_same_type(&search_constant_type_c::lreal_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6539
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6540
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6541
                symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6542
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6543
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6544
                s4o.print(")__real_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6545
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6546
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6547
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6548
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6549
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6550
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6551
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6552
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6553
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6554
    }/*function_lreal_to_tod*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6555
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6556
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6557
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6558
 *LREAL_TO_DT
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6559
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6560
    case function_lreal_to_dt :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6561
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6562
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6563
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6564
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6565
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6566
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6567
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6568
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6569
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6570
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6571
            if(search_expression_type->is_same_type(&search_constant_type_c::lreal_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6572
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6573
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6574
                symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6575
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6576
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6577
                s4o.print(")__real_to_time(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6578
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6579
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6580
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6581
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6582
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6583
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6584
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6585
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6586
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6587
    }/*function_lreal_to_dt*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6588
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6589
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6590
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6591
 *LREAL_TO_STRING
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6592
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6593
    case function_lreal_to_string :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6594
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6595
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6596
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6597
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6598
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6599
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6600
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6601
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6602
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6603
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6604
            if(search_expression_type->is_same_type(&search_constant_type_c::lreal_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6605
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6606
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6607
                symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6608
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6609
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6610
                s4o.print(")__real_to_string(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6611
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6612
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6613
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6614
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6615
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6616
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6617
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6618
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6619
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6620
    }/*function_lreal_to_string*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6621
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6622
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6623
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6624
 *LREAL_TO_BYTE
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6625
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6626
    case function_lreal_to_byte :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6627
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6628
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6629
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6630
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6631
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6632
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6633
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6634
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6635
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6636
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6637
            if(search_expression_type->is_same_type(&search_constant_type_c::lreal_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6638
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6639
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6640
                symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6641
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6642
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6643
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6644
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6645
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6646
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6647
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6648
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6649
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6650
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6651
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6652
    }/*function_lreal_to_byte*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6653
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6654
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6655
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6656
 *LREAL_TO_WORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6657
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6658
    case function_lreal_to_word :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6659
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6660
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6661
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6662
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6663
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6664
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6665
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6666
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6667
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6668
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6669
            if(search_expression_type->is_same_type(&search_constant_type_c::lreal_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6670
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6671
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6672
                symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6673
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6674
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6675
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6676
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6677
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6678
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6679
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6680
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6681
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6682
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6683
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6684
    }/*function_lreal_to_word*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6685
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6686
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6687
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6688
 *LREAL_TO_DWORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6689
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6690
    case function_lreal_to_dword :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6691
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6692
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6693
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6694
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6695
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6696
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6697
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6698
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6699
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6700
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6701
            if(search_expression_type->is_same_type(&search_constant_type_c::lreal_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6702
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6703
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6704
                symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6705
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6706
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6707
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6708
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6709
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6710
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6711
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6712
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6713
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6714
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6715
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6716
    }/*function_lreal_to_dword*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6717
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6718
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6719
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6720
 *LREAL_TO_LWORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6721
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6722
    case function_lreal_to_lword :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6723
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6724
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6725
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6726
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6727
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6728
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6729
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6730
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6731
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6732
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6733
            if(search_expression_type->is_same_type(&search_constant_type_c::lreal_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6734
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6735
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6736
                symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6737
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6738
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6739
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6740
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6741
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6742
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6743
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6744
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6745
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6746
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6747
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6748
    }/*function_lreal_to_lword*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6749
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6750
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  6751
/****
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6752
 *TIME_TO_SINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6753
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6754
    case function_time_to_sint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6755
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6756
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6757
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6758
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6759
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6760
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6761
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6762
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6763
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6764
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6765
            if(search_expression_type->is_same_type(&search_constant_type_c::time_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6766
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6767
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6768
                symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6769
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6770
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6771
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6772
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6773
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6774
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6775
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6776
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6777
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6778
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6779
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6780
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6781
    }/*function_time_to_sint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6782
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6783
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6784
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6785
 *TIME_TO_INT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6786
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6787
    case function_time_to_int :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6788
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6789
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6790
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6791
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6792
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6793
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6794
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6795
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6796
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6797
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6798
            if(search_expression_type->is_same_type(&search_constant_type_c::time_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6799
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6800
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6801
                symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6802
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6803
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6804
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6805
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6806
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6807
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6808
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6809
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6810
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6811
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6812
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6813
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6814
    }/*function_time_to_int*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6815
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6816
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6817
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6818
 *TIME_TO_DINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6819
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6820
    case function_time_to_dint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6821
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6822
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6823
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6824
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6825
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6826
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6827
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6828
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6829
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6830
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6831
            if(search_expression_type->is_same_type(&search_constant_type_c::time_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6832
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6833
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6834
                symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6835
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6836
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6837
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6838
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6839
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6840
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6841
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6842
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6843
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6844
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6845
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6846
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6847
    }/*function_time_to_dint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6848
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6849
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6850
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6851
 *TIME_TO_LINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6852
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6853
    case function_time_to_lint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6854
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6855
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6856
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6857
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6858
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6859
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6860
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6861
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6862
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6863
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6864
            if(search_expression_type->is_same_type(&search_constant_type_c::time_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6865
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6866
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6867
                symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6868
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6869
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6870
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6871
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6872
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6873
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6874
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6875
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6876
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6877
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6878
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6879
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6880
    }/*function_time_to_lint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6881
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6882
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6883
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6884
 *TIME_TO_USINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6885
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6886
    case function_time_to_usint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6887
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6888
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6889
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6890
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6891
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6892
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6893
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6894
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6895
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6896
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6897
            if(search_expression_type->is_same_type(&search_constant_type_c::time_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6898
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6899
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6900
                symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6901
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6902
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6903
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6904
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6905
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6906
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6907
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6908
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6909
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6910
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6911
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6912
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6913
    }/*function_time_to_usint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6914
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6915
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6916
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6917
 *TIME_TO_UINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6918
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6919
    case function_time_to_uint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6920
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6921
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6922
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6923
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6924
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6925
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6926
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6927
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6928
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6929
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6930
            if(search_expression_type->is_same_type(&search_constant_type_c::time_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6931
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6932
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6933
                symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6934
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6935
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6936
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6937
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6938
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6939
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6940
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6941
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6942
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6943
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6944
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6945
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6946
    }/*function_time_to_uint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6947
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6948
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6949
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6950
 *TIME_TO_UDINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6951
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6952
    case function_time_to_udint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6953
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6954
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6955
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6956
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6957
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6958
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6959
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6960
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6961
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6962
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6963
            if(search_expression_type->is_same_type(&search_constant_type_c::time_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6964
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6965
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6966
                symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6967
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6968
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6969
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6970
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6971
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6972
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6973
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6974
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6975
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6976
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6977
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6978
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6979
    }/*function_time_to_udint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6980
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6981
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6982
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6983
 *TIME_TO_ULINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6984
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6985
    case function_time_to_ulint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6986
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6987
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6988
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6989
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6990
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6991
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6992
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6993
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6994
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6995
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6996
            if(search_expression_type->is_same_type(&search_constant_type_c::time_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6997
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6998
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  6999
                symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7000
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7001
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7002
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7003
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7004
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7005
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7006
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7007
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7008
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7009
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7010
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7011
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7012
    }/*function_time_to_ulint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7013
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7014
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7015
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7016
 *TIME_TO_REAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7017
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7018
    case function_time_to_real :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7019
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7020
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7021
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7022
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7023
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7024
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7025
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7026
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7027
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7028
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7029
            if(search_expression_type->is_same_type(&search_constant_type_c::time_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7030
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7031
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7032
                symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7033
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7034
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7035
                s4o.print(")__time_to_real(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7036
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7037
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7038
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7039
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7040
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7041
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7042
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7043
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7044
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7045
    }/*function_time_to_real*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7046
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7047
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7048
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7049
 *TIME_TO_LREAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7050
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7051
    case function_time_to_lreal :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7052
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7053
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7054
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7055
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7056
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7057
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7058
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7059
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7060
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7061
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7062
            if(search_expression_type->is_same_type(&search_constant_type_c::time_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7063
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7064
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7065
                symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7066
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7067
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7068
                s4o.print(")__time_to_real(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7069
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7070
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7071
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7072
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7073
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7074
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7075
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7076
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7077
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7078
    }/*function_time_to_lreal*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7079
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7080
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7081
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7082
 *TIME_TO_STRING
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7083
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7084
    case function_time_to_string :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7085
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7086
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7087
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7088
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7089
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7090
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7091
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7092
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7093
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7094
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7095
            if(search_expression_type->is_same_type(&search_constant_type_c::time_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7096
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7097
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7098
                symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7099
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7100
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7101
                s4o.print(")__time_to_string(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7102
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7103
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7104
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7105
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7106
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7107
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7108
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7109
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7110
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7111
    }/*function_time_to_string*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7112
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7113
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7114
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7115
 *TIME_TO_BYTE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7116
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7117
    case function_time_to_byte :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7118
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7119
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7120
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7121
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7122
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7123
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7124
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7125
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7126
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7127
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7128
            if(search_expression_type->is_same_type(&search_constant_type_c::time_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7129
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7130
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7131
                symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7132
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7133
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7134
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7135
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7136
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7137
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7138
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7139
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7140
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7141
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7142
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7143
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7144
    }/*function_time_to_byte*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7145
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7146
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7147
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7148
 *TIME_TO_WORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7149
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7150
    case function_time_to_word :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7151
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7152
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7153
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7154
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7155
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7156
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7157
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7158
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7159
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7160
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7161
            if(search_expression_type->is_same_type(&search_constant_type_c::time_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7162
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7163
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7164
                symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7165
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7166
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7167
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7168
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7169
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7170
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7171
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7172
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7173
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7174
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7175
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7176
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7177
    }/*function_time_to_word*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7178
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7179
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7180
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7181
 *TIME_TO_DWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7182
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7183
    case function_time_to_dword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7184
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7185
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7186
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7187
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7188
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7189
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7190
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7191
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7192
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7193
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7194
            if(search_expression_type->is_same_type(&search_constant_type_c::time_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7195
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7196
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7197
                symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7198
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7199
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7200
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7201
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7202
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7203
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7204
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7205
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7206
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7207
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7208
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7209
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7210
    }/*function_time_to_dword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7211
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7212
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7213
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7214
 *TIME_TO_LWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7215
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7216
    case function_time_to_lword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7217
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7218
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7219
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7220
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7221
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7222
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7223
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7224
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7225
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7226
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7227
            if(search_expression_type->is_same_type(&search_constant_type_c::time_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7228
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7229
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7230
                symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7231
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7232
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7233
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7234
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7235
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7236
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7237
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7238
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7239
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7240
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7241
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7242
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7243
    }/*function_time_to_lword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7244
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7245
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7246
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7247
 *DATE_TO_SINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7248
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7249
    case function_date_to_sint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7250
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7251
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7252
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7253
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7254
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7255
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7256
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7257
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7258
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7259
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7260
            if(search_expression_type->is_same_type(&search_constant_type_c::date_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7261
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7262
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7263
                symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7264
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7265
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7266
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7267
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7268
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7269
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7270
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7271
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7272
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7273
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7274
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7275
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7276
    }/*function_date_to_sint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7277
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7278
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7279
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7280
 *DATE_TO_INT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7281
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7282
    case function_date_to_int :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7283
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7284
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7285
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7286
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7287
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7288
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7289
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7290
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7291
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7292
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7293
            if(search_expression_type->is_same_type(&search_constant_type_c::date_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7294
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7295
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7296
                symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7297
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7298
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7299
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7300
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7301
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7302
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7303
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7304
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7305
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7306
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7307
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7308
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7309
    }/*function_date_to_int*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7310
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7311
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7312
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7313
 *DATE_TO_DINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7314
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7315
    case function_date_to_dint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7316
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7317
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7318
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7319
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7320
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7321
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7322
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7323
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7324
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7325
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7326
            if(search_expression_type->is_same_type(&search_constant_type_c::date_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7327
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7328
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7329
                symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7330
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7331
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7332
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7333
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7334
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7335
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7336
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7337
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7338
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7339
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7340
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7341
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7342
    }/*function_date_to_dint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7343
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7344
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7345
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7346
 *DATE_TO_LINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7347
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7348
    case function_date_to_lint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7349
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7350
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7351
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7352
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7353
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7354
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7355
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7356
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7357
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7358
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7359
            if(search_expression_type->is_same_type(&search_constant_type_c::date_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7360
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7361
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7362
                symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7363
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7364
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7365
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7366
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7367
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7368
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7369
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7370
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7371
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7372
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7373
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7374
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7375
    }/*function_date_to_lint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7376
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7377
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7378
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7379
 *DATE_TO_USINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7380
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7381
    case function_date_to_usint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7382
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7383
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7384
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7385
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7386
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7387
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7388
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7389
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7390
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7391
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7392
            if(search_expression_type->is_same_type(&search_constant_type_c::date_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7393
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7394
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7395
                symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7396
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7397
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7398
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7399
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7400
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7401
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7402
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7403
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7404
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7405
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7406
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7407
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7408
    }/*function_date_to_usint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7409
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7410
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7411
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7412
 *DATE_TO_UINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7413
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7414
    case function_date_to_uint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7415
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7416
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7417
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7418
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7419
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7420
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7421
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7422
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7423
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7424
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7425
            if(search_expression_type->is_same_type(&search_constant_type_c::date_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7426
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7427
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7428
                symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7429
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7430
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7431
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7432
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7433
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7434
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7435
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7436
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7437
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7438
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7439
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7440
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7441
    }/*function_date_to_uint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7442
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7443
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7444
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7445
 *DATE_TO_UDINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7446
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7447
    case function_date_to_udint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7448
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7449
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7450
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7451
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7452
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7453
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7454
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7455
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7456
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7457
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7458
            if(search_expression_type->is_same_type(&search_constant_type_c::date_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7459
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7460
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7461
                symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7462
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7463
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7464
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7465
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7466
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7467
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7468
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7469
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7470
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7471
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7472
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7473
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7474
    }/*function_date_to_udint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7475
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7476
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7477
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7478
 *DATE_TO_ULINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7479
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7480
    case function_date_to_ulint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7481
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7482
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7483
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7484
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7485
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7486
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7487
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7488
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7489
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7490
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7491
            if(search_expression_type->is_same_type(&search_constant_type_c::date_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7492
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7493
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7494
                symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7495
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7496
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7497
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7498
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7499
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7500
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7501
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7502
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7503
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7504
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7505
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7506
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7507
    }/*function_date_to_ulint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7508
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7509
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7510
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7511
 *DATE_TO_REAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7512
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7513
    case function_date_to_real :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7514
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7515
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7516
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7517
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7518
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7519
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7520
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7521
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7522
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7523
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7524
            if(search_expression_type->is_same_type(&search_constant_type_c::date_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7525
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7526
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7527
                symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7528
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7529
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7530
                s4o.print(")__time_to_real(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7531
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7532
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7533
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7534
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7535
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7536
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7537
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7538
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7539
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7540
    }/*function_date_to_real*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7541
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7542
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7543
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7544
 *DATE_TO_LREAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7545
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7546
    case function_date_to_lreal :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7547
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7548
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7549
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7550
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7551
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7552
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7553
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7554
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7555
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7556
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7557
            if(search_expression_type->is_same_type(&search_constant_type_c::date_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7558
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7559
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7560
                symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7561
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7562
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7563
                s4o.print(")__time_to_real(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7564
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7565
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7566
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7567
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7568
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7569
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7570
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7571
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7572
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7573
    }/*function_date_to_lreal*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7574
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7575
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7576
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7577
 *DATE_TO_STRING
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7578
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7579
    case function_date_to_string :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7580
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7581
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7582
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7583
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7584
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7585
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7586
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7587
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7588
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7589
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7590
            if(search_expression_type->is_same_type(&search_constant_type_c::date_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7591
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7592
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7593
                symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7594
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7595
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7596
                s4o.print(")__date_to_string(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7597
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7598
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7599
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7600
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7601
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7602
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7603
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7604
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7605
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7606
    }/*function_date_to_string*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7607
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7608
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7609
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7610
 *DATE_TO_BYTE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7611
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7612
    case function_date_to_byte :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7613
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7614
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7615
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7616
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7617
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7618
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7619
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7620
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7621
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7622
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7623
            if(search_expression_type->is_same_type(&search_constant_type_c::date_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7624
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7625
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7626
                symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7627
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7628
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7629
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7630
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7631
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7632
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7633
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7634
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7635
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7636
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7637
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7638
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7639
    }/*function_date_to_byte*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7640
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7641
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7642
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7643
 *DATE_TO_WORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7644
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7645
    case function_date_to_word :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7646
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7647
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7648
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7649
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7650
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7651
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7652
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7653
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7654
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7655
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7656
            if(search_expression_type->is_same_type(&search_constant_type_c::date_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7657
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7658
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7659
                symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7660
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7661
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7662
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7663
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7664
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7665
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7666
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7667
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7668
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7669
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7670
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7671
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7672
    }/*function_date_to_word*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7673
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7674
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7675
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7676
 *DATE_TO_DWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7677
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7678
    case function_date_to_dword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7679
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7680
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7681
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7682
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7683
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7684
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7685
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7686
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7687
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7688
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7689
            if(search_expression_type->is_same_type(&search_constant_type_c::date_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7690
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7691
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7692
                symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7693
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7694
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7695
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7696
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7697
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7698
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7699
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7700
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7701
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7702
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7703
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7704
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7705
    }/*function_date_to_dword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7706
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7707
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7708
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7709
 *DATE_TO_LWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7710
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7711
    case function_date_to_lword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7712
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7713
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7714
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7715
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7716
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7717
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7718
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7719
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7720
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7721
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7722
            if(search_expression_type->is_same_type(&search_constant_type_c::date_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7723
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7724
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7725
                symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7726
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7727
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7728
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7729
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7730
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7731
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7732
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7733
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7734
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7735
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7736
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7737
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7738
    }/*function_date_to_lword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7739
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7740
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7741
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7742
 *TOD_TO_SINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7743
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7744
    case function_tod_to_sint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7745
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7746
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7747
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7748
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7749
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7750
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7751
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7752
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7753
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7754
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7755
            if(search_expression_type->is_same_type(&search_constant_type_c::tod_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7756
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7757
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7758
                symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7759
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7760
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7761
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7762
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7763
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7764
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7765
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7766
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7767
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7768
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7769
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7770
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7771
    }/*function_tod_to_sint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7772
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7773
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7774
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7775
 *TOD_TO_INT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7776
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7777
    case function_tod_to_int :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7778
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7779
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7780
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7781
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7782
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7783
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7784
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7785
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7786
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7787
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7788
            if(search_expression_type->is_same_type(&search_constant_type_c::tod_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7789
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7790
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7791
                symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7792
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7793
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7794
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7795
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7796
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7797
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7798
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7799
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7800
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7801
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7802
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7803
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7804
    }/*function_tod_to_int*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7805
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7806
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7807
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7808
 *TOD_TO_DINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7809
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7810
    case function_tod_to_dint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7811
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7812
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7813
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7814
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7815
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7816
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7817
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7818
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7819
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7820
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7821
            if(search_expression_type->is_same_type(&search_constant_type_c::tod_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7822
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7823
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7824
                symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7825
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7826
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7827
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7828
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7829
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7830
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7831
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7832
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7833
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7834
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7835
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7836
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7837
    }/*function_tod_to_dint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7838
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7839
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7840
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7841
 *TOD_TO_LINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7842
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7843
    case function_tod_to_lint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7844
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7845
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7846
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7847
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7848
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7849
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7850
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7851
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7852
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7853
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7854
            if(search_expression_type->is_same_type(&search_constant_type_c::tod_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7855
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7856
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7857
                symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7858
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7859
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7860
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7861
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7862
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7863
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7864
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7865
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7866
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7867
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7868
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7869
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7870
    }/*function_tod_to_lint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7871
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7872
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7873
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7874
 *TOD_TO_USINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7875
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7876
    case function_tod_to_usint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7877
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7878
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7879
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7880
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7881
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7882
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7883
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7884
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7885
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7886
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7887
            if(search_expression_type->is_same_type(&search_constant_type_c::tod_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7888
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7889
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7890
                symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7891
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7892
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7893
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7894
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7895
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7896
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7897
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7898
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7899
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7900
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7901
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7902
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7903
    }/*function_tod_to_usint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7904
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7905
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7906
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7907
 *TOD_TO_UINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7908
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7909
    case function_tod_to_uint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7910
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7911
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7912
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7913
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7914
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7915
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7916
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7917
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7918
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7919
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7920
            if(search_expression_type->is_same_type(&search_constant_type_c::tod_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7921
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7922
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7923
                symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7924
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7925
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7926
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7927
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7928
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7929
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7930
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7931
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7932
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7933
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7934
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7935
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7936
    }/*function_tod_to_uint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7937
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7938
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7939
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7940
 *TOD_TO_UDINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7941
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7942
    case function_tod_to_udint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7943
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7944
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7945
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7946
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7947
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7948
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7949
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7950
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7951
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7952
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7953
            if(search_expression_type->is_same_type(&search_constant_type_c::tod_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7954
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7955
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7956
                symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7957
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7958
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7959
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7960
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7961
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7962
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7963
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7964
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7965
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7966
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7967
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7968
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7969
    }/*function_tod_to_udint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7970
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7971
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7972
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7973
 *TOD_TO_ULINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7974
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7975
    case function_tod_to_ulint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7976
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7977
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7978
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7979
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7980
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7981
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7982
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7983
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7984
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7985
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7986
            if(search_expression_type->is_same_type(&search_constant_type_c::tod_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7987
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7988
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7989
                symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7990
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7991
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7992
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7993
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7994
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7995
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7996
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7997
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7998
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  7999
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8000
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8001
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8002
    }/*function_tod_to_ulint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8003
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8004
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8005
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8006
 *TOD_TO_REAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8007
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8008
    case function_tod_to_real :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8009
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8010
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8011
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8012
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8013
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8014
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8015
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8016
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8017
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8018
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8019
            if(search_expression_type->is_same_type(&search_constant_type_c::tod_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8020
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8021
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8022
                symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8023
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8024
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8025
                s4o.print(")__time_to_real(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8026
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8027
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8028
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8029
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8030
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8031
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8032
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8033
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8034
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8035
    }/*function_tod_to_real*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8036
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8037
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8038
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8039
 *TOD_TO_LREAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8040
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8041
    case function_tod_to_lreal :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8042
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8043
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8044
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8045
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8046
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8047
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8048
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8049
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8050
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8051
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8052
            if(search_expression_type->is_same_type(&search_constant_type_c::tod_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8053
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8054
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8055
                symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8056
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8057
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8058
                s4o.print(")__time_to_real(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8059
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8060
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8061
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8062
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8063
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8064
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8065
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8066
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8067
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8068
    }/*function_tod_to_lreal*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8069
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8070
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8071
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8072
 *TOD_TO_STRING
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8073
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8074
    case function_tod_to_string :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8075
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8076
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8077
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8078
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8079
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8080
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8081
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8082
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8083
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8084
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8085
            if(search_expression_type->is_same_type(&search_constant_type_c::tod_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8086
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8087
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8088
                symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8089
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8090
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8091
                s4o.print(")__tod_to_string(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8092
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8093
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8094
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8095
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8096
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8097
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8098
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8099
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8100
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8101
    }/*function_tod_to_string*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8102
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8103
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8104
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8105
 *TOD_TO_BYTE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8106
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8107
    case function_tod_to_byte :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8108
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8109
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8110
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8111
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8112
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8113
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8114
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8115
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8116
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8117
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8118
            if(search_expression_type->is_same_type(&search_constant_type_c::tod_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8119
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8120
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8121
                symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8122
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8123
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8124
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8125
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8126
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8127
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8128
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8129
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8130
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8131
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8132
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8133
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8134
    }/*function_tod_to_byte*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8135
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8136
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8137
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8138
 *TOD_TO_WORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8139
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8140
    case function_tod_to_word :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8141
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8142
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8143
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8144
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8145
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8146
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8147
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8148
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8149
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8150
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8151
            if(search_expression_type->is_same_type(&search_constant_type_c::tod_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8152
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8153
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8154
                symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8155
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8156
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8157
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8158
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8159
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8160
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8161
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8162
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8163
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8164
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8165
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8166
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8167
    }/*function_tod_to_word*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8168
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8169
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8170
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8171
 *TOD_TO_DWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8172
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8173
    case function_tod_to_dword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8174
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8175
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8176
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8177
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8178
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8179
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8180
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8181
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8182
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8183
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8184
            if(search_expression_type->is_same_type(&search_constant_type_c::tod_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8185
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8186
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8187
                symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8188
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8189
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8190
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8191
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8192
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8193
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8194
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8195
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8196
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8197
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8198
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8199
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8200
    }/*function_tod_to_dword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8201
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8202
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8203
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8204
 *TOD_TO_LWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8205
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8206
    case function_tod_to_lword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8207
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8208
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8209
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8210
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8211
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8212
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8213
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8214
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8215
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8216
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8217
            if(search_expression_type->is_same_type(&search_constant_type_c::tod_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8218
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8219
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8220
                symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8221
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8222
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8223
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8224
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8225
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8226
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8227
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8228
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8229
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8230
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8231
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8232
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8233
    }/*function_tod_to_lword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8234
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8235
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8236
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8237
 *DT_TO_SINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8238
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8239
    case function_dt_to_sint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8240
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8241
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8242
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8243
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8244
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8245
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8246
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8247
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8248
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8249
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8250
            if(search_expression_type->is_same_type(&search_constant_type_c::dt_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8251
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8252
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8253
                symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8254
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8255
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8256
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8257
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8258
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8259
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8260
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8261
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8262
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8263
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8264
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8265
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8266
    }/*function_dt_to_sint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8267
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8268
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8269
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8270
 *DT_TO_INT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8271
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8272
    case function_dt_to_int :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8273
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8274
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8275
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8276
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8277
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8278
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8279
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8280
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8281
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8282
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8283
            if(search_expression_type->is_same_type(&search_constant_type_c::dt_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8284
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8285
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8286
                symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8287
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8288
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8289
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8290
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8291
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8292
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8293
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8294
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8295
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8296
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8297
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8298
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8299
    }/*function_dt_to_int*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8300
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8301
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8302
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8303
 *DT_TO_DINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8304
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8305
    case function_dt_to_dint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8306
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8307
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8308
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8309
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8310
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8311
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8312
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8313
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8314
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8315
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8316
            if(search_expression_type->is_same_type(&search_constant_type_c::dt_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8317
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8318
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8319
                symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8320
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8321
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8322
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8323
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8324
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8325
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8326
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8327
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8328
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8329
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8330
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8331
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8332
    }/*function_dt_to_dint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8333
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8334
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8335
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8336
 *DT_TO_LINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8337
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8338
    case function_dt_to_lint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8339
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8340
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8341
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8342
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8343
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8344
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8345
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8346
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8347
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8348
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8349
            if(search_expression_type->is_same_type(&search_constant_type_c::dt_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8350
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8351
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8352
                symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8353
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8354
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8355
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8356
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8357
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8358
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8359
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8360
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8361
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8362
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8363
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8364
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8365
    }/*function_dt_to_lint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8366
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8367
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8368
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8369
 *DT_TO_USINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8370
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8371
    case function_dt_to_usint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8372
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8373
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8374
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8375
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8376
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8377
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8378
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8379
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8380
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8381
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8382
            if(search_expression_type->is_same_type(&search_constant_type_c::dt_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8383
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8384
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8385
                symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8386
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8387
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8388
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8389
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8390
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8391
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8392
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8393
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8394
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8395
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8396
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8397
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8398
    }/*function_dt_to_usint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8399
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8400
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8401
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8402
 *DT_TO_UINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8403
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8404
    case function_dt_to_uint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8405
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8406
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8407
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8408
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8409
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8410
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8411
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8412
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8413
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8414
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8415
            if(search_expression_type->is_same_type(&search_constant_type_c::dt_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8416
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8417
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8418
                symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8419
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8420
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8421
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8422
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8423
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8424
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8425
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8426
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8427
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8428
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8429
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8430
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8431
    }/*function_dt_to_uint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8432
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8433
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8434
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8435
 *DT_TO_UDINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8436
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8437
    case function_dt_to_udint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8438
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8439
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8440
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8441
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8442
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8443
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8444
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8445
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8446
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8447
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8448
            if(search_expression_type->is_same_type(&search_constant_type_c::dt_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8449
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8450
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8451
                symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8452
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8453
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8454
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8455
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8456
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8457
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8458
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8459
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8460
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8461
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8462
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8463
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8464
    }/*function_dt_to_udint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8465
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8466
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8467
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8468
 *DT_TO_ULINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8469
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8470
    case function_dt_to_ulint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8471
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8472
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8473
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8474
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8475
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8476
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8477
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8478
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8479
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8480
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8481
            if(search_expression_type->is_same_type(&search_constant_type_c::dt_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8482
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8483
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8484
                symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8485
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8486
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8487
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8488
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8489
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8490
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8491
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8492
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8493
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8494
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8495
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8496
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8497
    }/*function_dt_to_ulint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8498
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8499
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8500
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8501
 *DT_TO_REAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8502
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8503
    case function_dt_to_real :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8504
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8505
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8506
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8507
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8508
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8509
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8510
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8511
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8512
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8513
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8514
            if(search_expression_type->is_same_type(&search_constant_type_c::dt_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8515
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8516
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8517
                symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8518
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8519
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8520
                s4o.print(")__time_to_real(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8521
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8522
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8523
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8524
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8525
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8526
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8527
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8528
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8529
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8530
    }/*function_dt_to_real*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8531
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8532
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8533
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8534
 *DT_TO_LREAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8535
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8536
    case function_dt_to_lreal :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8537
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8538
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8539
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8540
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8541
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8542
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8543
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8544
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8545
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8546
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8547
            if(search_expression_type->is_same_type(&search_constant_type_c::dt_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8548
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8549
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8550
                symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8551
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8552
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8553
                s4o.print(")__time_to_real(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8554
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8555
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8556
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8557
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8558
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8559
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8560
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8561
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8562
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8563
    }/*function_dt_to_lreal*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8564
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8565
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8566
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8567
 *DT_TO_STRING
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8568
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8569
    case function_dt_to_string :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8570
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8571
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8572
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8573
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8574
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8575
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8576
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8577
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8578
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8579
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8580
            if(search_expression_type->is_same_type(&search_constant_type_c::dt_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8581
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8582
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8583
                symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8584
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8585
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8586
                s4o.print(")__dt_to_string(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8587
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8588
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8589
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8590
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8591
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8592
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8593
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8594
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8595
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8596
    }/*function_dt_to_string*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8597
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8598
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8599
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8600
 *DT_TO_BYTE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8601
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8602
    case function_dt_to_byte :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8603
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8604
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8605
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8606
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8607
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8608
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8609
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8610
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8611
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8612
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8613
            if(search_expression_type->is_same_type(&search_constant_type_c::dt_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8614
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8615
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8616
                symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8617
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8618
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8619
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8620
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8621
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8622
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8623
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8624
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8625
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8626
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8627
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8628
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8629
    }/*function_dt_to_byte*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8630
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8631
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8632
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8633
 *DT_TO_WORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8634
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8635
    case function_dt_to_word :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8636
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8637
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8638
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8639
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8640
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8641
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8642
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8643
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8644
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8645
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8646
            if(search_expression_type->is_same_type(&search_constant_type_c::dt_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8647
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8648
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8649
                symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8650
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8651
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8652
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8653
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8654
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8655
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8656
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8657
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8658
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8659
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8660
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8661
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8662
    }/*function_dt_to_word*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8663
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8664
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8665
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8666
 *DT_TO_DWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8667
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8668
    case function_dt_to_dword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8669
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8670
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8671
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8672
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8673
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8674
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8675
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8676
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8677
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8678
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8679
            if(search_expression_type->is_same_type(&search_constant_type_c::dt_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8680
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8681
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8682
                symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8683
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8684
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8685
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8686
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8687
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8688
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8689
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8690
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8691
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8692
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8693
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8694
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8695
    }/*function_dt_to_dword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8696
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8697
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8698
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8699
 *DT_TO_LWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8700
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8701
    case function_dt_to_lword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8702
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8703
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8704
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8705
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8706
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8707
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8708
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8709
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8710
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8711
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8712
            if(search_expression_type->is_same_type(&search_constant_type_c::dt_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8713
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8714
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8715
                symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8716
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8717
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8718
                s4o.print(")__time_to_int(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8719
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8720
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8721
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8722
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8723
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8724
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8725
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8726
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8727
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8728
    }/*function_dt_to_lword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8729
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8730
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8731
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8732
 *STRING_TO_BOOL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8733
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8734
    case function_string_to_bool :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8735
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8736
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8737
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8738
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8739
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8740
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8741
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8742
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8743
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8744
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8745
            if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  8746
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  8747
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  8748
                symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  8749
                s4o.print("(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
  8750
                return_type_symbol->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8751
                s4o.print(")__string_to_bool(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8752
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8753
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8754
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8755
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8756
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8757
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8758
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8759
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8760
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8761
    }/*function_string_to_bool*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8762
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8763
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8764
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8765
 *STRING_TO_SINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8766
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8767
    case function_string_to_sint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8768
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8769
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8770
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8771
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8772
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8773
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8774
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8775
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8776
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8777
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8778
            if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8779
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8780
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8781
                symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8782
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8783
                return_type_symbol->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8784
                s4o.print(")__string_to_sint(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8785
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8786
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8787
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8788
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8789
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8790
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8791
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8792
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8793
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8794
    }/*function_string_to_sint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8795
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8796
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8797
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8798
 *STRING_TO_INT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8799
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8800
    case function_string_to_int :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8801
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8802
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8803
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8804
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8805
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8806
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8807
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8808
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8809
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8810
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8811
            if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8812
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8813
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8814
                symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8815
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8816
                return_type_symbol->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8817
                s4o.print(")__string_to_sint(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8818
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8819
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8820
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8821
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8822
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8823
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8824
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8825
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8826
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8827
    }/*function_string_to_int*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8828
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8829
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8830
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8831
 *STRING_TO_DINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8832
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8833
    case function_string_to_dint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8834
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8835
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8836
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8837
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8838
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8839
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8840
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8841
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8842
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8843
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8844
            if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8845
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8846
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8847
                symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8848
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8849
                return_type_symbol->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8850
                s4o.print(")__string_to_sint(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8851
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8852
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8853
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8854
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8855
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8856
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8857
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8858
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8859
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8860
    }/*function_string_to_dint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8861
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8862
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8863
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8864
 *STRING_TO_LINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8865
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8866
    case function_string_to_lint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8867
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8868
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8869
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8870
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8871
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8872
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8873
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8874
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8875
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8876
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8877
            if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8878
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8879
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8880
                symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8881
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8882
                return_type_symbol->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8883
                s4o.print(")__string_to_sint(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8884
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8885
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8886
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8887
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8888
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8889
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8890
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8891
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8892
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8893
    }/*function_string_to_lint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8894
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8895
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8896
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8897
 *STRING_TO_USINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8898
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8899
    case function_string_to_usint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8900
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8901
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8902
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8903
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8904
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8905
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8906
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8907
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8908
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8909
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8910
            if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8911
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8912
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8913
                symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8914
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8915
                return_type_symbol->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8916
                s4o.print(")__string_to_uint(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8917
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8918
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8919
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8920
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8921
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8922
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8923
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8924
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8925
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8926
    }/*function_string_to_usint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8927
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8928
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8929
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8930
 *STRING_TO_UINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8931
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8932
    case function_string_to_uint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8933
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8934
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8935
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8936
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8937
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8938
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8939
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8940
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8941
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8942
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8943
            if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8944
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8945
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8946
                symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8947
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8948
                return_type_symbol->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8949
                s4o.print(")__string_to_uint(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8950
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8951
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8952
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8953
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8954
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8955
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8956
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8957
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8958
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8959
    }/*function_string_to_uint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8960
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8961
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8962
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8963
 *STRING_TO_UDINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8964
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8965
    case function_string_to_udint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8966
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8967
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8968
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8969
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8970
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8971
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8972
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8973
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8974
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8975
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8976
            if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8977
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8978
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8979
                symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8980
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  8981
                return_type_symbol->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8982
                s4o.print(")__string_to_uint(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8983
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8984
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8985
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8986
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8987
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8988
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8989
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8990
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8991
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8992
    }/*function_string_to_udint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8993
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8994
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8995
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8996
 *STRING_TO_ULINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8997
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8998
    case function_string_to_ulint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  8999
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9000
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9001
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9002
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9003
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9004
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9005
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9006
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9007
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9008
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9009
            if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  9010
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  9011
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  9012
                symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  9013
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  9014
                return_type_symbol->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9015
                s4o.print(")__string_to_uint(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9016
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9017
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9018
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9019
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9020
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9021
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9022
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9023
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9024
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9025
    }/*function_string_to_ulint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9026
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9027
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9028
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9029
 *STRING_TO_REAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9030
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9031
    case function_string_to_real :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9032
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9033
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9034
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9035
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9036
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9037
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9038
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9039
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9040
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9041
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9042
            if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  9043
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  9044
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  9045
                symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  9046
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  9047
                return_type_symbol->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9048
                s4o.print(")__string_to_real(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9049
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9050
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9051
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9052
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9053
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9054
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9055
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9056
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9057
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9058
    }/*function_string_to_real*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9059
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9060
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9061
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9062
 *STRING_TO_LREAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9063
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9064
    case function_string_to_lreal :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9065
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9066
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9067
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9068
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9069
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9070
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9071
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9072
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9073
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9074
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9075
            if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  9076
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  9077
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  9078
                symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  9079
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  9080
                return_type_symbol->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9081
                s4o.print(")__string_to_real(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9082
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9083
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9084
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9085
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9086
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9087
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9088
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9089
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9090
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9091
    }/*function_string_to_lreal*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9092
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9093
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9094
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9095
 *STRING_TO_TIME
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9096
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9097
    case function_string_to_time :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9098
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9099
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9100
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9101
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9102
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9103
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9104
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9105
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9106
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9107
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9108
            if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9109
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9110
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9111
                symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9112
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9113
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9114
                s4o.print(")__string_to_time(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9115
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9116
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9117
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9118
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9119
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9120
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9121
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9122
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9123
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9124
    }/*function_string_to_time*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9125
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9126
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9127
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9128
 *STRING_TO_DATE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9129
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9130
    case function_string_to_date :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9131
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9132
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9133
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9134
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9135
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9136
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9137
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9138
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9139
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9140
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9141
            if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9142
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9143
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9144
                symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9145
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9146
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9147
                s4o.print(")__string_to_time(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9148
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9149
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9150
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9151
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9152
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9153
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9154
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9155
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9156
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9157
    }/*function_string_to_date*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9158
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9159
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9160
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9161
 *STRING_TO_TOD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9162
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9163
    case function_string_to_tod :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9164
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9165
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9166
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9167
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9168
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9169
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9170
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9171
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9172
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9173
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9174
            if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9175
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9176
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9177
                symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9178
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9179
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9180
                s4o.print(")__string_to_time(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9181
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9182
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9183
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9184
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9185
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9186
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9187
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9188
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9189
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9190
    }/*function_string_to_tod*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9191
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9192
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9193
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9194
 *STRING_TO_DT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9195
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9196
    case function_string_to_dt :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9197
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9198
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9199
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9200
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9201
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9202
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9203
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9204
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9205
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9206
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9207
            if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9208
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9209
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9210
                symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9211
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9212
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9213
                s4o.print(")__string_to_time(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9214
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9215
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9216
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9217
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9218
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9219
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9220
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9221
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9222
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9223
    }/*function_string_to_dt*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9224
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9225
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9226
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9227
 *STRING_TO_BYTE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9228
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9229
    case function_string_to_byte :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9230
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9231
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9232
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9233
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9234
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9235
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9236
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9237
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9238
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9239
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9240
            if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9241
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9242
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9243
                symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9244
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9245
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9246
                s4o.print(")__string_to_bit(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9247
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9248
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9249
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9250
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9251
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9252
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9253
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9254
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9255
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9256
    }/*function_string_to_byte*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9257
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9258
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9259
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9260
 *STRING_TO_WORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9261
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9262
    case function_string_to_word :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9263
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9264
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9265
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9266
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9267
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9268
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9269
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9270
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9271
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9272
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9273
            if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9274
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9275
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9276
                symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9277
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9278
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9279
                s4o.print(")__string_to_bit(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9280
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9281
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9282
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9283
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9284
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9285
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9286
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9287
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9288
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9289
    }/*function_string_to_word*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9290
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9291
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9292
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9293
 *STRING_TO_DWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9294
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9295
    case function_string_to_dword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9296
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9297
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9298
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9299
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9300
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9301
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9302
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9303
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9304
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9305
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9306
            if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9307
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9308
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9309
                symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9310
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9311
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9312
                s4o.print(")__string_to_bit(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9313
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9314
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9315
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9316
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9317
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9318
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9319
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9320
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9321
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9322
    }/*function_string_to_dword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9323
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9324
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9325
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9326
 *STRING_TO_LWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9327
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9328
    case function_string_to_lword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9329
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9330
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9331
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9332
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9333
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9334
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9335
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9336
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9337
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9338
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9339
            if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9340
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9341
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9342
                symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9343
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9344
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9345
                s4o.print(")__string_to_bit(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9346
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9347
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9348
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9349
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9350
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9351
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9352
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9353
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9354
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9355
    }/*function_string_to_lword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9356
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9357
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9358
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9359
 *BYTE_TO_BOOL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9360
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9361
    case function_byte_to_bool :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9362
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9363
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9364
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9365
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9366
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9367
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9368
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9369
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9370
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9371
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9372
            if(search_expression_type->is_same_type(&search_constant_type_c::byte_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9373
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9374
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9375
                symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9376
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9377
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9378
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9379
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9380
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9381
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9382
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9383
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9384
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9385
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9386
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9387
    }/*function_byte_to_bool*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9388
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9389
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9390
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9391
 *BYTE_TO_SINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9392
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9393
    case function_byte_to_sint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9394
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9395
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9396
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9397
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9398
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9399
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9400
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9401
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9402
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9403
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9404
            if(search_expression_type->is_same_type(&search_constant_type_c::byte_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9405
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9406
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9407
                symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9408
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9409
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9410
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9411
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9412
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9413
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9414
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9415
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9416
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9417
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9418
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9419
    }/*function_byte_to_sint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9420
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9421
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9422
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9423
 *BYTE_TO_INT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9424
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9425
    case function_byte_to_int :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9426
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9427
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9428
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9429
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9430
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9431
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9432
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9433
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9434
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9435
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9436
            if(search_expression_type->is_same_type(&search_constant_type_c::byte_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9437
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9438
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9439
                symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9440
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9441
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9442
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9443
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9444
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9445
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9446
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9447
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9448
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9449
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9450
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9451
    }/*function_byte_to_int*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9452
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9453
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9454
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9455
 *BYTE_TO_DINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9456
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9457
    case function_byte_to_dint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9458
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9459
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9460
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9461
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9462
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9463
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9464
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9465
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9466
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9467
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9468
            if(search_expression_type->is_same_type(&search_constant_type_c::byte_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9469
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9470
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9471
                symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9472
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9473
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9474
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9475
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9476
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9477
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9478
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9479
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9480
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9481
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9482
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9483
    }/*function_byte_to_dint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9484
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9485
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9486
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9487
 *BYTE_TO_LINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9488
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9489
    case function_byte_to_lint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9490
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9491
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9492
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9493
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9494
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9495
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9496
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9497
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9498
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9499
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9500
            if(search_expression_type->is_same_type(&search_constant_type_c::byte_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9501
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9502
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9503
                symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9504
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9505
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9506
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9507
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9508
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9509
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9510
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9511
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9512
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9513
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9514
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9515
    }/*function_byte_to_lint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9516
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9517
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9518
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9519
 *BYTE_TO_USINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9520
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9521
    case function_byte_to_usint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9522
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9523
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9524
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9525
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9526
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9527
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9528
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9529
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9530
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9531
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9532
            if(search_expression_type->is_same_type(&search_constant_type_c::byte_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9533
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9534
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9535
                symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9536
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9537
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9538
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9539
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9540
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9541
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9542
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9543
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9544
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9545
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9546
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9547
    }/*function_byte_to_usint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9548
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9549
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9550
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9551
 *BYTE_TO_UINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9552
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9553
    case function_byte_to_uint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9554
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9555
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9556
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9557
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9558
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9559
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9560
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9561
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9562
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9563
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9564
            if(search_expression_type->is_same_type(&search_constant_type_c::byte_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9565
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9566
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9567
                symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9568
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9569
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9570
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9571
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9572
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9573
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9574
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9575
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9576
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9577
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9578
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9579
    }/*function_byte_to_uint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9580
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9581
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9582
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9583
 *BYTE_TO_UDINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9584
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9585
    case function_byte_to_udint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9586
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9587
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9588
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9589
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9590
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9591
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9592
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9593
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9594
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9595
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9596
            if(search_expression_type->is_same_type(&search_constant_type_c::byte_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9597
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9598
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9599
                symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9600
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9601
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9602
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9603
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9604
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9605
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9606
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9607
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9608
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9609
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9610
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9611
    }/*function_byte_to_udint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9612
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9613
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9614
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9615
 *BYTE_TO_ULINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9616
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9617
    case function_byte_to_ulint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9618
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9619
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9620
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9621
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9622
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9623
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9624
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9625
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9626
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9627
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9628
            if(search_expression_type->is_same_type(&search_constant_type_c::byte_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9629
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9630
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9631
                symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9632
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9633
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9634
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9635
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9636
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9637
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9638
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9639
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9640
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9641
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9642
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9643
    }/*function_byte_to_ulint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9644
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9645
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9646
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9647
 *BYTE_TO_REAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9648
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9649
    case function_byte_to_real :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9650
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9651
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9652
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9653
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9654
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9655
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9656
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9657
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9658
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9659
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9660
            if(search_expression_type->is_same_type(&search_constant_type_c::byte_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9661
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9662
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9663
                symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9664
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9665
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9666
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9667
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9668
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9669
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9670
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9671
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9672
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9673
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9674
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9675
    }/*function_byte_to_real*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9676
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9677
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9678
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9679
 *BYTE_TO_LREAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9680
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9681
    case function_byte_to_lreal :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9682
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9683
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9684
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9685
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9686
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9687
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9688
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9689
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9690
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9691
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9692
            if(search_expression_type->is_same_type(&search_constant_type_c::byte_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9693
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9694
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9695
                symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9696
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9697
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9698
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9699
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9700
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9701
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9702
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9703
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9704
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9705
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9706
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9707
    }/*function_byte_to_lreal*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9708
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9709
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9710
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9711
 *BYTE_TO_TIME
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9712
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9713
    case function_byte_to_time :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9714
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9715
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9716
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9717
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9718
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9719
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9720
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9721
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9722
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9723
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9724
            if(search_expression_type->is_same_type(&search_constant_type_c::byte_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9725
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9726
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9727
                symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9728
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9729
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9730
                s4o.print(")__int_to_time(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9731
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9732
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9733
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9734
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9735
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9736
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9737
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9738
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9739
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9740
    }/*function_byte_to_time*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9741
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9742
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9743
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9744
 *BYTE_TO_DATE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9745
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9746
    case function_byte_to_date :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9747
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9748
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9749
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9750
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9751
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9752
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9753
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9754
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9755
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9756
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9757
            if(search_expression_type->is_same_type(&search_constant_type_c::byte_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9758
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9759
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9760
                symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9761
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9762
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9763
                s4o.print(")__int_to_time(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9764
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9765
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9766
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9767
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9768
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9769
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9770
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9771
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9772
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9773
    }/*function_byte_to_date*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9774
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9775
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9776
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9777
 *BYTE_TO_TOD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9778
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9779
    case function_byte_to_tod :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9780
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9781
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9782
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9783
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9784
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9785
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9786
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9787
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9788
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9789
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9790
            if(search_expression_type->is_same_type(&search_constant_type_c::byte_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9791
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9792
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9793
                symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9794
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9795
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9796
                s4o.print(")__int_to_time(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9797
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9798
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9799
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9800
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9801
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9802
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9803
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9804
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9805
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9806
    }/*function_byte_to_tod*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9807
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9808
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9809
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9810
 *BYTE_TO_DT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9811
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9812
    case function_byte_to_dt :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9813
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9814
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9815
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9816
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9817
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9818
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9819
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9820
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9821
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9822
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9823
            if(search_expression_type->is_same_type(&search_constant_type_c::byte_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9824
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9825
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9826
                symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9827
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9828
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9829
                s4o.print(")__int_to_time(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9830
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9831
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9832
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9833
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9834
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9835
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9836
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9837
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9838
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9839
    }/*function_byte_to_dt*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9840
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9841
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9842
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9843
 *BYTE_TO_STRING
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9844
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9845
    case function_byte_to_string :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9846
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9847
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9848
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9849
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9850
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9851
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9852
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9853
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9854
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9855
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9856
            if(search_expression_type->is_same_type(&search_constant_type_c::byte_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  9857
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  9858
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  9859
                symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  9860
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
  9861
                return_type_symbol->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9862
                s4o.print(")__bit_to_string(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9863
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9864
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9865
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9866
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9867
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9868
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9869
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9870
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9871
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9872
    }/*function_byte_to_string*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9873
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9874
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9875
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9876
 *BYTE_TO_WORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9877
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9878
    case function_byte_to_word :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9879
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9880
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9881
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9882
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9883
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9884
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9885
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9886
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9887
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9888
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9889
            if(search_expression_type->is_same_type(&search_constant_type_c::byte_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9890
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9891
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9892
                symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9893
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9894
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9895
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9896
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9897
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9898
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9899
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9900
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9901
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9902
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9903
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9904
    }/*function_byte_to_word*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9905
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9906
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9907
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9908
 *BYTE_TO_DWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9909
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9910
    case function_byte_to_dword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9911
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9912
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9913
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9914
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9915
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9916
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9917
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9918
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9919
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9920
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9921
            if(search_expression_type->is_same_type(&search_constant_type_c::byte_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9922
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9923
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9924
                symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9925
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9926
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9927
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9928
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9929
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9930
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9931
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9932
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9933
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9934
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9935
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9936
    }/*function_byte_to_dword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9937
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9938
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9939
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9940
 *BYTE_TO_LWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9941
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9942
    case function_byte_to_lword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9943
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9944
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9945
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9946
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9947
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9948
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9949
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9950
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9951
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9952
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9953
            if(search_expression_type->is_same_type(&search_constant_type_c::byte_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9954
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9955
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9956
                symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9957
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9958
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9959
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9960
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9961
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9962
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9963
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9964
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9965
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9966
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9967
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9968
    }/*function_byte_to_lword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9969
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9970
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9971
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9972
 *WORD_TO_BOOL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9973
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9974
    case function_word_to_bool :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9975
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9976
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9977
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9978
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9979
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9980
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9981
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9982
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9983
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9984
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9985
            if(search_expression_type->is_same_type(&search_constant_type_c::word_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9986
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9987
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9988
                symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9989
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9990
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9991
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9992
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9993
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9994
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9995
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9996
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9997
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9998
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
  9999
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10000
    }/*function_word_to_bool*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10001
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10002
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10003
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10004
 *WORD_TO_SINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10005
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10006
    case function_word_to_sint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10007
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10008
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10009
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10010
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10011
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10012
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10013
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10014
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10015
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10016
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10017
            if(search_expression_type->is_same_type(&search_constant_type_c::word_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10018
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10019
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10020
                symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10021
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10022
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10023
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10024
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10025
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10026
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10027
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10028
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10029
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10030
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10031
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10032
    }/*function_word_to_sint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10033
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10034
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10035
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10036
 *WORD_TO_INT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10037
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10038
    case function_word_to_int :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10039
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10040
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10041
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10042
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10043
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10044
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10045
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10046
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10047
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10048
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10049
            if(search_expression_type->is_same_type(&search_constant_type_c::word_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10050
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10051
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10052
                symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10053
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10054
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10055
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10056
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10057
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10058
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10059
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10060
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10061
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10062
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10063
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10064
    }/*function_word_to_int*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10065
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10066
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10067
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10068
 *WORD_TO_DINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10069
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10070
    case function_word_to_dint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10071
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10072
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10073
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10074
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10075
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10076
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10077
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10078
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10079
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10080
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10081
            if(search_expression_type->is_same_type(&search_constant_type_c::word_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10082
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10083
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10084
                symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10085
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10086
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10087
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10088
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10089
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10090
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10091
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10092
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10093
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10094
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10095
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10096
    }/*function_word_to_dint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10097
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10098
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10099
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10100
 *WORD_TO_LINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10101
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10102
    case function_word_to_lint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10103
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10104
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10105
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10106
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10107
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10108
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10109
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10110
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10111
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10112
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10113
            if(search_expression_type->is_same_type(&search_constant_type_c::word_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10114
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10115
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10116
                symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10117
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10118
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10119
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10120
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10121
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10122
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10123
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10124
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10125
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10126
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10127
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10128
    }/*function_word_to_lint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10129
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10130
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10131
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10132
 *WORD_TO_USINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10133
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10134
    case function_word_to_usint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10135
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10136
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10137
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10138
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10139
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10140
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10141
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10142
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10143
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10144
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10145
            if(search_expression_type->is_same_type(&search_constant_type_c::word_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10146
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10147
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10148
                symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10149
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10150
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10151
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10152
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10153
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10154
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10155
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10156
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10157
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10158
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10159
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10160
    }/*function_word_to_usint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10161
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10162
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10163
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10164
 *WORD_TO_UINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10165
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10166
    case function_word_to_uint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10167
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10168
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10169
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10170
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10171
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10172
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10173
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10174
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10175
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10176
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10177
            if(search_expression_type->is_same_type(&search_constant_type_c::word_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10178
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10179
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10180
                symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10181
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10182
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10183
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10184
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10185
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10186
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10187
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10188
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10189
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10190
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10191
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10192
    }/*function_word_to_uint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10193
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10194
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10195
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10196
 *WORD_TO_UDINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10197
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10198
    case function_word_to_udint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10199
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10200
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10201
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10202
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10203
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10204
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10205
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10206
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10207
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10208
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10209
            if(search_expression_type->is_same_type(&search_constant_type_c::word_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10210
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10211
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10212
                symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10213
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10214
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10215
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10216
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10217
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10218
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10219
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10220
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10221
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10222
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10223
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10224
    }/*function_word_to_udint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10225
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10226
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10227
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10228
 *WORD_TO_ULINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10229
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10230
    case function_word_to_ulint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10231
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10232
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10233
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10234
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10235
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10236
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10237
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10238
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10239
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10240
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10241
            if(search_expression_type->is_same_type(&search_constant_type_c::word_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10242
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10243
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10244
                symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10245
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10246
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10247
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10248
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10249
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10250
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10251
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10252
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10253
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10254
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10255
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10256
    }/*function_word_to_ulint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10257
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10258
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10259
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10260
 *WORD_TO_REAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10261
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10262
    case function_word_to_real :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10263
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10264
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10265
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10266
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10267
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10268
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10269
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10270
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10271
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10272
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10273
            if(search_expression_type->is_same_type(&search_constant_type_c::word_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10274
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10275
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10276
                symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10277
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10278
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10279
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10280
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10281
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10282
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10283
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10284
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10285
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10286
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10287
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10288
    }/*function_word_to_real*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10289
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10290
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10291
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10292
 *WORD_TO_LREAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10293
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10294
    case function_word_to_lreal :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10295
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10296
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10297
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10298
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10299
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10300
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10301
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10302
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10303
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10304
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10305
            if(search_expression_type->is_same_type(&search_constant_type_c::word_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10306
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10307
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10308
                symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10309
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10310
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10311
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10312
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10313
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10314
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10315
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10316
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10317
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10318
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10319
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10320
    }/*function_word_to_lreal*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10321
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10322
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10323
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10324
 *WORD_TO_TIME
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10325
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10326
    case function_word_to_time :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10327
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10328
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10329
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10330
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10331
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10332
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10333
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10334
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10335
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10336
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10337
            if(search_expression_type->is_same_type(&search_constant_type_c::word_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10338
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10339
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10340
                symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10341
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10342
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10343
                s4o.print(")__int_to_time(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10344
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10345
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10346
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10347
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10348
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10349
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10350
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10351
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10352
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10353
    }/*function_word_to_time*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10354
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10355
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10356
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10357
 *WORD_TO_DATE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10358
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10359
    case function_word_to_date :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10360
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10361
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10362
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10363
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10364
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10365
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10366
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10367
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10368
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10369
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10370
            if(search_expression_type->is_same_type(&search_constant_type_c::word_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10371
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10372
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10373
                symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10374
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10375
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10376
                s4o.print(")__int_to_time(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10377
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10378
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10379
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10380
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10381
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10382
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10383
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10384
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10385
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10386
    }/*function_word_to_date*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10387
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10388
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10389
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10390
 *WORD_TO_TOD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10391
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10392
    case function_word_to_tod :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10393
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10394
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10395
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10396
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10397
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10398
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10399
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10400
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10401
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10402
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10403
            if(search_expression_type->is_same_type(&search_constant_type_c::word_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10404
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10405
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10406
                symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10407
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10408
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10409
                s4o.print(")__int_to_time(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10410
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10411
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10412
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10413
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10414
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10415
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10416
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10417
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10418
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10419
    }/*function_word_to_tod*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10420
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10421
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10422
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10423
 *WORD_TO_DT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10424
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10425
    case function_word_to_dt :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10426
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10427
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10428
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10429
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10430
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10431
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10432
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10433
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10434
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10435
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10436
            if(search_expression_type->is_same_type(&search_constant_type_c::word_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10437
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10438
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10439
                symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10440
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10441
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10442
                s4o.print(")__int_to_time(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10443
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10444
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10445
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10446
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10447
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10448
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10449
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10450
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10451
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10452
    }/*function_word_to_dt*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10453
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10454
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10455
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10456
 *WORD_TO_STRING
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10457
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10458
    case function_word_to_string :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10459
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10460
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10461
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10462
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10463
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10464
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10465
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10466
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10467
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10468
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10469
            if(search_expression_type->is_same_type(&search_constant_type_c::word_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10470
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10471
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10472
                symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10473
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10474
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10475
                s4o.print(")__bit_to_string(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10476
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10477
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10478
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10479
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10480
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10481
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10482
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10483
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10484
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10485
    }/*function_word_to_string*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10486
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10487
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10488
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10489
 *WORD_TO_BYTE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10490
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10491
    case function_word_to_byte :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10492
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10493
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10494
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10495
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10496
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10497
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10498
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10499
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10500
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10501
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10502
            if(search_expression_type->is_same_type(&search_constant_type_c::word_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 10503
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 10504
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 10505
                symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 10506
                s4o.print("(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 10507
                return_type_symbol->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10508
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10509
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10510
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10511
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10512
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10513
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10514
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10515
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10516
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10517
    }/*function_word_to_byte*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10518
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10519
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10520
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10521
 *WORD_TO_DWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10522
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10523
    case function_word_to_dword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10524
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10525
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10526
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10527
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10528
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10529
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10530
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10531
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10532
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10533
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10534
            if(search_expression_type->is_same_type(&search_constant_type_c::word_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10535
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10536
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10537
                symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10538
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10539
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10540
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10541
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10542
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10543
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10544
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10545
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10546
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10547
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10548
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10549
    }/*function_word_to_dword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10550
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10551
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10552
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10553
 *WORD_TO_LWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10554
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10555
    case function_word_to_lword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10556
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10557
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10558
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10559
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10560
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10561
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10562
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10563
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10564
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10565
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10566
            if(search_expression_type->is_same_type(&search_constant_type_c::word_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10567
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10568
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10569
                symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10570
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10571
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10572
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10573
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10574
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10575
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10576
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10577
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10578
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10579
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10580
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10581
    }/*function_word_to_lword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10582
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10583
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10584
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10585
 *DWORD_TO_BOOL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10586
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10587
    case function_dword_to_bool :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10588
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10589
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10590
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10591
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10592
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10593
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10594
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10595
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10596
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10597
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10598
            if(search_expression_type->is_same_type(&search_constant_type_c::dword_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10599
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10600
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10601
                symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10602
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10603
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10604
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10605
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10606
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10607
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10608
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10609
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10610
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10611
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10612
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10613
    }/*function_dword_to_bool*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10614
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10615
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10616
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10617
 *DWORD_TO_SINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10618
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10619
    case function_dword_to_sint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10620
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10621
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10622
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10623
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10624
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10625
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10626
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10627
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10628
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10629
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10630
            if(search_expression_type->is_same_type(&search_constant_type_c::dword_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10631
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10632
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10633
                symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10634
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10635
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10636
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10637
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10638
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10639
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10640
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10641
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10642
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10643
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10644
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10645
    }/*function_dword_to_sint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10646
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10647
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10648
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10649
 *DWORD_TO_INT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10650
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10651
    case function_dword_to_int :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10652
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10653
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10654
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10655
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10656
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10657
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10658
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10659
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10660
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10661
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10662
            if(search_expression_type->is_same_type(&search_constant_type_c::dword_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10663
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10664
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10665
                symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10666
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10667
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10668
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10669
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10670
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10671
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10672
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10673
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10674
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10675
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10676
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10677
    }/*function_dword_to_int*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10678
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10679
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10680
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10681
 *DWORD_TO_DINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10682
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10683
    case function_dword_to_dint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10684
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10685
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10686
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10687
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10688
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10689
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10690
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10691
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10692
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10693
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10694
            if(search_expression_type->is_same_type(&search_constant_type_c::dword_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10695
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10696
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10697
                symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10698
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10699
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10700
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10701
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10702
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10703
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10704
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10705
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10706
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10707
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10708
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10709
    }/*function_dword_to_dint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10710
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10711
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10712
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10713
 *DWORD_TO_LINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10714
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10715
    case function_dword_to_lint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10716
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10717
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10718
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10719
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10720
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10721
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10722
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10723
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10724
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10725
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10726
            if(search_expression_type->is_same_type(&search_constant_type_c::dword_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10727
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10728
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10729
                symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10730
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10731
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10732
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10733
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10734
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10735
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10736
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10737
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10738
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10739
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10740
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10741
    }/*function_dword_to_lint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10742
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10743
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10744
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10745
 *DWORD_TO_USINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10746
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10747
    case function_dword_to_usint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10748
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10749
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10750
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10751
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10752
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10753
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10754
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10755
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10756
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10757
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10758
            if(search_expression_type->is_same_type(&search_constant_type_c::dword_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10759
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10760
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10761
                symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10762
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10763
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10764
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10765
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10766
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10767
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10768
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10769
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10770
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10771
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10772
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10773
    }/*function_dword_to_usint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10774
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10775
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10776
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10777
 *DWORD_TO_UINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10778
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10779
    case function_dword_to_uint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10780
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10781
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10782
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10783
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10784
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10785
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10786
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10787
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10788
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10789
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10790
            if(search_expression_type->is_same_type(&search_constant_type_c::dword_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10791
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10792
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10793
                symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10794
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10795
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10796
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10797
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10798
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10799
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10800
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10801
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10802
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10803
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10804
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10805
    }/*function_dword_to_uint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10806
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10807
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10808
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10809
 *DWORD_TO_UDINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10810
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10811
    case function_dword_to_udint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10812
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10813
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10814
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10815
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10816
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10817
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10818
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10819
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10820
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10821
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10822
            if(search_expression_type->is_same_type(&search_constant_type_c::dword_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10823
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10824
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10825
                symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10826
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10827
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10828
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10829
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10830
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10831
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10832
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10833
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10834
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10835
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10836
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10837
    }/*function_dword_to_udint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10838
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10839
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10840
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10841
 *DWORD_TO_ULINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10842
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10843
    case function_dword_to_ulint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10844
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10845
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10846
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10847
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10848
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10849
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10850
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10851
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10852
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10853
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10854
            if(search_expression_type->is_same_type(&search_constant_type_c::dword_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10855
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10856
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10857
                symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10858
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10859
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10860
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10861
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10862
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10863
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10864
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10865
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10866
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10867
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10868
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10869
    }/*function_dword_to_ulint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10870
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10871
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10872
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10873
 *DWORD_TO_REAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10874
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10875
    case function_dword_to_real :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10876
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10877
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10878
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10879
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10880
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10881
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10882
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10883
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10884
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10885
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10886
            if(search_expression_type->is_same_type(&search_constant_type_c::dword_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10887
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10888
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10889
                symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10890
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10891
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10892
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10893
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10894
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10895
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10896
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10897
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10898
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10899
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10900
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10901
    }/*function_dword_to_real*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10902
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10903
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10904
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10905
 *DWORD_TO_LREAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10906
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10907
    case function_dword_to_lreal :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10908
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10909
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10910
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10911
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10912
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10913
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10914
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10915
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10916
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10917
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10918
            if(search_expression_type->is_same_type(&search_constant_type_c::dword_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10919
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10920
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10921
                symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10922
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10923
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10924
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10925
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10926
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10927
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10928
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10929
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10930
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10931
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10932
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10933
    }/*function_dword_to_lreal*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10934
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10935
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10936
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10937
 *DWORD_TO_TIME
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10938
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10939
    case function_dword_to_time :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10940
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10941
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10942
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10943
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10944
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10945
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10946
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10947
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10948
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10949
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10950
            if(search_expression_type->is_same_type(&search_constant_type_c::dword_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10951
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10952
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10953
                symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10954
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10955
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10956
                s4o.print(")__int_to_time(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10957
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10958
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10959
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10960
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10961
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10962
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10963
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10964
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10965
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10966
    }/*function_dword_to_time*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10967
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10968
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10969
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10970
 *DWORD_TO_DATE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10971
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10972
    case function_dword_to_date :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10973
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10974
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10975
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10976
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10977
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10978
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10979
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10980
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10981
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10982
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10983
            if(search_expression_type->is_same_type(&search_constant_type_c::dword_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10984
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10985
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10986
                symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10987
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10988
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10989
                s4o.print(")__int_to_time(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10990
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10991
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10992
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10993
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10994
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10995
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10996
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10997
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10998
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 10999
    }/*function_dword_to_date*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11000
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11001
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11002
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11003
 *DWORD_TO_TOD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11004
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11005
    case function_dword_to_tod :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11006
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11007
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11008
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11009
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11010
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11011
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11012
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11013
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11014
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11015
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11016
            if(search_expression_type->is_same_type(&search_constant_type_c::dword_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11017
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11018
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11019
                symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11020
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11021
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11022
                s4o.print(")__int_to_time(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11023
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11024
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11025
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11026
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11027
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11028
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11029
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11030
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11031
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11032
    }/*function_dword_to_tod*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11033
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11034
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11035
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11036
 *DWORD_TO_DT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11037
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11038
    case function_dword_to_dt :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11039
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11040
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11041
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11042
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11043
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11044
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11045
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11046
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11047
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11048
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11049
            if(search_expression_type->is_same_type(&search_constant_type_c::dword_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11050
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11051
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11052
                symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11053
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11054
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11055
                s4o.print(")__int_to_time(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11056
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11057
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11058
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11059
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11060
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11061
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11062
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11063
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11064
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11065
    }/*function_dword_to_dt*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11066
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11067
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11068
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11069
 *DWORD_TO_STRING
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11070
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11071
    case function_dword_to_string :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11072
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11073
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11074
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11075
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11076
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11077
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11078
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11079
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11080
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11081
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11082
            if(search_expression_type->is_same_type(&search_constant_type_c::dword_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11083
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11084
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11085
                symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11086
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11087
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11088
                s4o.print(")__bit_to_string(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11089
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11090
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11091
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11092
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11093
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11094
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11095
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11096
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11097
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11098
    }/*function_dword_to_string*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11099
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11100
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11101
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11102
 *DWORD_TO_BYTE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11103
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11104
    case function_dword_to_byte :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11105
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11106
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11107
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11108
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11109
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11110
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11111
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11112
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11113
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11114
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11115
            if(search_expression_type->is_same_type(&search_constant_type_c::dword_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11116
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11117
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11118
                symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11119
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11120
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11121
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11122
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11123
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11124
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11125
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11126
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11127
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11128
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11129
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11130
    }/*function_dword_to_byte*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11131
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11132
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11133
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11134
 *DWORD_TO_WORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11135
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11136
    case function_dword_to_word :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11137
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11138
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11139
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11140
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11141
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11142
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11143
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11144
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11145
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11146
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11147
            if(search_expression_type->is_same_type(&search_constant_type_c::dword_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11148
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11149
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11150
                symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11151
                s4o.print("(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11152
                return_type_symbol->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11153
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11154
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11155
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11156
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11157
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11158
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11159
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11160
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11161
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11162
    }/*function_dword_to_word*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11163
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11164
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11165
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11166
 *DWORD_TO_LWORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11167
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11168
    case function_dword_to_lword :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11169
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11170
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11171
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11172
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11173
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11174
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11175
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11176
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11177
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11178
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11179
            if(search_expression_type->is_same_type(&search_constant_type_c::dword_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11180
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11181
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11182
                symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11183
                s4o.print("(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11184
                return_type_symbol->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11185
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11186
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11187
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11188
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11189
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11190
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11191
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11192
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11193
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11194
    }/*function_dword_to_lword*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11195
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11196
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11197
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11198
 *LWORD_TO_BOOL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11199
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11200
    case function_lword_to_bool :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11201
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11202
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11203
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11204
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11205
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11206
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11207
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11208
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11209
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11210
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11211
            if(search_expression_type->is_same_type(&search_constant_type_c::lword_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11212
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11213
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11214
                symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11215
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11216
                return_type_symbol->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11217
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11218
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11219
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11220
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11221
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11222
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11223
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11224
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11225
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11226
    }/*function_lword_to_bool*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11227
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11228
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11229
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11230
 *LWORD_TO_SINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11231
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11232
    case function_lword_to_sint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11233
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11234
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11235
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11236
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11237
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11238
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11239
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11240
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11241
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11242
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11243
            if(search_expression_type->is_same_type(&search_constant_type_c::lword_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11244
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11245
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11246
                symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11247
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11248
                return_type_symbol->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11249
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11250
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11251
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11252
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11253
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11254
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11255
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11256
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11257
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11258
    }/*function_lword_to_sint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11259
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11260
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11261
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11262
 *LWORD_TO_INT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11263
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11264
    case function_lword_to_int :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11265
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11266
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11267
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11268
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11269
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11270
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11271
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11272
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11273
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11274
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11275
            if(search_expression_type->is_same_type(&search_constant_type_c::lword_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11276
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11277
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11278
                symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11279
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11280
                return_type_symbol->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11281
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11282
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11283
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11284
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11285
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11286
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11287
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11288
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11289
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11290
    }/*function_lword_to_int*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11291
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11292
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11293
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11294
 *LWORD_TO_DINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11295
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11296
    case function_lword_to_dint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11297
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11298
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11299
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11300
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11301
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11302
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11303
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11304
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11305
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11306
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11307
            if(search_expression_type->is_same_type(&search_constant_type_c::lword_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11308
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11309
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11310
                symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11311
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11312
                return_type_symbol->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11313
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11314
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11315
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11316
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11317
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11318
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11319
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11320
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11321
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11322
    }/*function_lword_to_dint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11323
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11324
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11325
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11326
 *LWORD_TO_LINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11327
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11328
    case function_lword_to_lint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11329
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11330
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11331
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11332
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11333
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11334
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11335
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11336
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11337
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11338
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11339
            if(search_expression_type->is_same_type(&search_constant_type_c::lword_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11340
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11341
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11342
                symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11343
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11344
                return_type_symbol->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11345
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11346
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11347
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11348
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11349
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11350
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11351
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11352
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11353
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11354
    }/*function_lword_to_lint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11355
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11356
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11357
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11358
 *LWORD_TO_USINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11359
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11360
    case function_lword_to_usint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11361
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11362
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11363
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11364
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11365
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11366
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11367
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11368
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11369
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11370
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11371
            if(search_expression_type->is_same_type(&search_constant_type_c::lword_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11372
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11373
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11374
                symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11375
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11376
                return_type_symbol->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11377
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11378
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11379
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11380
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11381
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11382
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11383
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11384
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11385
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11386
    }/*function_lword_to_usint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11387
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11388
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11389
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11390
 *LWORD_TO_UINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11391
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11392
    case function_lword_to_uint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11393
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11394
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11395
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11396
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11397
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11398
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11399
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11400
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11401
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11402
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11403
            if(search_expression_type->is_same_type(&search_constant_type_c::lword_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11404
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11405
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11406
                symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11407
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11408
                return_type_symbol->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11409
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11410
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11411
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11412
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11413
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11414
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11415
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11416
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11417
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11418
    }/*function_lword_to_uint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11419
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11420
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11421
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11422
 *LWORD_TO_UDINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11423
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11424
    case function_lword_to_udint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11425
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11426
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11427
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11428
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11429
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11430
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11431
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11432
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11433
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11434
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11435
            if(search_expression_type->is_same_type(&search_constant_type_c::lword_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11436
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11437
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11438
                symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11439
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11440
                return_type_symbol->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11441
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11442
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11443
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11444
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11445
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11446
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11447
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11448
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11449
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11450
    }/*function_lword_to_udint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11451
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11452
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11453
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11454
 *LWORD_TO_ULINT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11455
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11456
    case function_lword_to_ulint :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11457
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11458
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11459
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11460
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11461
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11462
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11463
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11464
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11465
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11466
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11467
            if(search_expression_type->is_same_type(&search_constant_type_c::lword_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11468
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11469
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11470
                symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11471
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11472
                return_type_symbol->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11473
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11474
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11475
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11476
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11477
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11478
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11479
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11480
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11481
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11482
    }/*function_lword_to_ulint*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11483
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11484
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11485
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11486
 *LWORD_TO_REAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11487
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11488
    case function_lword_to_real :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11489
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11490
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11491
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11492
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11493
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11494
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11495
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11496
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11497
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11498
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11499
            if(search_expression_type->is_same_type(&search_constant_type_c::lword_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11500
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11501
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11502
                symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11503
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11504
                return_type_symbol->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11505
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11506
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11507
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11508
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11509
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11510
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11511
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11512
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11513
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11514
    }/*function_lword_to_real*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11515
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11516
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11517
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11518
 *LWORD_TO_LREAL
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11519
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11520
    case function_lword_to_lreal :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11521
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11522
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11523
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11524
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11525
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11526
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11527
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11528
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11529
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11530
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11531
            if(search_expression_type->is_same_type(&search_constant_type_c::lword_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11532
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11533
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11534
                symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11535
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11536
                return_type_symbol->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11537
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11538
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11539
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11540
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11541
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11542
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11543
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11544
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11545
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11546
    }/*function_lword_to_lreal*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11547
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11548
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11549
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11550
 *LWORD_TO_TIME
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11551
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11552
    case function_lword_to_time :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11553
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11554
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11555
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11556
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11557
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11558
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11559
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11560
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11561
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11562
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11563
            if(search_expression_type->is_same_type(&search_constant_type_c::lword_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11564
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11565
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11566
                symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11567
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11568
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11569
                s4o.print(")__int_to_time(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11570
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11571
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11572
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11573
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11574
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11575
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11576
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11577
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11578
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11579
    }/*function_lword_to_time*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11580
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11581
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11582
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11583
 *LWORD_TO_DATE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11584
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11585
    case function_lword_to_date :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11586
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11587
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11588
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11589
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11590
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11591
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11592
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11593
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11594
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11595
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11596
            if(search_expression_type->is_same_type(&search_constant_type_c::lword_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11597
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11598
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11599
                symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11600
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11601
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11602
                s4o.print(")__int_to_time(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11603
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11604
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11605
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11606
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11607
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11608
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11609
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11610
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11611
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11612
    }/*function_lword_to_date*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11613
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11614
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11615
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11616
 *LWORD_TO_TOD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11617
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11618
    case function_lword_to_tod :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11619
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11620
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11621
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11622
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11623
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11624
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11625
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11626
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11627
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11628
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11629
            if(search_expression_type->is_same_type(&search_constant_type_c::lword_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11630
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11631
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11632
                symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11633
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11634
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11635
                s4o.print(")__int_to_time(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11636
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11637
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11638
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11639
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11640
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11641
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11642
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11643
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11644
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11645
    }/*function_lword_to_tod*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11646
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11647
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11648
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11649
 *LWORD_TO_DT
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11650
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11651
    case function_lword_to_dt :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11652
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11653
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11654
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11655
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11656
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11657
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11658
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11659
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11660
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11661
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11662
            if(search_expression_type->is_same_type(&search_constant_type_c::lword_type_name, last_type_symbol))
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11663
            {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11664
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11665
                symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11666
                s4o.print("(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11667
                return_type_symbol->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11668
                s4o.print(")__int_to_time(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11669
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11670
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11671
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11672
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11673
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11674
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11675
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11676
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11677
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11678
    }/*function_lword_to_dt*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11679
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11680
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11681
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11682
 *LWORD_TO_STRING
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11683
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11684
    case function_lword_to_string :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11685
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11686
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11687
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11688
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11689
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11690
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11691
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11692
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11693
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11694
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11695
            if(search_expression_type->is_same_type(&search_constant_type_c::lword_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11696
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11697
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11698
                symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11699
                s4o.print("(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11700
                return_type_symbol->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11701
                s4o.print(")__bit_to_string(");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11702
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11703
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11704
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11705
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11706
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11707
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11708
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11709
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11710
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11711
    }/*function_lword_to_string*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11712
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11713
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11714
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11715
 *LWORD_TO_BYTE
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11716
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11717
    case function_lword_to_byte :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11718
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11719
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11720
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11721
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11722
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11723
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11724
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11725
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11726
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11727
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11728
            if(search_expression_type->is_same_type(&search_constant_type_c::lword_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11729
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11730
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11731
                symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11732
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11733
                return_type_symbol->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11734
                s4o.print(")");
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11735
                IN_param_value->accept(*this);
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11736
                return NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11737
                
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11738
            }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11739
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11740
            ERROR;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11741
        }
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11742
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11743
    }/*function_lword_to_byte*/
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11744
    break;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11745
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11746
/****
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11747
 *LWORD_TO_WORD
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11748
 */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11749
    case function_lword_to_word :
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11750
    {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11751
        symbol_c *last_type_symbol = NULL;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11752
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11753
        {
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11754
            /* Get the value from a foo(<param_name> = <param_value>) style call */
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11755
            symbol_c *IN_param_value = &this->default_variable_name;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11756
        
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11757
            symbol_c *IN_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11758
            last_type_symbol = param_data_type;
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11759
            
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11760
            if(search_expression_type->is_same_type(&search_constant_type_c::lword_type_name, last_type_symbol))
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11761
            {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11762
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11763
                symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11764
                s4o.print("(");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11765
                return_type_symbol->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11766
                s4o.print(")");
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11767
                IN_param_value->accept(*this);
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11768
                return NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11769
                
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11770
            }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11771
            
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11772
            ERROR;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11773
        }
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11774
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11775
    }/*function_lword_to_word*/
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11776
    break;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11777
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11778
/****
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11779
 *LWORD_TO_DWORD
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11780
 */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11781
    case function_lword_to_dword :
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11782
    {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11783
        symbol_c *last_type_symbol = NULL;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11784
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11785
        {
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11786
            /* Get the value from a foo(<param_name> = <param_value>) style call */
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11787
            symbol_c *IN_param_value = &this->default_variable_name;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11788
        
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11789
            symbol_c *IN_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11790
            last_type_symbol = param_data_type;
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 11791
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11792
            if(search_expression_type->is_same_type(&search_constant_type_c::lword_type_name, last_type_symbol))
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11793
            {
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11794
        
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11795
                symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11796
                s4o.print("(");
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11797
                return_type_symbol->accept(*this);
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11798
                s4o.print(")");
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11799
                IN_param_value->accept(*this);
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11800
                return NULL;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11801
                
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11802
            }
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11803
            
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11804
            ERROR;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11805
        }
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11806
        
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11807
    }/*function_lword_to_dword*/
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11808
    break;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11809
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11810
/****
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11811
 *TRUNC
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11812
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11813
    case function_trunc :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11814
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11815
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11816
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11817
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11818
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11819
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11820
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11821
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11822
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11823
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11824
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11825
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11826
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11827
                symbol_c * return_type_symbol = &search_constant_type_c::constant_int_type_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11828
                s4o.print("(int)");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11829
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11830
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11831
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11832
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11833
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11834
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11835
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11836
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11837
    }/*function_trunc*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11838
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11839
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11840
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11841
 *BCD_TO_USINT
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11842
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11843
    case function_bcd_to_usint :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11844
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11845
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11846
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11847
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11848
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11849
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11850
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11851
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11852
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11853
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11854
            if(search_expression_type->is_same_type(&search_constant_type_c::byte_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11855
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11856
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11857
                symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11858
                s4o.print("(");
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11859
                return_type_symbol->accept(*this);
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11860
                s4o.print(")__bcd_to_uint(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11861
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11862
                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11863
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11864
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11865
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11866
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11867
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11868
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11869
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11870
    }/*function_bcd_to_usint*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11871
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11872
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11873
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11874
 *BCD_TO_UINT
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11875
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11876
    case function_bcd_to_uint :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11877
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11878
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11879
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11880
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11881
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11882
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11883
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11884
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11885
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11886
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11887
            if(search_expression_type->is_same_type(&search_constant_type_c::word_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11888
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11889
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11890
                symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11891
                s4o.print("(");
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11892
                return_type_symbol->accept(*this);
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11893
                s4o.print(")__bcd_to_uint(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11894
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11895
                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11896
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11897
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11898
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11899
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11900
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11901
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11902
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11903
    }/*function_bcd_to_uint*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11904
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11905
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11906
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11907
 *BCD_TO_UDINT
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11908
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11909
    case function_bcd_to_udint :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11910
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11911
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11912
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11913
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11914
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11915
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11916
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11917
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11918
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11919
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11920
            if(search_expression_type->is_same_type(&search_constant_type_c::dword_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11921
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11922
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11923
                symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11924
                s4o.print("(");
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11925
                return_type_symbol->accept(*this);
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11926
                s4o.print(")__bcd_to_uint(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11927
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11928
                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11929
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11930
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11931
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11932
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11933
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11934
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11935
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11936
    }/*function_bcd_to_udint*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11937
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11938
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11939
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11940
 *BCD_TO_ULINT
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11941
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11942
    case function_bcd_to_ulint :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11943
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11944
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11945
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11946
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11947
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11948
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11949
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11950
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11951
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11952
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11953
            if(search_expression_type->is_same_type(&search_constant_type_c::lword_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11954
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11955
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11956
                symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11957
                s4o.print("(");
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11958
                return_type_symbol->accept(*this);
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11959
                s4o.print(")__bcd_to_uint(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11960
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11961
                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11962
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11963
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11964
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11965
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11966
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11967
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11968
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11969
    }/*function_bcd_to_ulint*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11970
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11971
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11972
/****
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11973
 *USINT_TO_BCD
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11974
 */
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11975
    case function_usint_to_bcd :
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11976
    {
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11977
        symbol_c *last_type_symbol = NULL;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11978
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11979
        {
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11980
            /* Get the value from a foo(<param_name> = <param_value>) style call */
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11981
            symbol_c *IN_param_value = &this->default_variable_name;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11982
        
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11983
            symbol_c *IN_type_symbol = param_data_type;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11984
            last_type_symbol = param_data_type;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11985
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 11986
            if(search_expression_type->is_same_type(&search_constant_type_c::usint_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11987
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11988
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 11989
                symbol_c * return_type_symbol = &search_constant_type_c::constant_int_type_name;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11990
                s4o.print("(");
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11991
                return_type_symbol->accept(*this);
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11992
                s4o.print(")__uint_to_bcd(");
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11993
                IN_param_value->accept(*this);
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11994
                s4o.print(")");
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11995
                return NULL;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11996
                
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11997
            }
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11998
            
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 11999
            ERROR;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12000
        }
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12001
        
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12002
    }/*function_usint_to_bcd*/
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12003
    break;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12004
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12005
/****
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12006
 *UINT_TO_BCD
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12007
 */
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12008
    case function_uint_to_bcd :
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12009
    {
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12010
        symbol_c *last_type_symbol = NULL;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12011
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12012
        {
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12013
            /* Get the value from a foo(<param_name> = <param_value>) style call */
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12014
            symbol_c *IN_param_value = &this->default_variable_name;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12015
        
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12016
            symbol_c *IN_type_symbol = param_data_type;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12017
            last_type_symbol = param_data_type;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12018
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12019
            if(search_expression_type->is_same_type(&search_constant_type_c::uint_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12020
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12021
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12022
                symbol_c * return_type_symbol = &search_constant_type_c::constant_int_type_name;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12023
                s4o.print("(");
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12024
                return_type_symbol->accept(*this);
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12025
                s4o.print(")__uint_to_bcd(");
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12026
                IN_param_value->accept(*this);
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12027
                s4o.print(")");
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12028
                return NULL;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12029
                
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12030
            }
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12031
            
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12032
            ERROR;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12033
        }
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12034
        
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12035
    }/*function_uint_to_bcd*/
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12036
    break;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12037
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12038
/****
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12039
 *UDINT_TO_BCD
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12040
 */
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12041
    case function_udint_to_bcd :
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12042
    {
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12043
        symbol_c *last_type_symbol = NULL;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12044
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12045
        {
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12046
            /* Get the value from a foo(<param_name> = <param_value>) style call */
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12047
            symbol_c *IN_param_value = &this->default_variable_name;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12048
        
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12049
            symbol_c *IN_type_symbol = param_data_type;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12050
            last_type_symbol = param_data_type;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12051
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12052
            if(search_expression_type->is_same_type(&search_constant_type_c::udint_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12053
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12054
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12055
                symbol_c * return_type_symbol = &search_constant_type_c::constant_int_type_name;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12056
                s4o.print("(");
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12057
                return_type_symbol->accept(*this);
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12058
                s4o.print(")__uint_to_bcd(");
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12059
                IN_param_value->accept(*this);
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12060
                s4o.print(")");
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12061
                return NULL;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12062
                
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12063
            }
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12064
            
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12065
            ERROR;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12066
        }
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12067
        
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12068
    }/*function_udint_to_bcd*/
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12069
    break;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12070
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12071
/****
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12072
 *ULINT_TO_BCD
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12073
 */
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12074
    case function_ulint_to_bcd :
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12075
    {
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12076
        symbol_c *last_type_symbol = NULL;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12077
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12078
        {
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12079
            /* Get the value from a foo(<param_name> = <param_value>) style call */
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12080
            symbol_c *IN_param_value = &this->default_variable_name;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12081
        
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12082
            symbol_c *IN_type_symbol = param_data_type;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12083
            last_type_symbol = param_data_type;
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12084
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12085
            if(search_expression_type->is_same_type(&search_constant_type_c::ulint_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12086
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12087
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12088
                symbol_c * return_type_symbol = &search_constant_type_c::constant_int_type_name;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12089
                s4o.print("(");
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12090
                return_type_symbol->accept(*this);
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12091
                s4o.print(")__uint_to_bcd(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12092
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12093
                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12094
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12095
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12096
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12097
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12098
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12099
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12100
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12101
    }/*function_ulint_to_bcd*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12102
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12103
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12104
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12105
 *DATE_AND_TIME_TO_TIME_OF_DAY
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12106
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12107
    case function_date_and_time_to_time_of_day :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12108
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12109
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12110
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12111
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12112
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12113
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12114
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12115
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12116
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12117
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12118
            if(search_expression_type->is_same_type(&search_constant_type_c::dt_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12119
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12120
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12121
                symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12122
                s4o.print("__date_and_time_to_time_of_day(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12123
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12124
                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12125
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12126
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12127
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12128
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12129
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12130
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12131
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12132
    }/*function_date_and_time_to_time_of_day*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12133
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12134
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12135
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12136
 *DATE_AND_TIME_TO_DATE
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12137
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12138
    case function_date_and_time_to_date :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12139
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12140
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12141
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12142
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12143
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12144
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12145
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12146
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12147
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12148
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12149
            if(search_expression_type->is_same_type(&search_constant_type_c::dt_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12150
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12151
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12152
                symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12153
                s4o.print("__date_and_time_to_date(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12154
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12155
                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12156
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12157
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12158
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12159
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12160
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12161
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12162
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12163
    }/*function_date_and_time_to_date*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12164
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12165
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12166
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12167
 *ABS
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12168
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12169
    case function_abs :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12170
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12171
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12172
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12173
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12174
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12175
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12176
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12177
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12178
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12179
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12180
            if(search_expression_type->is_num_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12181
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12182
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12183
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12184
                s4o.print("__abs_");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12185
                IN_type_symbol->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12186
                s4o.print("(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12187
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12188
                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12189
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12190
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12191
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12192
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12193
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12194
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12195
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12196
    }/*function_abs*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12197
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12198
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12199
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12200
 *SQRT
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12201
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12202
    case function_sqrt :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12203
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12204
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12205
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12206
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12207
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12208
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12209
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12210
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12211
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12212
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12213
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12214
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12215
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12216
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12217
                s4o.print("sqrt(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12218
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12219
                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12220
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12221
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12222
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12223
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12224
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12225
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12226
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12227
    }/*function_sqrt*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12228
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12229
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12230
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12231
 *LN
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12232
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12233
    case function_ln :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12234
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12235
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12236
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12237
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12238
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12239
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12240
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12241
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12242
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12243
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12244
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12245
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12246
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12247
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12248
                s4o.print("ln(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12249
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12250
                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12251
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12252
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12253
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12254
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12255
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12256
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12257
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12258
    }/*function_ln*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12259
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12260
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12261
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12262
 *LOG
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12263
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12264
    case function_log :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12265
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12266
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12267
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12268
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12269
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12270
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12271
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12272
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12273
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12274
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12275
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12276
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12277
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12278
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12279
                s4o.print("log(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12280
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12281
                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12282
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12283
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12284
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12285
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12286
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12287
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12288
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12289
    }/*function_log*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12290
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12291
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12292
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12293
 *EXP
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12294
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12295
    case function_exp :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12296
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12297
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12298
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12299
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12300
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12301
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12302
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12303
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12304
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12305
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12306
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12307
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12308
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12309
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12310
                s4o.print("exp(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12311
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12312
                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12313
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12314
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12315
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12316
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12317
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12318
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12319
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12320
    }/*function_exp*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12321
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12322
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12323
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12324
 *SIN
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12325
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12326
    case function_sin :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12327
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12328
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12329
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12330
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12331
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12332
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12333
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12334
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12335
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12336
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12337
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12338
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12339
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12340
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12341
                s4o.print("sin(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12342
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12343
                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12344
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12345
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12346
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12347
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12348
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12349
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12350
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12351
    }/*function_sin*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12352
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12353
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12354
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12355
 *COS
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12356
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12357
    case function_cos :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12358
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12359
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12360
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12361
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12362
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12363
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12364
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12365
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12366
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12367
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12368
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12369
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12370
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12371
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12372
                s4o.print("cos(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12373
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12374
                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12375
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12376
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12377
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12378
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12379
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12380
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12381
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12382
    }/*function_cos*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12383
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12384
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12385
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12386
 *TAN
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12387
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12388
    case function_tan :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12389
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12390
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12391
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12392
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12393
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12394
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12395
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12396
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12397
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12398
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12399
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12400
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12401
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12402
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12403
                s4o.print("tan(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12404
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12405
                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12406
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12407
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12408
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12409
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12410
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12411
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12412
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12413
    }/*function_tan*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12414
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12415
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12416
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12417
 *ASIN
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12418
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12419
    case function_asin :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12420
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12421
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12422
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12423
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12424
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12425
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12426
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12427
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12428
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12429
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12430
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12431
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12432
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12433
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12434
                s4o.print("asin(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12435
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12436
                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12437
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12438
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12439
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12440
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12441
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12442
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12443
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12444
    }/*function_asin*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12445
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12446
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12447
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12448
 *ACOS
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12449
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12450
    case function_acos :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12451
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12452
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12453
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12454
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12455
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12456
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12457
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12458
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12459
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12460
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12461
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12462
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12463
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12464
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12465
                s4o.print("acos(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12466
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12467
                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12468
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12469
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12470
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12471
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12472
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12473
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12474
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12475
    }/*function_acos*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12476
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12477
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12478
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12479
 *ATAN
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12480
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12481
    case function_atan :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12482
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12483
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12484
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12485
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12486
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12487
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12488
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12489
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12490
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12491
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12492
            if(search_expression_type->is_real_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12493
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12494
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12495
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12496
                s4o.print("atan(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12497
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12498
                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12499
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12500
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12501
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12502
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12503
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12504
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12505
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12506
    }/*function_atan*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12507
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12508
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12509
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12510
 *ADD
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12511
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12512
    case function_add :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12513
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12514
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12515
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12516
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12517
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12518
            symbol_c *IN1_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12519
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12520
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12521
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12522
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12523
            if(search_expression_type->is_num_type(IN1_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12524
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12525
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12526
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12527
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12528
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12529
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12530
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12531
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12532
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12533
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12534
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12535
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12536
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12537
                    if(search_expression_type->is_num_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12538
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12539
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12540
                        symbol_c * return_type_symbol = last_type_symbol;
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12541
                        s4o.indent_right();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12542
                        s4o.print("(\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12543
                        IN1_param_value->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12544
                        s4o.print("+\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12545
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12546
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12547
                        int base_num = 3;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12548
                        symbol_c *param_value = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12549
                        do{
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12550
                            char my_name[10];
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12551
                            sprintf(my_name, "IN%d", base_num++);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12552
                            identifier_c param_name(my_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12553
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12554
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12555
                            param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12556
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12557
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12558
                            if (param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12559
                              param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12560
                            if (param_value != NULL){
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12561
                                symbol_c *current_type_symbol = search_expression_type->get_type(param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12562
                                last_type_symbol = last_type_symbol && search_expression_type->is_same_type(current_type_symbol, last_type_symbol) ? search_expression_type->common_type(current_type_symbol, last_type_symbol) : current_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12563
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12564
                                /*Function specific CODE */
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12565
                                s4o.print("+\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12566
                                param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12567
                                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12568
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12569
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12570
                        }while(param_value != NULL);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12571
                        s4o.print(")");
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12572
                        s4o.indent_left();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12573
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12574
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12575
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12576
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12577
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12578
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12579
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12580
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12581
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12582
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12583
            if(search_expression_type->is_same_type(&search_constant_type_c::dt_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12584
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12585
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12586
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12587
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12588
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12589
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12590
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12591
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12592
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12593
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12594
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12595
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12596
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12597
                    if(search_expression_type->is_same_type(&search_constant_type_c::time_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12598
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12599
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12600
                        symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12601
                        s4o.print("__time_add(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12602
                        IN1_param_value->accept(*this);
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12603
                        s4o.print(", ");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12604
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12605
                        s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12606
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12607
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12608
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12609
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12610
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12611
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12612
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12613
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12614
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12615
            if(search_expression_type->is_same_type(&search_constant_type_c::tod_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12616
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12617
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12618
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12619
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12620
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12621
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12622
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12623
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12624
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12625
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12626
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12627
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12628
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12629
                    if(search_expression_type->is_same_type(&search_constant_type_c::time_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12630
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12631
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12632
                        symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12633
                        s4o.print("__time_add(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12634
                        IN1_param_value->accept(*this);
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12635
                        s4o.print(", ");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12636
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12637
                        s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12638
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12639
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12640
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12641
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12642
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12643
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12644
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12645
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12646
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12647
            if(search_expression_type->is_same_type(&search_constant_type_c::time_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12648
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12649
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12650
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12651
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12652
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12653
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12654
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12655
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12656
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12657
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12658
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12659
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12660
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12661
                    if(search_expression_type->is_same_type(&search_constant_type_c::time_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12662
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12663
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12664
                        symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12665
                        s4o.print("__time_add(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12666
                        IN1_param_value->accept(*this);
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12667
                        s4o.print(", ");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12668
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12669
                        s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12670
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12671
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12672
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12673
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12674
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12675
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12676
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12677
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12678
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12679
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12680
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12681
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12682
    }/*function_add*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12683
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12684
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12685
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12686
 *MUL
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12687
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12688
    case function_mul :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12689
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12690
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12691
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12692
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12693
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12694
            symbol_c *IN1_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12695
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12696
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12697
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12698
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12699
            if(search_expression_type->is_num_type(IN1_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12700
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12701
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12702
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12703
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12704
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12705
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12706
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12707
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12708
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12709
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12710
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12711
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12712
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12713
                    if(search_expression_type->is_num_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12714
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12715
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12716
                        symbol_c * return_type_symbol = last_type_symbol;
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12717
                        s4o.indent_right();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12718
                        s4o.print("(\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12719
                        IN1_param_value->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12720
                        s4o.print("*\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12721
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12722
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12723
                        int base_num = 3;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12724
                        symbol_c *param_value = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12725
                        do{
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12726
                            char my_name[10];
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12727
                            sprintf(my_name, "IN%d", base_num++);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12728
                            identifier_c param_name(my_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12729
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12730
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12731
                            param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12732
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12733
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12734
                            if (param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12735
                              param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12736
                            if (param_value != NULL){
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12737
                                symbol_c *current_type_symbol = search_expression_type->get_type(param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12738
                                last_type_symbol = last_type_symbol && search_expression_type->is_same_type(current_type_symbol, last_type_symbol) ? search_expression_type->common_type(current_type_symbol, last_type_symbol) : current_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12739
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12740
                                /*Function specific CODE */
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12741
                                s4o.print("*\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12742
                                param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12743
                                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12744
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12745
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12746
                        }while(param_value != NULL);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12747
                        s4o.print(")");
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12748
                        s4o.indent_left();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12749
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12750
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12751
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12752
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12753
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12754
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12755
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12756
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12757
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12758
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12759
            if(search_expression_type->is_same_type(&search_constant_type_c::time_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12760
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12761
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12762
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12763
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12764
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12765
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12766
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12767
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12768
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12769
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12770
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12771
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12772
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12773
                    if(search_expression_type->is_num_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12774
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12775
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12776
                        symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12777
                        s4o.print("__time_mul(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12778
                        IN1_param_value->accept(*this);
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12779
                        s4o.print(", ");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12780
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12781
                        s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12782
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12783
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12784
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12785
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12786
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12787
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12788
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12789
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12790
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12791
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12792
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12793
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12794
    }/*function_mul*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12795
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12796
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12797
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12798
 *SUB
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12799
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12800
    case function_sub :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12801
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12802
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12803
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12804
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12805
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12806
            symbol_c *IN1_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12807
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12808
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12809
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12810
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12811
            if(search_expression_type->is_num_type(IN1_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12812
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12813
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12814
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12815
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12816
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12817
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12818
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12819
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12820
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12821
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12822
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12823
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12824
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12825
                    if(search_expression_type->is_num_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12826
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12827
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12828
                        symbol_c * return_type_symbol = last_type_symbol;
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12829
                        s4o.indent_right();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12830
                        s4o.print("(\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12831
                        IN1_param_value->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12832
                        s4o.print("-\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12833
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12834
                        s4o.print(")");
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12835
                        s4o.indent_left();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12836
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12837
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12838
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12839
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12840
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12841
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12842
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12843
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12844
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12845
            if(search_expression_type->is_same_type(&search_constant_type_c::date_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12846
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12847
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12848
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12849
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12850
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12851
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12852
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12853
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12854
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12855
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12856
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12857
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12858
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12859
                    if(search_expression_type->is_same_type(&search_constant_type_c::date_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12860
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12861
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12862
                        symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12863
                        s4o.print("__time_sub(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12864
                        IN1_param_value->accept(*this);
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12865
                        s4o.print(", ");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12866
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12867
                        s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12868
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12869
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12870
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12871
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12872
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12873
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12874
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12875
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12876
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12877
            if(search_expression_type->is_same_type(&search_constant_type_c::dt_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12878
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12879
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12880
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12881
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12882
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12883
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12884
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12885
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12886
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12887
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12888
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12889
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12890
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12891
                    if(search_expression_type->is_same_type(&search_constant_type_c::dt_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12892
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12893
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12894
                        symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12895
                        s4o.print("__time_sub(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12896
                        IN1_param_value->accept(*this);
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12897
                        s4o.print(", ");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12898
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12899
                        s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12900
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12901
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12902
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12903
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12904
                    if(search_expression_type->is_same_type(&search_constant_type_c::time_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12905
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12906
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12907
                        symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12908
                        s4o.print("__time_sub(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12909
                        IN1_param_value->accept(*this);
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12910
                        s4o.print(", ");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12911
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12912
                        s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12913
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12914
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12915
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12916
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12917
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12918
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12919
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12920
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12921
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12922
            if(search_expression_type->is_same_type(&search_constant_type_c::tod_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12923
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12924
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12925
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12926
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12927
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12928
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12929
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12930
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12931
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12932
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12933
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12934
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12935
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12936
                    if(search_expression_type->is_same_type(&search_constant_type_c::tod_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12937
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12938
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12939
                        symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12940
                        s4o.print("__time_sub(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12941
                        IN1_param_value->accept(*this);
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12942
                        s4o.print(", ");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12943
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12944
                        s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12945
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12946
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12947
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12948
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12949
                    if(search_expression_type->is_same_type(&search_constant_type_c::time_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12950
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12951
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12952
                        symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12953
                        s4o.print("__time_sub(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12954
                        IN1_param_value->accept(*this);
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12955
                        s4o.print(", ");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12956
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12957
                        s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12958
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12959
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12960
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12961
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12962
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12963
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12964
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12965
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12966
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12967
            if(search_expression_type->is_same_type(&search_constant_type_c::time_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12968
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12969
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12970
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12971
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12972
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12973
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12974
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12975
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12976
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12977
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12978
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12979
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12980
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 12981
                    if(search_expression_type->is_same_type(&search_constant_type_c::time_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12982
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12983
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12984
                        symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12985
                        s4o.print("__time_sub(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12986
                        IN1_param_value->accept(*this);
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 12987
                        s4o.print(", ");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12988
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12989
                        s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12990
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12991
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12992
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12993
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12994
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12995
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12996
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12997
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12998
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 12999
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13000
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13001
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13002
    }/*function_sub*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13003
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13004
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13005
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13006
 *DIV
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13007
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13008
    case function_div :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13009
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13010
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13011
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13012
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13013
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13014
            symbol_c *IN1_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13015
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13016
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13017
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13018
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13019
            if(search_expression_type->is_num_type(IN1_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13020
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13021
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13022
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13023
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13024
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13025
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13026
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13027
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13028
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13029
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13030
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13031
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13032
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13033
                    if(search_expression_type->is_num_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13034
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13035
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13036
                        symbol_c * return_type_symbol = last_type_symbol;
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13037
                        s4o.indent_right();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13038
                        s4o.print("(\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13039
                        IN1_param_value->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13040
                        s4o.print("/\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13041
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13042
                        s4o.print(")");
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13043
                        s4o.indent_left();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13044
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13045
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13046
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13047
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13048
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13049
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13050
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13051
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13052
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13053
            if(search_expression_type->is_same_type(&search_constant_type_c::time_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13054
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13055
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13056
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13057
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13058
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13059
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13060
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13061
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13062
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13063
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13064
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13065
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13066
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13067
                    if(search_expression_type->is_num_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13068
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13069
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13070
                        symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 13071
                        s4o.print("__time_div(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13072
                        IN1_param_value->accept(*this);
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 13073
                        s4o.print(", ");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13074
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13075
                        s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13076
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13077
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13078
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13079
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13080
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13081
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13082
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13083
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13084
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13085
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13086
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13087
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13088
    }/*function_div*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13089
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13090
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13091
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13092
 *MOD
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13093
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13094
    case function_mod :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13095
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13096
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13097
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13098
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13099
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13100
            symbol_c *IN1_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13101
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13102
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13103
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13104
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13105
            if(search_expression_type->is_num_type(IN1_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13106
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13107
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13108
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13109
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13110
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13111
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13112
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13113
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13114
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13115
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13116
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13117
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13118
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13119
                    if(search_expression_type->is_num_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13120
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13121
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13122
                        symbol_c * return_type_symbol = last_type_symbol;
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13123
                        s4o.indent_right();
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13124
                        s4o.print("(\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13125
                        IN1_param_value->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13126
                        s4o.print("%\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13127
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13128
                        s4o.print(")");
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13129
                        s4o.indent_left();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13130
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13131
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13132
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13133
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13134
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13135
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13136
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13137
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13138
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13139
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13140
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13141
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13142
    }/*function_mod*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13143
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13144
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13145
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13146
 *EXPT
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13147
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13148
    case function_expt :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13149
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13150
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13151
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13152
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13153
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13154
            symbol_c *IN1_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13155
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13156
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13157
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13158
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13159
            if(search_expression_type->is_num_type(IN1_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13160
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13161
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13162
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13163
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13164
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13165
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13166
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13167
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13168
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13169
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13170
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13171
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13172
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13173
                    if(search_expression_type->is_num_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13174
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13175
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13176
                        symbol_c * return_type_symbol = last_type_symbol;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 13177
                        s4o.print("pow(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13178
                        IN1_param_value->accept(*this);
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 13179
                        s4o.print(", ");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13180
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13181
                        s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13182
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13183
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13184
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13185
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13186
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13187
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13188
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13189
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13190
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13191
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13192
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13193
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13194
    }/*function_expt*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13195
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13196
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13197
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13198
 *MOVE
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13199
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13200
    case function_move :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13201
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13202
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13203
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13204
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13205
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13206
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13207
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13208
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13209
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13210
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13211
            if(search_expression_type->is_num_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13212
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13213
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13214
                symbol_c * return_type_symbol = last_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13215
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13216
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13217
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13218
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13219
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13220
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13221
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13222
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13223
    }/*function_move*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13224
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13225
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13226
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13227
 *SHL
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13228
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13229
    case function_shl :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13230
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13231
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13232
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13233
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13234
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13235
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13236
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13237
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13238
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13239
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13240
            if(search_expression_type->is_binary_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13241
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13242
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13243
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13244
                    identifier_c param_name("N");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13245
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13246
                    symbol_c *N_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13247
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13248
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13249
                    if (N_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13250
                      N_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13251
                    symbol_c *N_type_symbol = search_expression_type->get_type(N_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13252
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(N_type_symbol, last_type_symbol) ? search_expression_type->common_type(N_type_symbol, last_type_symbol) : N_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13253
                    
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 13254
                    if(search_expression_type->is_integer_type(N_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13255
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13256
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13257
                        symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13258
                        IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13259
                        s4o.print("<<");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13260
                        N_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13261
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13262
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13263
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13264
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13265
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13266
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13267
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13268
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13269
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13270
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13271
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13272
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13273
    }/*function_shl*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13274
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13275
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13276
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13277
 *SHR
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13278
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13279
    case function_shr :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13280
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13281
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13282
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13283
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13284
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13285
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13286
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13287
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13288
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13289
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13290
            if(search_expression_type->is_binary_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13291
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13292
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13293
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13294
                    identifier_c param_name("N");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13295
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13296
                    symbol_c *N_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13297
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13298
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13299
                    if (N_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13300
                      N_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13301
                    symbol_c *N_type_symbol = search_expression_type->get_type(N_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13302
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(N_type_symbol, last_type_symbol) ? search_expression_type->common_type(N_type_symbol, last_type_symbol) : N_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13303
                    
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 13304
                    if(search_expression_type->is_integer_type(N_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13305
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13306
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13307
                        symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13308
                        IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13309
                        s4o.print(">>");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13310
                        N_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13311
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13312
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13313
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13314
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13315
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13316
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13317
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13318
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13319
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13320
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13321
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13322
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13323
    }/*function_shr*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13324
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13325
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13326
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13327
 *ROR
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13328
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13329
    case function_ror :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13330
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13331
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13332
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13333
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13334
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13335
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13336
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13337
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13338
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13339
            
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 13340
            if(search_expression_type->is_nbinary_type(IN_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13341
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13342
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13343
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13344
                    identifier_c param_name("N");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13345
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13346
                    symbol_c *N_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13347
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13348
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13349
                    if (N_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13350
                      N_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13351
                    symbol_c *N_type_symbol = search_expression_type->get_type(N_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13352
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(N_type_symbol, last_type_symbol) ? search_expression_type->common_type(N_type_symbol, last_type_symbol) : N_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13353
                    
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 13354
                    if(search_expression_type->is_integer_type(N_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13355
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13356
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13357
                        symbol_c * return_type_symbol = IN_type_symbol;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 13358
                        s4o.print("__ror_");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13359
                        IN_type_symbol->accept(*this);
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 13360
                        s4o.print("(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13361
                        IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13362
                        s4o.print(", ");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13363
                        N_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13364
                        s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13365
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13366
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13367
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13368
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13369
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13370
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13371
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13372
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13373
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13374
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13375
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13376
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13377
    }/*function_ror*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13378
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13379
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13380
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13381
 *ROL
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13382
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13383
    case function_rol :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13384
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13385
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13386
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13387
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13388
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13389
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13390
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13391
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13392
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13393
            
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 13394
            if(search_expression_type->is_nbinary_type(IN_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13395
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13396
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13397
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13398
                    identifier_c param_name("N");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13399
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13400
                    symbol_c *N_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13401
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13402
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13403
                    if (N_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13404
                      N_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13405
                    symbol_c *N_type_symbol = search_expression_type->get_type(N_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13406
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(N_type_symbol, last_type_symbol) ? search_expression_type->common_type(N_type_symbol, last_type_symbol) : N_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13407
                    
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 13408
                    if(search_expression_type->is_integer_type(N_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13409
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13410
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13411
                        symbol_c * return_type_symbol = IN_type_symbol;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 13412
                        s4o.print("__rol_");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13413
                        IN_type_symbol->accept(*this);
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 13414
                        s4o.print("(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13415
                        IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13416
                        s4o.print(", ");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13417
                        N_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13418
                        s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13419
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13420
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13421
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13422
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13423
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13424
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13425
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13426
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13427
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13428
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13429
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13430
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13431
    }/*function_rol*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13432
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13433
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13434
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13435
 *AND
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13436
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13437
    case function_and :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13438
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13439
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13440
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13441
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13442
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13443
            symbol_c *IN1_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13444
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13445
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13446
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13447
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13448
            if(search_expression_type->is_binary_type(IN1_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13449
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13450
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13451
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13452
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13453
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13454
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13455
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13456
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13457
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13458
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13459
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13460
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13461
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13462
                    if(search_expression_type->is_binary_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13463
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13464
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13465
                        symbol_c * return_type_symbol = last_type_symbol;
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13466
                        s4o.indent_right();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13467
                        s4o.print("(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13468
                        if (search_expression_type->is_bool_type(last_type_symbol))
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13469
                          s4o.print("(\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13470
                        IN1_param_value->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13471
                        s4o.print("&\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13472
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13473
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13474
                        int base_num = 3;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13475
                        symbol_c *param_value = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13476
                        do{
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13477
                            char my_name[10];
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13478
                            sprintf(my_name, "IN%d", base_num++);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13479
                            identifier_c param_name(my_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13480
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13481
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13482
                            param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13483
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13484
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13485
                            if (param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13486
                              param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13487
                            if (param_value != NULL){
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13488
                                symbol_c *current_type_symbol = search_expression_type->get_type(param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13489
                                last_type_symbol = last_type_symbol && search_expression_type->is_same_type(current_type_symbol, last_type_symbol) ? search_expression_type->common_type(current_type_symbol, last_type_symbol) : current_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13490
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13491
                                /*Function specific CODE */
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13492
                                s4o.print("&\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13493
                                param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13494
                                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13495
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13496
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13497
                        }while(param_value != NULL);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13498
                        s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13499
                        if (search_expression_type->is_bool_type(last_type_symbol)) {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13500
                          s4o.print("&1");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13501
                          s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13502
                        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13503
                        s4o.print("");
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13504
                        s4o.indent_left();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13505
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13506
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13507
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13508
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13509
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13510
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13511
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13512
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13513
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13514
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13515
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13516
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13517
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13518
    }/*function_and*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13519
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13520
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13521
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13522
 *OR
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13523
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13524
    case function_or :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13525
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13526
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13527
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13528
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13529
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13530
            symbol_c *IN1_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13531
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13532
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13533
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13534
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13535
            if(search_expression_type->is_binary_type(IN1_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13536
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13537
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13538
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13539
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13540
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13541
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13542
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13543
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13544
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13545
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13546
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13547
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13548
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13549
                    if(search_expression_type->is_binary_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13550
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13551
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13552
                        symbol_c * return_type_symbol = last_type_symbol;
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13553
                        s4o.indent_right();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13554
                        s4o.print("(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13555
                        if (search_expression_type->is_bool_type(last_type_symbol))
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13556
                          s4o.print("(\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13557
                        IN1_param_value->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13558
                        s4o.print("|\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13559
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13560
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13561
                        int base_num = 3;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13562
                        symbol_c *param_value = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13563
                        do{
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13564
                            char my_name[10];
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13565
                            sprintf(my_name, "IN%d", base_num++);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13566
                            identifier_c param_name(my_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13567
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13568
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13569
                            param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13570
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13571
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13572
                            if (param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13573
                              param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13574
                            if (param_value != NULL){
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13575
                                symbol_c *current_type_symbol = search_expression_type->get_type(param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13576
                                last_type_symbol = last_type_symbol && search_expression_type->is_same_type(current_type_symbol, last_type_symbol) ? search_expression_type->common_type(current_type_symbol, last_type_symbol) : current_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13577
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13578
                                /*Function specific CODE */
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13579
                                s4o.print("|\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13580
                                param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13581
                                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13582
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13583
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13584
                        }while(param_value != NULL);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13585
                        s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13586
                        if (search_expression_type->is_bool_type(last_type_symbol)) {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13587
                          s4o.print("&1");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13588
                          s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13589
                        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13590
                        s4o.print("");
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13591
                        s4o.indent_left();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13592
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13593
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13594
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13595
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13596
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13597
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13598
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13599
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13600
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13601
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13602
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13603
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13604
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13605
    }/*function_or*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13606
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13607
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13608
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13609
 *XOR
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13610
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13611
    case function_xor :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13612
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13613
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13614
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13615
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13616
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13617
            symbol_c *IN1_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13618
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13619
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13620
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13621
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13622
            if(search_expression_type->is_binary_type(IN1_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13623
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13624
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13625
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13626
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13627
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13628
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13629
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13630
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13631
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13632
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13633
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13634
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13635
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13636
                    if(search_expression_type->is_binary_type(IN2_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13637
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13638
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13639
                        symbol_c * return_type_symbol = last_type_symbol;
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13640
                        s4o.indent_right();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13641
                        s4o.print("(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13642
                        if (search_expression_type->is_bool_type(last_type_symbol))
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13643
                          s4o.print("(\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13644
                        IN1_param_value->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13645
                        s4o.print("^\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13646
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13647
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13648
                        int base_num = 3;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13649
                        symbol_c *param_value = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13650
                        do{
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13651
                            char my_name[10];
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13652
                            sprintf(my_name, "IN%d", base_num++);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13653
                            identifier_c param_name(my_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13654
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13655
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13656
                            param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13657
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13658
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13659
                            if (param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13660
                              param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13661
                            if (param_value != NULL){
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13662
                                symbol_c *current_type_symbol = search_expression_type->get_type(param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13663
                                last_type_symbol = last_type_symbol && search_expression_type->is_same_type(current_type_symbol, last_type_symbol) ? search_expression_type->common_type(current_type_symbol, last_type_symbol) : current_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13664
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13665
                                /*Function specific CODE */
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13666
                                s4o.print("^\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13667
                                param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13668
                                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13669
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13670
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13671
                        }while(param_value != NULL);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13672
                        s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13673
                        if (search_expression_type->is_bool_type(last_type_symbol)) {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13674
                          s4o.print("&1");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13675
                          s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13676
                        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13677
                        s4o.print("");
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13678
                        s4o.indent_left();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13679
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13680
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13681
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13682
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13683
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13684
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13685
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13686
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13687
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13688
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13689
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13690
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13691
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13692
    }/*function_xor*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13693
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13694
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13695
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13696
 *NOT
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13697
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13698
    case function_not :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13699
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13700
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13701
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13702
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13703
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13704
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13705
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13706
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13707
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13708
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13709
            if(search_expression_type->is_binary_type(IN_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13710
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13711
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13712
                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13713
                s4o.print("~");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13714
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13715
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13716
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13717
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13718
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13719
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13720
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13721
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13722
    }/*function_not*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13723
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13724
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13725
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13726
 *SEL
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13727
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13728
    case function_sel :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13729
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13730
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13731
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13732
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13733
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13734
            symbol_c *G_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13735
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13736
            symbol_c *G_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13737
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13738
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13739
            if(search_expression_type->is_same_type(&search_constant_type_c::bool_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13740
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13741
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13742
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13743
                    identifier_c param_name("IN0");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13744
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13745
                    symbol_c *IN0_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13746
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13747
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13748
                    if (IN0_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13749
                      IN0_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13750
                    symbol_c *IN0_type_symbol = search_expression_type->get_type(IN0_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13751
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN0_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN0_type_symbol, last_type_symbol) : IN0_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13752
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13753
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13754
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13755
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13756
                        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13757
                            identifier_c param_name("IN1");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13758
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13759
                            symbol_c *IN1_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13760
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13761
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13762
                            if (IN1_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13763
                              IN1_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13764
                            symbol_c *IN1_type_symbol = search_expression_type->get_type(IN1_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13765
                            last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN1_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN1_type_symbol, last_type_symbol) : IN1_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13766
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13767
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13768
                            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13769
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13770
                                symbol_c * return_type_symbol = last_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13771
                                G_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13772
                                s4o.print(" ? ");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13773
                                IN1_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13774
                                s4o.print(" :  ");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13775
                                IN0_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13776
                                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13777
                                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13778
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13779
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13780
                            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13781
                        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13782
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13783
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13784
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13785
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13786
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13787
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13788
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13789
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13790
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13791
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13792
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13793
    }/*function_sel*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13794
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13795
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13796
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13797
 *MAX
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13798
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13799
    case function_max :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13800
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13801
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13802
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13803
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13804
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13805
            symbol_c *IN1_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13806
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13807
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13808
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13809
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13810
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13811
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13812
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13813
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13814
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13815
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13816
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13817
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13818
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13819
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13820
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13821
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13822
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13823
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13824
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13825
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13826
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13827
                        symbol_c * return_type_symbol = last_type_symbol;
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13828
                        s4o.indent_right();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13829
                        s4o.print("__max_");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13830
                        return_type_symbol->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13831
                        s4o.print("(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13832
                        s4o.print_integer(nb_param);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13833
                        s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13834
                        IN1_param_value->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13835
                        s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13836
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13837
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13838
                        int base_num = 3;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13839
                        symbol_c *param_value = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13840
                        do{
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13841
                            char my_name[10];
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13842
                            sprintf(my_name, "IN%d", base_num++);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13843
                            identifier_c param_name(my_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13844
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13845
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13846
                            param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13847
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13848
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13849
                            if (param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13850
                              param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13851
                            if (param_value != NULL){
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13852
                                symbol_c *current_type_symbol = search_expression_type->get_type(param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13853
                                last_type_symbol = last_type_symbol && search_expression_type->is_same_type(current_type_symbol, last_type_symbol) ? search_expression_type->common_type(current_type_symbol, last_type_symbol) : current_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13854
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13855
                                /*Function specific CODE */
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13856
                                s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13857
                                param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13858
                                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13859
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13860
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13861
                        }while(param_value != NULL);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13862
                        s4o.print(")");
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13863
                        s4o.indent_left();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13864
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13865
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13866
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13867
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13868
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13869
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13870
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13871
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13872
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13873
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13874
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13875
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13876
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13877
    }/*function_max*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13878
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13879
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13880
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13881
 *MIN
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13882
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13883
    case function_min :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13884
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13885
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13886
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13887
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13888
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13889
            symbol_c *IN1_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13890
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13891
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13892
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13893
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13894
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13895
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13896
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13897
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13898
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13899
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13900
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13901
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13902
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13903
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13904
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13905
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13906
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13907
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13908
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13909
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13910
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13911
                        symbol_c * return_type_symbol = last_type_symbol;
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13912
                        s4o.indent_right();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13913
                        s4o.print("__min_");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13914
                        return_type_symbol->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13915
                        s4o.print("(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13916
                        s4o.print_integer(nb_param);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13917
                        s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13918
                        IN1_param_value->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13919
                        s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13920
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13921
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13922
                        int base_num = 3;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13923
                        symbol_c *param_value = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13924
                        do{
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13925
                            char my_name[10];
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13926
                            sprintf(my_name, "IN%d", base_num++);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13927
                            identifier_c param_name(my_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13928
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13929
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13930
                            param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13931
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13932
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13933
                            if (param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13934
                              param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13935
                            if (param_value != NULL){
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13936
                                symbol_c *current_type_symbol = search_expression_type->get_type(param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13937
                                last_type_symbol = last_type_symbol && search_expression_type->is_same_type(current_type_symbol, last_type_symbol) ? search_expression_type->common_type(current_type_symbol, last_type_symbol) : current_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13938
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13939
                                /*Function specific CODE */
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13940
                                s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13941
                                param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13942
                                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13943
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13944
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13945
                        }while(param_value != NULL);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13946
                        s4o.print(")");
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 13947
                        s4o.indent_left();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13948
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13949
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13950
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13951
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13952
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13953
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13954
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13955
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13956
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13957
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13958
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13959
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13960
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13961
    }/*function_min*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13962
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13963
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13964
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13965
 *LIMIT
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13966
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13967
    case function_limit :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13968
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13969
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13970
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13971
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13972
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13973
            symbol_c *MN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13974
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13975
            symbol_c *MN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13976
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13977
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13978
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13979
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13980
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13981
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13982
                    identifier_c param_name("IN");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13983
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13984
                    symbol_c *IN_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13985
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13986
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13987
                    if (IN_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13988
                      IN_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13989
                    symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13990
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN_type_symbol, last_type_symbol) : IN_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13991
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13992
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13993
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13994
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13995
                        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13996
                            identifier_c param_name("MX");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13997
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13998
                            symbol_c *MX_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 13999
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14000
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14001
                            if (MX_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14002
                              MX_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14003
                            symbol_c *MX_type_symbol = search_expression_type->get_type(MX_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14004
                            last_type_symbol = last_type_symbol && search_expression_type->is_same_type(MX_type_symbol, last_type_symbol) ? search_expression_type->common_type(MX_type_symbol, last_type_symbol) : MX_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14005
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14006
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14007
                            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14008
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14009
                                symbol_c * return_type_symbol = IN_type_symbol;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14010
                                s4o.print("__limit_");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14011
                                IN_type_symbol->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14012
                                s4o.print("(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14013
                                MN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14014
                                s4o.print(", ");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14015
                                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14016
                                s4o.print(", ");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14017
                                MX_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14018
                                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14019
                                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14020
                                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14021
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14022
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14023
                            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14024
                        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14025
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14026
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14027
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14028
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14029
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14030
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14031
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14032
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14033
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14034
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14035
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14036
    }/*function_limit*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14037
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14038
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14039
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14040
 *MUX
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14041
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14042
    case function_mux :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14043
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14044
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14045
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14046
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14047
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14048
            symbol_c *K_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14049
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14050
            symbol_c *K_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14051
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14052
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14053
            if(search_expression_type->is_integer_type(K_type_symbol))
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14054
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14055
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14056
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14057
                    identifier_c param_name("IN0");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14058
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14059
                    symbol_c *IN0_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14060
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14061
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14062
                    if (IN0_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14063
                      IN0_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14064
                    symbol_c *IN0_type_symbol = search_expression_type->get_type(IN0_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14065
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN0_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN0_type_symbol, last_type_symbol) : IN0_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14066
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14067
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14068
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14069
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14070
                        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14071
                            identifier_c param_name("IN1");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14072
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14073
                            symbol_c *IN1_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14074
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14075
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14076
                            if (IN1_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14077
                              IN1_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14078
                            symbol_c *IN1_type_symbol = search_expression_type->get_type(IN1_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14079
                            last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN1_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN1_type_symbol, last_type_symbol) : IN1_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14080
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14081
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14082
                            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14083
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14084
                                symbol_c * return_type_symbol = last_type_symbol;
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14085
                                s4o.indent_right();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14086
                                s4o.print("__mux_");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14087
                                return_type_symbol->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14088
                                s4o.print("(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14089
                                s4o.print_integer(nb_param);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14090
                                s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14091
                                K_param_value->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14092
                                s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14093
                                IN0_param_value->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14094
                                s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14095
                                IN1_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14096
                                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14097
                                int base_num = 2;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14098
                                symbol_c *param_value = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14099
                                do{
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14100
                                    char my_name[10];
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14101
                                    sprintf(my_name, "IN%d", base_num++);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14102
                                    identifier_c param_name(my_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14103
                                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14104
                                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14105
                                    param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14106
                                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14107
                                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14108
                                    if (param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14109
                                      param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14110
                                    if (param_value != NULL){
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14111
                                        symbol_c *current_type_symbol = search_expression_type->get_type(param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14112
                                        last_type_symbol = last_type_symbol && search_expression_type->is_same_type(current_type_symbol, last_type_symbol) ? search_expression_type->common_type(current_type_symbol, last_type_symbol) : current_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14113
                                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14114
                                        /*Function specific CODE */
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14115
                                        s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14116
                                        param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14117
                                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14118
                                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14119
                                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14120
                                }while(param_value != NULL);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14121
                                s4o.print(")");
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14122
                                s4o.indent_left();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14123
                                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14124
                                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14125
                                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14126
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14127
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14128
                            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14129
                        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14130
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14131
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14132
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14133
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14134
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14135
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14136
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14137
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14138
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14139
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14140
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14141
    }/*function_mux*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14142
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14143
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14144
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14145
 *GT
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14146
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14147
    case function_gt :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14148
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14149
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14150
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14151
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14152
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14153
            symbol_c *IN1_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14154
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14155
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14156
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14157
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14158
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14159
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14160
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14161
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14162
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14163
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14164
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14165
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14166
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14167
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14168
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14169
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14170
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14171
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14172
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14173
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14174
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14175
                        symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14176
                        s4o.indent_right();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14177
                        s4o.print("__gt_");
43
37dd4e2fd2ec Test IEC_LIB and fix bugs (EQ, GT et all)
etisserant
parents: 42
diff changeset
 14178
                        last_type_symbol->accept(*this);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14179
                        s4o.print("(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14180
                        s4o.print_integer(nb_param);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14181
                        s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14182
                        IN1_param_value->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14183
                        s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14184
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14185
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14186
                        int base_num = 3;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14187
                        symbol_c *param_value = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14188
                        do{
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14189
                            char my_name[10];
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14190
                            sprintf(my_name, "IN%d", base_num++);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14191
                            identifier_c param_name(my_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14192
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14193
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14194
                            param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14195
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14196
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14197
                            if (param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14198
                              param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14199
                            if (param_value != NULL){
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14200
                                symbol_c *current_type_symbol = search_expression_type->get_type(param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14201
                                last_type_symbol = last_type_symbol && search_expression_type->is_same_type(current_type_symbol, last_type_symbol) ? search_expression_type->common_type(current_type_symbol, last_type_symbol) : current_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14202
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14203
                                /*Function specific CODE */
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14204
                                s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14205
                                param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14206
                                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14207
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14208
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14209
                        }while(param_value != NULL);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14210
                        s4o.print(")");
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14211
                        s4o.indent_left();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14212
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14213
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14214
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14215
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14216
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14217
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14218
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14219
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14220
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14221
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14222
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14223
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14224
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14225
    }/*function_gt*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14226
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14227
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14228
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14229
 *GE
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14230
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14231
    case function_ge :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14232
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14233
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14234
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14235
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14236
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14237
            symbol_c *IN1_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14238
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14239
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14240
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14241
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14242
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14243
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14244
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14245
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14246
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14247
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14248
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14249
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14250
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14251
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14252
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14253
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14254
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14255
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14256
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14257
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14258
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14259
                        symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14260
                        s4o.indent_right();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14261
                        s4o.print("__ge_");
43
37dd4e2fd2ec Test IEC_LIB and fix bugs (EQ, GT et all)
etisserant
parents: 42
diff changeset
 14262
                        last_type_symbol->accept(*this);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14263
                        s4o.print("(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14264
                        s4o.print_integer(nb_param);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14265
                        s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14266
                        IN1_param_value->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14267
                        s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14268
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14269
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14270
                        int base_num = 3;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14271
                        symbol_c *param_value = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14272
                        do{
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14273
                            char my_name[10];
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14274
                            sprintf(my_name, "IN%d", base_num++);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14275
                            identifier_c param_name(my_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14276
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14277
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14278
                            param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14279
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14280
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14281
                            if (param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14282
                              param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14283
                            if (param_value != NULL){
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14284
                                symbol_c *current_type_symbol = search_expression_type->get_type(param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14285
                                last_type_symbol = last_type_symbol && search_expression_type->is_same_type(current_type_symbol, last_type_symbol) ? search_expression_type->common_type(current_type_symbol, last_type_symbol) : current_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14286
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14287
                                /*Function specific CODE */
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14288
                                s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14289
                                param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14290
                                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14291
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14292
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14293
                        }while(param_value != NULL);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14294
                        s4o.print(")");
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14295
                        s4o.indent_left();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14296
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14297
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14298
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14299
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14300
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14301
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14302
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14303
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14304
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14305
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14306
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14307
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14308
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14309
    }/*function_ge*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14310
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14311
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14312
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14313
 *EQ
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14314
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14315
    case function_eq :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14316
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14317
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14318
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14319
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14320
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14321
            symbol_c *IN1_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14322
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14323
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14324
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14325
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14326
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14327
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14328
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14329
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14330
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14331
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14332
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14333
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14334
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14335
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14336
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14337
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14338
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14339
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14340
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14341
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14342
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14343
                        symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14344
                        s4o.indent_right();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14345
                        s4o.print("__eq_");
43
37dd4e2fd2ec Test IEC_LIB and fix bugs (EQ, GT et all)
etisserant
parents: 42
diff changeset
 14346
                        last_type_symbol->accept(*this);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14347
                        s4o.print("(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14348
                        s4o.print_integer(nb_param);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14349
                        s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14350
                        IN1_param_value->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14351
                        s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14352
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14353
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14354
                        int base_num = 3;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14355
                        symbol_c *param_value = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14356
                        do{
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14357
                            char my_name[10];
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14358
                            sprintf(my_name, "IN%d", base_num++);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14359
                            identifier_c param_name(my_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14360
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14361
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14362
                            param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14363
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14364
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14365
                            if (param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14366
                              param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14367
                            if (param_value != NULL){
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14368
                                symbol_c *current_type_symbol = search_expression_type->get_type(param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14369
                                last_type_symbol = last_type_symbol && search_expression_type->is_same_type(current_type_symbol, last_type_symbol) ? search_expression_type->common_type(current_type_symbol, last_type_symbol) : current_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14370
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14371
                                /*Function specific CODE */
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14372
                                s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14373
                                param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14374
                                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14375
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14376
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14377
                        }while(param_value != NULL);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14378
                        s4o.print(")");
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14379
                        s4o.indent_left();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14380
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14381
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14382
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14383
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14384
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14385
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14386
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14387
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14388
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14389
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14390
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14391
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14392
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14393
    }/*function_eq*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14394
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14395
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14396
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14397
 *LT
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14398
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14399
    case function_lt :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14400
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14401
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14402
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14403
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14404
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14405
            symbol_c *IN1_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14406
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14407
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14408
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14409
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14410
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14411
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14412
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14413
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14414
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14415
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14416
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14417
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14418
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14419
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14420
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14421
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14422
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14423
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14424
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14425
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14426
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14427
                        symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14428
                        s4o.indent_right();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14429
                        s4o.print("__lt_");
43
37dd4e2fd2ec Test IEC_LIB and fix bugs (EQ, GT et all)
etisserant
parents: 42
diff changeset
 14430
                        last_type_symbol->accept(*this);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14431
                        s4o.print("(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14432
                        s4o.print_integer(nb_param);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14433
                        s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14434
                        IN1_param_value->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14435
                        s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14436
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14437
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14438
                        int base_num = 3;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14439
                        symbol_c *param_value = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14440
                        do{
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14441
                            char my_name[10];
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14442
                            sprintf(my_name, "IN%d", base_num++);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14443
                            identifier_c param_name(my_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14444
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14445
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14446
                            param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14447
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14448
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14449
                            if (param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14450
                              param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14451
                            if (param_value != NULL){
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14452
                                symbol_c *current_type_symbol = search_expression_type->get_type(param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14453
                                last_type_symbol = last_type_symbol && search_expression_type->is_same_type(current_type_symbol, last_type_symbol) ? search_expression_type->common_type(current_type_symbol, last_type_symbol) : current_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14454
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14455
                                /*Function specific CODE */
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14456
                                s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14457
                                param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14458
                                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14459
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14460
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14461
                        }while(param_value != NULL);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14462
                        s4o.print(")");
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14463
                        s4o.indent_left();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14464
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14465
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14466
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14467
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14468
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14469
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14470
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14471
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14472
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14473
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14474
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14475
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14476
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14477
    }/*function_lt*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14478
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14479
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14480
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14481
 *LE
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14482
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14483
    case function_le :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14484
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14485
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14486
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14487
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14488
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14489
            symbol_c *IN1_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14490
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14491
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14492
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14493
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14494
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14495
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14496
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14497
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14498
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14499
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14500
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14501
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14502
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14503
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14504
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14505
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14506
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14507
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14508
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14509
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14510
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14511
                        symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14512
                        s4o.indent_right();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14513
                        s4o.print("__le_");
43
37dd4e2fd2ec Test IEC_LIB and fix bugs (EQ, GT et all)
etisserant
parents: 42
diff changeset
 14514
                        last_type_symbol->accept(*this);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14515
                        s4o.print("(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14516
                        s4o.print_integer(nb_param);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14517
                        s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14518
                        IN1_param_value->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14519
                        s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14520
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14521
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14522
                        int base_num = 3;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14523
                        symbol_c *param_value = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14524
                        do{
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14525
                            char my_name[10];
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14526
                            sprintf(my_name, "IN%d", base_num++);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14527
                            identifier_c param_name(my_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14528
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14529
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14530
                            param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14531
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14532
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14533
                            if (param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14534
                              param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14535
                            if (param_value != NULL){
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14536
                                symbol_c *current_type_symbol = search_expression_type->get_type(param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14537
                                last_type_symbol = last_type_symbol && search_expression_type->is_same_type(current_type_symbol, last_type_symbol) ? search_expression_type->common_type(current_type_symbol, last_type_symbol) : current_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14538
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14539
                                /*Function specific CODE */
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14540
                                s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14541
                                param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14542
                                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14543
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14544
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14545
                        }while(param_value != NULL);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14546
                        s4o.print(")");
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14547
                        s4o.indent_left();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14548
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14549
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14550
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14551
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14552
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14553
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14554
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14555
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14556
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14557
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14558
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14559
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14560
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14561
    }/*function_le*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14562
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14563
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14564
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14565
 *NE
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14566
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14567
    case function_ne :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14568
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14569
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14570
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14571
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14572
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14573
            symbol_c *IN1_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14574
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14575
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14576
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14577
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14578
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14579
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14580
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14581
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14582
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14583
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14584
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14585
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14586
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14587
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14588
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14589
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14590
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14591
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14592
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14593
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14594
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14595
                        symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14596
                        s4o.indent_right();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14597
                        s4o.print("__ne_");
43
37dd4e2fd2ec Test IEC_LIB and fix bugs (EQ, GT et all)
etisserant
parents: 42
diff changeset
 14598
                        last_type_symbol->accept(*this);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14599
                        s4o.print("(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14600
                        s4o.print_integer(nb_param);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14601
                        s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14602
                        IN1_param_value->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14603
                        s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14604
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14605
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14606
                        int base_num = 3;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14607
                        symbol_c *param_value = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14608
                        do{
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14609
                            char my_name[10];
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14610
                            sprintf(my_name, "IN%d", base_num++);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14611
                            identifier_c param_name(my_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14612
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14613
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14614
                            param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14615
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14616
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14617
                            if (param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14618
                              param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14619
                            if (param_value != NULL){
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14620
                                symbol_c *current_type_symbol = search_expression_type->get_type(param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14621
                                last_type_symbol = last_type_symbol && search_expression_type->is_same_type(current_type_symbol, last_type_symbol) ? search_expression_type->common_type(current_type_symbol, last_type_symbol) : current_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14622
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14623
                                /*Function specific CODE */
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14624
                                s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14625
                                param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14626
                                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14627
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14628
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14629
                        }while(param_value != NULL);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14630
                        s4o.print(")");
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14631
                        s4o.indent_left();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14632
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14633
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14634
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14635
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14636
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14637
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14638
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14639
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14640
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14641
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14642
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14643
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14644
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14645
    }/*function_ne*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14646
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14647
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14648
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14649
 *LEN
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14650
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14651
    case function_len :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14652
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14653
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14654
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14655
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14656
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14657
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14658
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14659
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14660
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14661
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14662
            if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14663
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14664
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14665
                symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 14666
                s4o.print("__len(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14667
                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14668
                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14669
                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14670
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14671
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14672
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14673
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14674
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14675
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14676
    }/*function_len*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14677
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14678
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14679
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14680
 *LEFT
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14681
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14682
    case function_left :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14683
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14684
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14685
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14686
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14687
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14688
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14689
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14690
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14691
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14692
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14693
            if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14694
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14695
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14696
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14697
                    identifier_c param_name("L");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14698
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14699
                    symbol_c *L_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14700
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14701
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14702
                    if (L_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14703
                      L_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14704
                    symbol_c *L_type_symbol = search_expression_type->get_type(L_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14705
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(L_type_symbol, last_type_symbol) ? search_expression_type->common_type(L_type_symbol, last_type_symbol) : L_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14706
                    
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14707
                    if(search_expression_type->is_integer_type(L_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14708
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14709
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14710
                        symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 14711
                        s4o.print("__left(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14712
                        IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14713
                        s4o.print(", ");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14714
                        L_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14715
                        s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14716
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14717
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14718
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14719
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14720
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14721
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14722
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14723
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14724
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14725
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14726
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14727
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14728
    }/*function_left*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14729
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14730
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14731
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14732
 *RIGHT
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14733
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14734
    case function_right :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14735
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14736
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14737
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14738
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14739
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14740
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14741
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14742
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14743
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14744
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14745
            if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14746
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14747
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14748
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14749
                    identifier_c param_name("L");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14750
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14751
                    symbol_c *L_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14752
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14753
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14754
                    if (L_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14755
                      L_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14756
                    symbol_c *L_type_symbol = search_expression_type->get_type(L_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14757
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(L_type_symbol, last_type_symbol) ? search_expression_type->common_type(L_type_symbol, last_type_symbol) : L_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14758
                    
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14759
                    if(search_expression_type->is_integer_type(L_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14760
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14761
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14762
                        symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 14763
                        s4o.print("__right(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14764
                        IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14765
                        s4o.print(", ");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14766
                        L_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14767
                        s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14768
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14769
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14770
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14771
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14772
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14773
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14774
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14775
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14776
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14777
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14778
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14779
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14780
    }/*function_right*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14781
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14782
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14783
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14784
 *MID
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14785
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14786
    case function_mid :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14787
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14788
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14789
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14790
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14791
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14792
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14793
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14794
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14795
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14796
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14797
            if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14798
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14799
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14800
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14801
                    identifier_c param_name("L");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14802
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14803
                    symbol_c *L_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14804
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14805
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14806
                    if (L_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14807
                      L_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14808
                    symbol_c *L_type_symbol = search_expression_type->get_type(L_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14809
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(L_type_symbol, last_type_symbol) ? search_expression_type->common_type(L_type_symbol, last_type_symbol) : L_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14810
                    
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14811
                    if(search_expression_type->is_integer_type(L_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14812
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14813
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14814
                        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14815
                            identifier_c param_name("P");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14816
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14817
                            symbol_c *P_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14818
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14819
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14820
                            if (P_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14821
                              P_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14822
                            symbol_c *P_type_symbol = search_expression_type->get_type(P_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14823
                            last_type_symbol = last_type_symbol && search_expression_type->is_same_type(P_type_symbol, last_type_symbol) ? search_expression_type->common_type(P_type_symbol, last_type_symbol) : P_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14824
                            
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 14825
                            if(search_expression_type->is_integer_type(P_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14826
                            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14827
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14828
                                symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 14829
                                s4o.print("__mid(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14830
                                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14831
                                s4o.print(", ");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14832
                                L_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14833
                                s4o.print(", ");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14834
                                P_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14835
                                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14836
                                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14837
                                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14838
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14839
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14840
                            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14841
                        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14842
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14843
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14844
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14845
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14846
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14847
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14848
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14849
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14850
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14851
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14852
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14853
    }/*function_mid*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14854
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14855
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14856
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14857
 *CONCAT
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14858
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14859
    case function_concat :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14860
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14861
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14862
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14863
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14864
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14865
            symbol_c *IN1_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14866
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14867
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14868
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14869
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14870
            if(search_expression_type->is_same_type(&search_constant_type_c::date_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14871
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14872
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14873
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14874
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14875
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14876
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14877
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14878
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14879
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14880
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14881
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14882
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14883
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14884
                    if(search_expression_type->is_same_type(&search_constant_type_c::tod_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14885
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14886
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14887
                        symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 14888
                        s4o.print("__time_add(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14889
                        IN1_param_value->accept(*this);
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 14890
                        s4o.print(", ");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14891
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14892
                        s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14893
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14894
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14895
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14896
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14897
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14898
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14899
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14900
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14901
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14902
            if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14903
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14904
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14905
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14906
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14907
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14908
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14909
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14910
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14911
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14912
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14913
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14914
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14915
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14916
                    if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14917
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14918
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14919
                        symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14920
                        s4o.indent_right();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14921
                        s4o.print("__concat(");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14922
                        s4o.print_integer(nb_param);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14923
                        s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14924
                        IN1_param_value->accept(*this);
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14925
                        s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14926
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14927
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14928
                        int base_num = 3;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14929
                        symbol_c *param_value = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14930
                        do{
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14931
                            char my_name[10];
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14932
                            sprintf(my_name, "IN%d", base_num++);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14933
                            identifier_c param_name(my_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14934
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14935
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14936
                            param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14937
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14938
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14939
                            if (param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14940
                              param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14941
                            if (param_value != NULL){
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14942
                                symbol_c *current_type_symbol = search_expression_type->get_type(param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14943
                                last_type_symbol = last_type_symbol && search_expression_type->is_same_type(current_type_symbol, last_type_symbol) ? search_expression_type->common_type(current_type_symbol, last_type_symbol) : current_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14944
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14945
                                /*Function specific CODE */
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14946
                                s4o.print(",\n" + s4o.indent_spaces);
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14947
                                param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14948
                                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14949
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14950
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14951
                        }while(param_value != NULL);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14952
                        s4o.print(")");
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14953
                        s4o.indent_left();
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14954
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14955
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14956
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14957
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14958
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14959
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14960
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14961
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14962
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14963
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14964
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14965
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14966
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14967
    }/*function_concat*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14968
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14969
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14970
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14971
 *INSERT
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14972
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14973
    case function_insert :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14974
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14975
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14976
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14977
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14978
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14979
            symbol_c *IN1_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14980
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14981
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14982
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14983
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14984
            if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14985
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14986
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14987
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14988
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14989
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14990
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14991
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14992
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14993
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14994
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14995
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14996
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14997
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 14998
                    if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 14999
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15000
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15001
                        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15002
                            identifier_c param_name("P");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15003
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15004
                            symbol_c *P_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15005
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15006
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15007
                            if (P_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15008
                              P_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15009
                            symbol_c *P_type_symbol = search_expression_type->get_type(P_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15010
                            last_type_symbol = last_type_symbol && search_expression_type->is_same_type(P_type_symbol, last_type_symbol) ? search_expression_type->common_type(P_type_symbol, last_type_symbol) : P_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15011
                            
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15012
                            if(search_expression_type->is_integer_type(P_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15013
                            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15014
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15015
                                symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 15016
                                s4o.print("__insert(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15017
                                IN1_param_value->accept(*this);
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 15018
                                s4o.print(", ");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15019
                                IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15020
                                s4o.print(", ");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15021
                                P_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15022
                                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15023
                                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15024
                                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15025
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15026
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15027
                            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15028
                        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15029
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15030
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15031
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15032
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15033
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15034
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15035
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15036
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15037
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15038
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15039
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15040
    }/*function_insert*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15041
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15042
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15043
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15044
 *DELETE
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15045
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15046
    case function_delete :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15047
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15048
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15049
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15050
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15051
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15052
            symbol_c *IN_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15053
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15054
            symbol_c *IN_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15055
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15056
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 15057
            if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15058
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15059
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15060
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15061
                    identifier_c param_name("L");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15062
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15063
                    symbol_c *L_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15064
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15065
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15066
                    if (L_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15067
                      L_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15068
                    symbol_c *L_type_symbol = search_expression_type->get_type(L_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15069
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(L_type_symbol, last_type_symbol) ? search_expression_type->common_type(L_type_symbol, last_type_symbol) : L_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15070
                    
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15071
                    if(search_expression_type->is_integer_type(L_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15072
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15073
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15074
                        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15075
                            identifier_c param_name("P");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15076
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15077
                            symbol_c *P_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15078
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15079
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15080
                            if (P_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15081
                              P_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15082
                            symbol_c *P_type_symbol = search_expression_type->get_type(P_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15083
                            last_type_symbol = last_type_symbol && search_expression_type->is_same_type(P_type_symbol, last_type_symbol) ? search_expression_type->common_type(P_type_symbol, last_type_symbol) : P_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15084
                            
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15085
                            if(search_expression_type->is_integer_type(P_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15086
                            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15087
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15088
                                symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 15089
                                s4o.print("__delete(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15090
                                IN_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15091
                                s4o.print(", ");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15092
                                L_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15093
                                s4o.print(", ");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15094
                                P_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15095
                                s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15096
                                return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15097
                                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15098
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15099
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15100
                            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15101
                        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15102
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15103
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15104
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15105
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15106
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15107
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15108
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15109
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15110
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15111
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15112
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15113
    }/*function_delete*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15114
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15115
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15116
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15117
 *REPLACE
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15118
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15119
    case function_replace :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15120
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15121
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15122
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15123
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15124
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15125
            symbol_c *IN1_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15126
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15127
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15128
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15129
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 15130
            if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15131
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15132
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15133
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15134
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15135
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15136
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15137
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15138
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15139
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15140
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15141
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15142
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15143
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 15144
                    if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15145
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15146
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15147
                        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15148
                            identifier_c param_name("L");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15149
                            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15150
                            symbol_c *L_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15151
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15152
                            /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15153
                            if (L_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15154
                              L_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15155
                            symbol_c *L_type_symbol = search_expression_type->get_type(L_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15156
                            last_type_symbol = last_type_symbol && search_expression_type->is_same_type(L_type_symbol, last_type_symbol) ? search_expression_type->common_type(L_type_symbol, last_type_symbol) : L_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15157
                            
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15158
                            if(search_expression_type->is_integer_type(L_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15159
                            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15160
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15161
                                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15162
                                    identifier_c param_name("P");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15163
                                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15164
                                    symbol_c *P_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15165
                                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15166
                                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15167
                                    if (P_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15168
                                      P_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15169
                                    symbol_c *P_type_symbol = search_expression_type->get_type(P_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15170
                                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(P_type_symbol, last_type_symbol) ? search_expression_type->common_type(P_type_symbol, last_type_symbol) : P_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15171
                                    
40
873a5b60a7ea Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents: 38
diff changeset
 15172
                                    if(search_expression_type->is_integer_type(P_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15173
                                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15174
                                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15175
                                        symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 15176
                                        s4o.print("__replace(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15177
                                        IN1_param_value->accept(*this);
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 15178
                                        s4o.print(", ");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15179
                                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15180
                                        s4o.print(", ");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15181
                                        L_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15182
                                        s4o.print(", ");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15183
                                        P_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15184
                                        s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15185
                                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15186
                                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15187
                                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15188
                                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15189
                                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15190
                                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15191
                                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15192
                            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15193
                            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15194
                            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15195
                        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15196
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15197
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15198
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15199
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15200
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15201
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15202
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15203
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15204
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15205
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15206
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15207
    }/*function_replace*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15208
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15209
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15210
/****
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15211
 *FIND
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15212
 */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15213
    case function_find :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15214
    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15215
        symbol_c *last_type_symbol = NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15216
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15217
        {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15218
            /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15219
            symbol_c *IN1_param_value = &this->default_variable_name;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15220
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15221
            symbol_c *IN1_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15222
            last_type_symbol = param_data_type;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15223
            
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 15224
            if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15225
            {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15226
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15227
                {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15228
                    identifier_c param_name("IN2");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15229
                    /* Get the value from a foo(<param_name> = <param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15230
                    symbol_c *IN2_param_value = function_call_param_iterator.search(&param_name);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15231
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15232
                    /* Get the value from a foo(<param_value>) style call */
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15233
                    if (IN2_param_value == NULL)
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15234
                      IN2_param_value = function_call_param_iterator.next();
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15235
                    symbol_c *IN2_type_symbol = search_expression_type->get_type(IN2_param_value);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15236
                    last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN2_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN2_type_symbol, last_type_symbol) : IN2_type_symbol ;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15237
                    
42
b45c7f34dec1 IEC std lib test enhanced string ops, from string and to string conv.
etisserant
parents: 41
diff changeset
 15238
                    if(search_expression_type->is_same_type(&search_constant_type_c::string_type_name, last_type_symbol))
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15239
                    {
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15240
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15241
                        symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 15242
                        s4o.print("__find(");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15243
                        IN1_param_value->accept(*this);
38
6cce7d14647e Stage4 changes according to new STD lib implementation
etisserant
parents: 35
diff changeset
 15244
                        s4o.print(", ");
35
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15245
                        IN2_param_value->accept(*this);
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15246
                        s4o.print(")");
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15247
                        return NULL;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15248
                        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15249
                    }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15250
                    
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15251
                    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15252
                }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15253
                
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15254
            }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15255
            
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15256
            ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15257
        }
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15258
        
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15259
    }/*function_find*/
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15260
    break;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15261
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15262
    case function_none :
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15263
    ERROR;
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15264
}
9f3d6c089533 Generated code for il finished
lbessard
parents:
diff changeset
 15265
return NULL;